/* =========================================================
   GbBIS Login Page — Brand-aligned styles
   Primary: #2564FF  |  Dark Navy: #111C38  |  Font: Helvetica Neue
   ========================================================= */

/* Suppress the app's default top nav on login */
#topNavigation {
    height: 0 !important;
    overflow: hidden;
}

/* ---- GbBIS top header bar ---- */
.login-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background: #111C38;
    border-radius: 0 0 24px 24px;
    box-shadow: 0px 25px 50px -12px rgba(16, 24, 41, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 72px;
    box-sizing: border-box;
}

.login-header-logo {
    height: 44px;
    width: auto;
    display: block;
}

.login-header-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.login-header-nav a {
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.88;
    transition: opacity 0.2s, color 0.2s;
}

.login-header-nav a:hover {
    opacity: 1;
    color: #7AABFF;
}

.login-header-cta {
    background: #2564FF;
    color: #fff !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 32px;
    opacity: 1 !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s !important;
    white-space: nowrap;
}

.login-header-cta:hover {
    background: #1a4fd4 !important;
    box-shadow: 0 4px 14px rgba(37, 100, 255, 0.40);
    transform: translateY(-1px);
    color: #fff !important;
}

/* Full-screen overlay sits above the map, below the header */
.login-overlay {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100% - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    /* Subtle dark tint over the map so the card pops */
    background: rgba(17, 28, 56, 0.35);
}

/* Glassmorphism card */
.login-card {
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0px 25px 50px -12px rgba(16, 24, 41, 0.40);
    padding: 40px 44px 32px;
    width: 100%;
    max-width: 400px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Logo */
.login-logo-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo {
    width: 160px;
    height: auto;
}

/* Heading */
.login-title {
    font-size: 22px;
    font-weight: 700;
    color: #111C38;
    text-align: center;
    margin: 0 0 6px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.login-subtitle {
    font-size: 13px;
    color: #737373;
    text-align: center;
    margin: 0 0 28px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Divider line under subtitle */
.login-divider {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 0 0 24px;
}

/* Inputs */
.login-input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #111827;
    background: #FAFAFA;
    border: 1.5px solid #D4D4D4;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 14px;
    outline: none;
}

.login-input:focus {
    border-color: #2564FF;
    box-shadow: 0 0 0 3px rgba(37, 100, 255, 0.15);
    background: #fff;
}

.login-input::placeholder {
    color: #A3A3A3;
}

/* Suttle dropdown */
.login-select {
    display: block;
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #111827;
    background: #FAFAFA;
    border: 1.5px solid #D4D4D4;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 14px;
    outline: none;
    cursor: pointer;
}

/* G6 terms label */
.login-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.5;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.login-terms-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #2564FF;
}

/* Validation error */
.login-validation {
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 10px;
    display: block;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Primary button — pill shape */
.login-btn {
    display: block;
    width: 100%;
    height: 48px;
    background: #2564FF;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border: none;
    border-radius: 32px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

.login-btn:hover {
    background: #1a4fd4;
    box-shadow: 0 4px 14px rgba(37, 100, 255, 0.35);
    transform: translateY(-1px);
}

.login-btn:active {
    background: #1540b0;
    transform: translateY(0);
    box-shadow: none;
}

/* Footer tagline */
.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: #A3A3A3;
    font-style: italic;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 0.3px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .login-header {
        padding: 0 20px;
        height: 60px;
    }

    .login-header-logo {
        height: 34px;
    }

    .login-header-nav {
        display: none; /* collapse nav on mobile */
    }

    .login-overlay {
        top: 60px;
        height: calc(100% - 60px);
    }
}

@media (max-width: 480px) {
    .login-card {
        margin: 16px;
        padding: 28px 20px 24px;
        border-radius: 12px;
    }

    .login-logo {
        width: 130px;
    }

    .login-title {
        font-size: 19px;
    }
}
