
/* ── NRGR Design System v3 — Design Tokens ── */
:root {
    --blue: #153481;
    --blue-dark: #0E2360;
    --blue-hover: #1c4096;
    --blue-pressed: #0b1d50;
    --orange: #f69b2f;
    --orange-dark: #d9841a;
    --navy-text: #1A2340;
    --body-text: #6B7A99;
    --muted-text: #A0ABBF;
    --border: #C8D0DF;
    --surface: #F4F6FB;
    --pill-bg: #E8EDF5;
    --white: #FFFFFF;
    --success: #1a8754;
    --success-bg: #e6f5ed;
    --danger: #d9304f;
    --danger-bg: #fce8ec;
    --warning: #b45309;
    --warning-bg: #fef5e8;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --radius-pill: 12px;
    --radius-card: 14px;
    --focus-ring: 0 0 0 3px rgba(21,52,129,.3);
}

  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: var(--font);
    background: var(--surface);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    -webkit-font-smoothing: antialiased;
  }

  @@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
  @@keyframes spin   { to { transform: rotate(360deg); } }


/* Reset for NIMH pages only */
.nimh-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nimh-page {
    font-family: var(--font);
    background: var(--surface);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 1152px;
    max-width: 95%;
    background: white;
    box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.10);
    border-radius: 12px;
    overflow: hidden;
    margin: 20px auto;
}

.login-page-nimh {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

/* =============================================================================
   Left Panel - NEW DESIGN
   ============================================================================= */
.left-panel {
    width: 50%;
    min-height: 600px;
    background: var(--blue);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-panel-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    align-items: flex-start;
    gap: 32px;
}

/* --- Top Section --- */
.left-panel-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.left-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Main NIMH Repository Logo */
.left-panel-logo-main {
    width: 100%;
    margin-bottom: 24px;
}

    .left-panel-logo-main img {
        width: 100%;
        max-width: 480px;
        height: auto;
        max-height: 135px;
        object-fit: contain;
    }

.left-panel-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

    .left-panel-logo svg {
        width: 100%;
        height: 100%;
    }

.left-panel-title {
    color: #FFFFFF;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
    white-space: nowrap;
}

/* --- Bullet List --- */
.left-panel-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.left-panel-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 20px;
    position: relative;
}

.left-panel-bullet {
    width: 4px;
    height: 4px;
    background-color: rgba(255, 254, 254, 0.6);
    border-radius: 50%;
    flex-shrink: 0;
}

.left-panel-list-text {
    font-weight: 400;
    color: rgba(255, 254, 254, 0.9);
    font-size: 14px;
    letter-spacing: 0;
    line-height: 20px;
    margin: 0;
}

/* --- Features Section --- */
.left-panel-features {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

.left-panel-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 44px;
}

.left-panel-feature-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.left-panel-feature-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.left-panel-feature-title {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0;
    line-height: 20px;
    margin: 0;
}

.left-panel-feature-desc {
    font-weight: 400;
    color: rgba(255, 254, 254, 0.7);
    font-size: 14px;
    letter-spacing: 0;
    line-height: 20px;
    margin: 0;
}

/* =============================================================================
   Left Panel - OLD DESIGN (kept for backward compatibility)
   ============================================================================= */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border: 2.67px solid #FFFFFF;
    border-radius: 4px;
}

.logo-text {
    color: #FFFFFF;
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
}

.tagline {
    color: #FFFFFF;
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
}

.description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 23px;
    font-weight: 400;
}

.security-notice {
   /* background: rgba(255, 255, 255, 0.1);*/
    border-radius: 8px;
    padding: 16px;
}

