:root {
    --radius-sm: 8px;
    --radius-lg: 999px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: #060b1f;
    color: #e7ecff;
}

.login-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.login-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 9, 24, 0.55) 0%, rgba(4, 9, 24, 0.15) 30%, rgba(4, 9, 24, 0.25) 70%, rgba(4, 9, 24, 0.75) 100%),
        linear-gradient(90deg, rgba(4, 9, 24, 0.45) 0%, rgba(4, 9, 24, 0.05) 35%, rgba(4, 9, 24, 0.05) 65%, rgba(4, 9, 24, 0.45) 100%);
    pointer-events: none;
}

.login-topbar {
    position: relative;
    z-index: 1;
    padding: 20px 40px 0;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-logo .mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1857e0, #38b6ff);
    box-shadow: 0 0 24px rgba(47, 139, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.wordmark-group {
    line-height: 1.2;
}

.login-logo .wordmark {
    font-family: var(--font-display, 'Big Shoulders Display', 'Segoe UI', Roboto, Arial, sans-serif);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.login-logo .wordmark .sales { color: #fff; }
.login-logo .wordmark .travel {
    background: linear-gradient(90deg, #2f8bff, #6fc3ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #a8b8e0;
    text-transform: uppercase;
    margin-top: 2px;
}

.login-center {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
}

.login-panel {
    width: 100%;
    max-width: 440px;
    padding: 32px 40px 20px;
    background: rgba(9, 18, 42, 0.68);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(47, 139, 255, 0.18), 0 25px 70px rgba(0, 0, 0, 0.45);
}

.login-panel h1 {
    font-size: 26px;
    margin: 0 0 6px;
    color: #fff;
    font-weight: 700;
}

.login-panel h1 .accent {
    background: linear-gradient(90deg, #4fa3ff, #7fd4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-subtitle {
    color: #9fb0d9;
    margin: 0 0 18px;
    font-size: 14.5px;
}

.field-group {
    margin-bottom: 18px;
}

.field-group label {
    display: block;
    font-size: 14px;
    color: #cdd8f7;
    margin-bottom: 8px;
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 0 14px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-wrap:focus-within {
    border-color: #3b93ff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(47, 139, 255, 0.18);
}

.input-wrap .icon {
    color: #9fb0d9;
    flex-shrink: 0;
    display: flex;
}

.input-wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    color: #f1f4ff;
    font-size: 15px;
    padding: 13px 0;
}

.input-wrap input::placeholder {
    color: #7b87ac;
}

.toggle-visibility {
    background: none;
    border: none;
    color: #9fb0d9;
    cursor: pointer;
    display: flex;
    padding: 4px;
    flex-shrink: 0;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.toggle-visibility:hover {
    color: #cdd8f7;
}

.toggle-visibility:focus-visible {
    outline: 2px solid #3b93ff;
    outline-offset: 2px;
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 18px;
    font-size: 14px;
}

.forgot-link {
    color: #5aa4ff;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 15.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1857e0, #2f8bff);
    box-shadow: 0 4px 14px rgba(24, 87, 224, 0.3);
    cursor: pointer;
    transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 18px rgba(24, 87, 224, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
    filter: brightness(0.96);
    box-shadow: 0 2px 8px rgba(24, 87, 224, 0.3);
}

.btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 139, 255, 0.4), 0 4px 14px rgba(24, 87, 224, 0.3);
}

.btn-primary:disabled {
    cursor: not-allowed;
    filter: brightness(0.9) saturate(0.85);
    transform: none;
}

.btn-primary .spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.form-error {
    background: rgba(255, 76, 76, 0.14);
    border: 1px solid rgba(255, 76, 76, 0.35);
    color: #ff9a9a;
    font-size: 13.5px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.form-notice {
    background: rgba(47, 139, 255, 0.14);
    border: 1px solid rgba(47, 139, 255, 0.35);
    color: #bcdcff;
    font-size: 13.5px;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    white-space: pre-line;
}

.form-success {
    background: rgba(52, 211, 153, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
    font-size: 13.5px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.login-footer {
    margin-top: 18px;
    text-align: center;
}

.login-footer .copyright {
    color: #8a96c2;
    font-size: 12.5px;
    margin-bottom: 12px;
}

.login-footer .version-badge {
    display: inline-block;
    background: rgba(47, 139, 255, 0.14);
    color: #7fc0ff;
    border: 1px solid rgba(47, 139, 255, 0.3);
    border-radius: var(--radius-lg);
    font-size: 12px;
    padding: 4px 14px;
}

.login-features {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding: 12px 20px 18px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d3dcf5;
    font-size: 12.5px;
    font-weight: 600;
}

.feature svg {
    color: #5aa4ff;
    flex-shrink: 0;
}

@media (max-width: 680px) {
    .login-topbar {
        padding: 20px 20px 0;
    }

    .login-logo .wordmark {
        font-size: 22px;
    }

    .login-panel {
        padding: 30px 24px 22px;
    }

    .login-features {
        gap: 20px 28px;
        padding: 16px 16px 24px;
    }

    .feature span {
        display: none;
    }
}