.security-notice-title {
  /*  color: rgba(255, 255, 255, 0.9);*/
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.security-notice-text {
  /*  color: rgba(255, 255, 255, 0.9);*/
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

/* =============================================================================
   Right Panel - Form
   ============================================================================= */
.right-panel {
    width: 50%;
    min-height: 600px;
    background: #FFFFFF;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-title {
    color: #01295F;
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
}

.form-subtitle {
    color: #7194AF;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

/* Form Elements */
.form-container-nimh {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group-nimh {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label-nimh {
    color: #01295F;
    font-size: 14px;
    line-height: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-field-nimh {
    width: 100%;
    height: 48px;
    padding: 4px 12px;
    background: #F2FAFE;
    border: 1px solid rgba(1, 41, 95, 0.15);
    border-radius: 6px;
    font-size: 14px;
    color: #01295F;
    font-family: 'Segoe UI', sans-serif;
}

    .input-field-nimh::placeholder {
        color: #7194AF;
    }

    .input-field-nimh:focus {
        outline: none;
        border-color: #01295F;
    }

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #7194AF;
    padding: 8px;
    font-size: 16px;
    z-index: 10;
    user-select: none;
}

    .password-toggle:hover {
        color: #01295F;
    }

.helper-text {
    color: #7194AF;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
}

.remember-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-nimh {
    width: 20px;
    height: 20px;
    background: #F2FAFE;
    border: 1px solid rgba(1, 41, 95, 0.15);
    border-radius: 4px;
    cursor: pointer;
}

.checkbox-label {
    color: #01295F;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.btn-primary-nimh {
    width: 100%;
    height: 48px;
    background: #01295F;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.3s;
}

    .btn-primary-nimh:hover {
        background: #01366f;
    }

.links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.link-nimh {
    color: #363985;
    font-size: 14px;
    line-height: 20px;
    text-decoration: underline;
    cursor: pointer;
}

.separator {
    color: #7194AF;
    font-size: 14px;
}

.help-box {
    background: #F2FAFE;
    border-left: 3px solid #F69B2F;
    border-radius: 8px;
    padding: 16px 19px;
}

.help-box-title {
    color: #01295F;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.help-box-text {
    color: #01295F;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    margin-bottom: 12px;
}

.help-box-link {
    color: #363985;
    font-size: 14px;
    line-height: 20px;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.divider-container {
    position: relative;
    height: 1px;
    background: rgba(1, 41, 95, 0.15);
    margin: 16px 0;
}

.divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 3px 16px;
    color: #7194AF;
    font-size: 14px;
    line-height: 20px;
}

.btn-secondary-nimh {
    width: 100%;
    height: 48px;
    background: #FFFFFF;
    color: #363985;
    border: 2px solid #363985;
    border-radius: 6px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
    text-decoration: none;
}

    .btn-secondary-nimh:hover {
        background: #f8f9fa;
        text-decoration: none;
    }

.icon-nimh {
    font-size: 16px;
}

.alert-danger-nimh {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    padding: 12px;
    color: #c33;
    font-size: 14px;
}

    .alert-danger-nimh .validation-summary-errors ul {
        list-style-type: none; /* Removes the bullet points */
        padding-left: 0; /* Removes the default left indentation */
        margin-bottom: 0; /* Removes extra bottom margin */
    }

    .alert-danger-nimh .validation-summary-errors li {
        /* Optional: Add a little spacing if there are multiple errors */
        padding-bottom: 4px;
    }


/* Cancel button with negative margin */
.btn-cancel-nimh {
    margin-top: -8px;
}

/* =============================================================================
   RAS Info Page Styles
   ============================================================================= */
.ras-info-container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ras-info-header {
    color: #01295F;
    font-size: 28px;
    margin-bottom: 20px;
}

.ras-info-text {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ras-idp-list {
    background: #F2FAFE;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

    .ras-idp-list h3 {
        color: #01295F;
        font-size: 16px;
        margin-bottom: 12px;
    }

    .ras-idp-list ul {
        list-style: none;
        padding: 0;
    }

    .ras-idp-list li {
        padding: 8px 0;
        color: #555;
    }

        .ras-idp-list li:before {
            content: "✓ ";
            color: #4CAF50;
            font-weight: bold;
            margin-right: 8px;
        }

.ras-btn-container {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.ras-btn-primary {
    flex: 1;
    padding: 14px 24px;
    background: #01295F;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

    .ras-btn-primary:hover {
        background: #01366f;
        text-decoration: none;
    }

.ras-btn-secondary {
    flex: 1;
    padding: 14px 24px;
    background: white;
    color: #363985;
    border: 2px solid #363985;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

    .ras-btn-secondary:hover {
        background: #f8f9fa;
        text-decoration: none;
    }

/* Hide nav for NIMH pages */
.nimh-page + .container.body-container {
    display: none;
}

/* =============================================================================
   Forgot Username/Password Pages
   ============================================================================= */
.forgot-container {
    max-width: 500px;
    margin: 50px auto;
}

.forgot-header {
    background: #01295F;
    color: white;
    padding: 24px 32px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.forgot-header-icon {
    font-size: 24px;
}

.forgot-header-title {
    font-size: 20px;
    font-weight: 500;
}

.forgot-body {
    background: white;
    padding: 32px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.forgot-info-box {
    background: #F2FAFE;
    border-left: 3px solid #01295F;
    padding: 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
}

    .forgot-info-box p {
        color: #01295F;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

/* =============================================================================
   Success Pages
   ============================================================================= */
.success-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
}

.success-title {
    color: #01295F;
    font-size: 20px;
    text-align: center;
    margin-bottom: 12px;
}

.success-message {
    color: #555;
    font-size: 14px;
    text-align: center;
    margin-bottom: 24px;
}

/* =============================================================================
   Verification Code Input
   ============================================================================= */
.code-input-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.code-input {
   /* width: 48px;*/
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid rgba(1, 41, 95, 0.15);
    border-radius: 8px;
    background: #F2FAFE;
    color: #01295F;
}

    .code-input:focus {
        outline: none;
        border-color: #01295F;
    }

/* =============================================================================
   Change Password Page
   ============================================================================= */
.change-password-container {
    max-width: 500px;
    margin: 50px auto;
}

/* =============================================================================
   Responsive Design
   ============================================================================= */
@media (max-width: 768px) {
    .login-page-nimh {
        flex-direction: column;
    }

    .left-panel, .right-panel {
        width: 100%;
    }

    .left-panel {
        min-height: auto;
        padding: 32px;
    }

    .left-panel-container {
        gap: 24px;
    }

    .left-panel-list-text,
    .left-panel-feature-desc {
        white-space: normal;
    }

    .left-panel-header {
        height: auto;
    }

    .right-panel {
        padding: 32px;
    }
}

@media (max-width: 480px) {
    .left-panel,
    .right-panel {
        padding: 24px;
    }

    .left-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .left-panel-title {
        font-size: 20px;
    }

    .left-panel-feature {
        flex-direction: column;
        gap: 8px;
    }

    .left-panel-feature-icon {
        margin-top: 0;
    }
}


/* =============================================================================
   Alert Styles
   ============================================================================= */
.alert-danger-nimh {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    padding: 12px 16px;
    color: #c33;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.alert-success-nimh {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 12px 16px;
    color: #155724;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.alert-warning-nimh {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #F69B2F;
    border-radius: 6px;
    padding: 12px 16px;
    color: #856404;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}

.alert-info-nimh {
    background: #F2FAFE;
    border: 1px solid rgba(1, 41, 95, 0.15);
    border-left: 4px solid #01295F;
    border-radius: 6px;
    padding: 12px 16px;
    color: #01295F;
    font-size: 14px;
    margin-bottom: 16px;
}

    .alert-nimh .icon-nimh,
    .alert-success-nimh .icon-nimh,
    .alert-danger-nimh .icon-nimh,
    .alert-warning-nimh .icon-nimh,
    .alert-info-nimh .icon-nimh {
        font-size: 18px;
        flex-shrink: 0;
    }

    .alert-info-nimh ul {
        margin: 8px 0 0 0;
        padding-left: 20px;
    }

        .alert-info-nimh ul li {
            margin-bottom: 4px;
            line-height: 1.5;
        }

/* =============================================================================
   Force Password Change Page
   ============================================================================= */
.force-password-container {
    max-width: 500px;
    margin: 50px auto;
}

.force-password-header {
    background: #F69B2F;
    color: white;
    padding: 24px 32px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.force-password-header-icon {
    font-size: 24px;
}

.force-password-header-title {
    font-size: 20px;
    font-weight: 500;
}

.force-password-body {
    background: white;
    padding: 32px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.password-requirements-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

    .password-requirements-list li {
        margin-bottom: 4px;
        line-height: 1.5;
        color: #01295F;
    }

.form-divider {
    height: 1px;
    background: rgba(1, 41, 95, 0.15);
    margin: 24px 0;
}

.btn-warning-nimh {
    width: 100%;
    height: 48px;
    background: #F69B2F;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-warning-nimh:hover {
        background: #e08a1e;
    }

.btn-group-nimh {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}


/****************************************************************/
/********************** UPDATE STYLES ***************************/
/* NRGR UI Style Guide v3 | Figma: NRGR / Coriell Design System */
/****************************************************************/

/* Card */
.auth-card {
    display: grid;
    grid-template-columns: 360px 440px;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(21,52,129,.13), 0 2px 8px rgba(0,0,0,.07);
    width: 100%;
    max-width: 800px;
    animation: fadeUp .3s ease both;
}

/* Left panel */
.auth-left {
    background: var(--blue);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

    .auth-left::after {
        content: '';
        position: absolute;
        bottom: -60px;
        right: -60px;
        width: 220px;
        height: 220px;
        background: var(--orange);
        border-radius: 50%;
        opacity: .07;
        pointer-events: none;
    }

/* Logo placeholder */
.left-logo {
    width: 100%;
    padding: 32px 32px 28px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 24px;
    flex-shrink: 0;
}

    .left-logo img {
        width: 100%;
        max-width: 480px;
        height: auto;
        max-height: 135px;
        object-fit: contain;
    }

/* Trust block */
.left-trust {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    flex: 1;
}

.secure-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .bullet-list li {
        font-size: 13px;
        color: rgba(255,255,255,.82);
        line-height: 1.5;
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

        .bullet-list li::before {
            content: '•';
            color: var(--orange);
            font-size: 13px;
            line-height: 1.5;
            flex-shrink: 0;
        }

.trust-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trust-check {
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(246,155,47,.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

    .trust-check svg {
        width: 10px;
        height: 10px;
        color: var(--orange);
    }

.trust-copy strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
}

.trust-copy span {
    font-size: 12px;
    color: rgba(255,255,255,.65);
    line-height: 1.4;
}

/* Step tracker (forgot password flow) */
.left-tracker {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.tracker-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 28px;
    position: relative;
}

    .tracker-item:last-child {
        padding-bottom: 0;
    }

    .tracker-item::before {
        content: '';
        position: absolute;
        left: 12px;
        top: 27px;
        bottom: 0;
        width: 1.5px;
        background: rgba(255,255,255,.1);
    }

    .tracker-item:last-child::before {
        display: none;
    }

.tracker-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.28);
    background: transparent;
    position: relative;
    z-index: 1;
}

    .tracker-dot.active {
        background: var(--orange);
        border-color: var(--orange);
        color: var(--white);
    }

    .tracker-dot.done {
        background: rgba(255,255,255,.1);
        border-color: rgba(255,255,255,.28);
        color: rgba(255,255,255,.65);
    }

.tracker-copy strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.25);
    line-height: 1.3;
    margin-top: 3px;
}

.tracker-copy span {
    font-size: 12px;
    color: rgba(255,255,255,.18);
}

.tracker-item.active .tracker-copy strong {
    color: var(--white);
}

.tracker-item.active .tracker-copy span {
    color: rgba(255,255,255,.55);
}

.tracker-item.done .tracker-copy strong {
    color: rgba(255,255,255,.5);
}

.tracker-item.done .tracker-copy span {
    color: rgba(255,255,255,.3);
}

/* Footer — copyright, single location */
.left-footer {
    padding: 16px 32px;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: auto;
    flex-shrink: 0;
}

    .left-footer p {
        font-size: 11px;
        color: rgba(255,255,255,.4);
        line-height: 1.6;
    }

    .left-footer a {
        color: rgba(255,255,255,.4);
        text-decoration: none;
        transition: color .12s;
    }

        .left-footer a:hover {
            color: rgba(255,255,255,.7);
        }

    .left-footer .sep {
        margin: 0 6px;
    }

.left-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
}

/* Right panel */
.auth-right {
    background: var(--white);
    padding: 40px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Headings */
.screen-heading {
    margin-bottom: 22px;
}

    .screen-heading h2 {
        font-size: 23px;
        font-weight: 700;
        color: var(--navy-text);
        letter-spacing: -0.02em;
        margin-bottom: 5px;
    }

    .screen-heading p {
        font-size: 14px;
        color: var(--body-text);
        line-height: 1.6;
    }

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--muted-text);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color .12s;
    width: fit-content;
}

    .back-link:hover {
        color: var(--blue);
    }

    .back-link:focus-visible {
        outline: none;
        box-shadow: var(--focus-ring);
        border-radius: 4px;
    }

    .back-link svg {
        width: 13px;
        height: 13px;
    }

/* Banners */
.banner {
    display: none;
    border-radius: 8px;
    padding: 11px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.5;
    align-items: flex-start;
    gap: 9px;
    border-left: 3px solid;
}

    .banner.visible {
        display: flex;
    }

    .banner svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
        margin-top: 1px;
    }

.banner-danger {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: #7d1a2e;
}

    .banner-danger svg {
        color: var(--danger);
    }

.banner-warning {
    background: var(--warning-bg);
    border-color: var(--warning);
    color: #7c3d0a;
}

    .banner-warning svg {
        color: var(--warning);
    }

.banner-success {
    background: var(--success-bg);
    border-color: var(--success);
    color: #0f4d30;
}

    .banner-success svg {
        color: var(--success);
    }

/* Form */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-text);
    margin-bottom: 6px;
}

    .form-label svg {
        width: 13px;
        height: 13px;
        color: var(--muted-text);
        flex-shrink: 0;
    }

.input-wrap {
    position: relative;
}

.form-input {
    width: 100%;
    font-family: var(--font);
    font-size: 14px;
    padding: 9px 14px;
    height: 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--navy-text);
    transition: border-color .15s, box-shadow .15s, background .15s;
    appearance: none;
}

    .form-input:focus {
        outline: none;
        border-color: var(--blue);
        box-shadow: var(--focus-ring);
        background: var(--white);
    }

    .form-input::placeholder {
        color: var(--muted-text);
    }

    .form-input.has-toggle {
        padding-right: 40px;
    }

    .form-input.is-error {
        border-color: var(--danger);
        background: var(--white);
    }

        .form-input.is-error:focus {
            box-shadow: 0 0 0 3px rgba(217,48,79,.18);
        }

    .form-input.is-success {
        border-color: var(--success);
    }

    .form-input:disabled {
        opacity: .55;
        cursor: not-allowed;
        background: var(--surface);
    }

.code-input {
    width: 100%;
    font-family: var(--font);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-align: center;
    padding: 10px 14px;
    height: 52px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--navy-text);
    transition: border-color .15s, box-shadow .15s, background .15s;
    appearance: none;
}

    .code-input:focus {
        outline: none;
        border-color: var(--blue);
        box-shadow: var(--focus-ring);
        background: var(--white);
    }

    .code-input.is-error {
        border-color: var(--danger);
        background: var(--white);
    }

        .code-input.is-error:focus {
            box-shadow: 0 0 0 3px rgba(217,48,79,.18);
        }

    .code-input.is-success {
        border-color: var(--success);
    }

    .code-input:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

.eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted-text);
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    transition: color .12s;
}

    .eye-btn:hover {
        color: var(--navy-text);
    }

    .eye-btn:focus-visible {
        outline: none;
        box-shadow: var(--focus-ring);
    }

    .eye-btn svg {
        width: 15px;
        height: 15px;
    }

.field-error {
    display: none;
    font-size: 12px;
    font-weight: 500;
    color: #a01426;
    margin-top: 5px;
    align-items: center;
    gap: 4px;
}

    .field-error.visible {
        display: flex;
    }

    .field-error svg {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }

.field-success {
    display: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--success);
    margin-top: 5px;
    align-items: center;
    gap: 4px;
}

    .field-success.visible {
        display: flex;
    }

    .field-success svg {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }

.field-error-visible {
    font-size: 12px;
    font-weight: 500;
    color: #a01426;
    margin-top: 5px;
    align-items: center;
    gap: 4px;
}

    .field-error-visible.visible {
        display: flex;
    }

    .field-error-visible svg {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }

.forgot-pw {
    display: block;
    text-align: right;
    margin-top: 7px;
    font-size: 12px;
    color: var(--blue);
    text-decoration: none;
    transition: color .12s;
}

    .forgot-pw:hover {
        color: var(--blue-hover);
        text-decoration: underline;
    }

.privacy-notice {
    font-size: 12px;
    color: var(--muted-text);
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.55;
}

    .privacy-notice a {
        color: var(--blue);
        text-decoration: underline;
    }

.check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
}

    .check-row input[type="checkbox"] {
        width: 15px;
        height: 15px;
        accent-color: var(--blue);
        cursor: pointer;
        flex-shrink: 0;
    }

    .check-row label {
        font-size: 13px;
        color: var(--navy-text);
        cursor: pointer;
    }

.resend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.resend-btn {
    font-size: 12px;
    color: var(--blue);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    text-decoration: underline;
    transition: color .12s;
    padding: 0;
}

    .resend-btn:hover {
        color: var(--blue-hover);
    }

    .resend-btn:disabled {
        color: var(--muted-text);
        text-decoration: none;
        cursor: default;
    }

.resend-timer {
    font-size: 12px;
    color: var(--muted-text);
}

/* Buttons */
.btn-primary {
    width: 100%;
    height: 44px;
    background: var(--blue);
    border: 1.5px solid var(--blue-dark);
    color: var(--white);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background .15s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: .01em;
    margin-top: 20px;
}

    .btn-primary:hover {
        background: var(--blue-hover);
    }

    .btn-primary:active {
        background: var(--blue-pressed);
        transform: scale(.99);
    }

    .btn-primary:focus-visible {
        outline: none;
        box-shadow: var(--focus-ring);
    }

    .btn-primary:disabled,
    .btn-primary[aria-disabled="true"] {
        background: var(--disabled-bg);
        border-color: var(--border);
        color: var(--muted-text);
        cursor: not-allowed;
        pointer-events: none;
    }

        .btn-primary:disabled svg {
            color: var(--muted-text);
        }

    .btn-primary.loading {
        pointer-events: none;
        opacity: .8;
    }

.lock-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.btn-secondary {
    width: 100%;
    height: 38px;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--body-text);
    font-family: var(--font);
    font-size: 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    margin-top: 8px;
}

    .btn-secondary:hover {
        background: var(--surface);
        border-color: var(--blue);
        color: var(--blue);
    }

    .btn-secondary:focus-visible {
        outline: none;
        box-shadow: var(--focus-ring);
    }

.btn-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin .65s linear infinite;
    flex-shrink: 0;
}

/* Trouble box */
.trouble-box {
    border: 1px solid rgba(246,155,47,.4);
    border-left: 3px solid var(--orange);
    border-radius: 10px;
    padding: 13px 15px;
    margin-top: 20px;
    background: rgba(246,155,47,.03);
}

    .trouble-box strong {
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: var(--navy-text);
        margin-bottom: 3px;
    }

    .trouble-box p {
        font-size: 13px;
        color: var(--body-text);
        line-height: 1.55;
        margin-bottom: 9px;
    }

    .trouble-box a {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 13px;
        color: var(--blue);
        text-decoration: underline;
        font-weight: 500;
    }

        .trouble-box a svg {
            width: 12px;
            height: 12px;
        }

/* Locked steps */
.locked-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    background: var(--surface);
}

.locked-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.locked-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-top: 2px;
}

.locked-step-copy strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-text);
    margin-bottom: 2px;
}

.locked-step-copy span {
    font-size: 12px;
    color: var(--body-text);
    line-height: 1.45;
}

/* State screens */
.state-screen {
    text-align: center;
    width: 100%;
}

.state-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

    .state-icon svg {
        width: 24px;
        height: 24px;
    }

.state-icon-warning {
    background: var(--warning-bg);
}

    .state-icon-warning svg {
        color: #92400e;
    }

.state-icon-neutral {
    background: var(--surface);
}

    .state-icon-neutral svg {
        color: var(--muted-text);
    }

.state-icon-success {
    background: var(--success-bg);
}

    .state-icon-success svg {
        color: var(--success);
    }

.state-icon-amber {
    background: var(--warning-bg);
}

    .state-icon-amber svg {
        color: #92400e;
    }

.state-screen h2 {
    font-size: 21px;
    font-weight: 700;
    color: var(--navy-text);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.state-screen .state-body {
    font-size: 14px;
    color: var(--body-text);
    line-height: 1.6;
    margin-bottom: 6px;
}

.state-screen .state-detail {
    font-size: 13px;
    color: var(--muted-text);
    margin-bottom: 24px;
    line-height: 1.55;
}

/* Password requirements */
.pw-requirements {
    background: var(--surface);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 10px;
}

.pw-req-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy-text);
    margin-bottom: 10px;
}

.req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 12px;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--muted-text);
    transition: color .2s;
}

    .req-item.met {
        color: var(--success);
    }

.req-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.req-item.met .req-dot {
    background: var(--success);
    border-color: var(--success);
}

.req-dot svg {
    display: none;
    width: 8px;
    height: 8px;
}

.req-item.met .req-dot svg {
    display: block;
}

.strength-wrap {
    margin-top: 8px;
}

.strength-bar {
    display: flex;
    gap: 3px;
}

.strength-seg {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: var(--border);
    transition: background .3s;
}

    .strength-seg.weak {
        background: var(--danger);
    }

    .strength-seg.fair {
        background: var(--orange);
    }

    .strength-seg.good {
        background: #2b7bc0;
    }

    .strength-seg.strong {
        background: var(--success);
    }

.strength-label {
    font-size: 11px;
    color: var(--muted-text);
    margin-top: 5px;
    text-align: right;
    transition: color .3s;
}

    .strength-label.weak {
        color: var(--danger);
    }

    .strength-label.fair {
        color: var(--orange);
    }

    .strength-label.good {
        color: #2b7bc0;
    }

    .strength-label.strong {
        color: var(--success);
    }

  .field-divider { border:none; border-top:1px solid var(--border); margin:4px 0 20px; }


input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}

/* Match indicator */
.match-row {
    display: none;
    font-size: 12px;
    margin-top: 5px;
    align-items: center;
    gap: 5px;
}

    .match-row.visible {
        display: flex;
    }

    .match-row.ok {
        color: var(--success);
    }

    .match-row.bad {
        color: var(--danger);
    }

    .match-row svg {
        width: 11px;
        height: 11px;
        flex-shrink: 0;
    }