
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:       #1B2A4A;
    --amber:      #E8952D;
    --white:      #ffffff;
    --light-gray: #F2F4F7;
    --dark-gray:  #444444;
    --muted:      #666666;
    --border:     rgba(0,0,0,0.10);
    --error:      #C0392B;
}

html, body {
    height: 100%;
    font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    background: var(--light-gray);
    color: var(--dark-gray);
}

/* ── Page ── */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
            radial-gradient(ellipse at 80% 10%, rgba(232,149,45,0.08) 0%, transparent 55%),
            radial-gradient(ellipse at 20% 90%, rgba(27,42,74,0.06) 0%, transparent 55%),
            var(--light-gray);
}

/* ── Card ── */
.card {
    display: flex;
    width: 100%;
    max-width: 860px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 48px rgba(27,42,74,0.14), 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    min-height: 520px;
}

/* ── Left panel — form ── */
.panel-left {
    flex: 1;
    padding: 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 8px;
}

.form-heading {
    font-family: 'Montserrat', 'Calibri', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 6px;
}

.form-sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Official Use Only — left panel */
.official-warning {
    background: #FEF3E2;
    border: 1px solid var(--amber);
    border-left: 4px solid var(--amber);
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 11px;
    color: #7A4A0A;
    line-height: 1.55;
    margin-bottom: 22px;
}

.official-warning strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
}

.form-field {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.form-input {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: var(--dark-gray);
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27,42,74,0.10);
    background: var(--white);
}

.form-input::placeholder { color: #aaaaaa; }

.form-row-forgot {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
    margin-bottom: 16px;
}

.link-forgot {
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
}
.link-forgot:hover { color: var(--navy); }

.btn-primary {
    width: 100%;
    background: var(--navy);
    color: var(--white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 12px 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
    background: #253d6e;
    box-shadow: 0 4px 16px rgba(27,42,74,0.25);
}

.form-error {
    display: none;
    background: #FDECEA;
    border: 1px solid #E57373;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--error);
    margin-bottom: 14px;
}

.form-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    line-height: 1.7;
}

.form-footer a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
}

/* ── Step visibility ── */
.step { display: none; }
.step.active { display: block; }

/* Profile select step */
.profile-select {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: var(--dark-gray);
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    outline: none;
    cursor: pointer;
    margin-bottom: 16px;
    appearance: auto;
}

.profile-select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27,42,74,0.10);
}

.back-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    cursor: pointer;
}
.back-link:hover { color: var(--navy); }

/* ── Right panel — brand ── */
.panel-right {
    width: 340px;
    flex-shrink: 0;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
}

/* Amber glow accents */
.panel-right::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(232,149,45,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.panel-right::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(232,149,45,0.10) 0%, transparent 70%);
    pointer-events: none;
}

.brand-logo-img {
    position: relative;
    z-index: 1;
    width: 230px;
    max-width: 100%;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.25));
}

.secure-badge {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.04em;
}

.secure-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2E9E5E;
    flex-shrink: 0;
}

/* ── Page footer ── */
.page-footer {
    margin-top: 20px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    line-height: 1.8;
}

.page-footer a {
    color: var(--muted);
    text-decoration: none;
}
.page-footer a:hover { color: var(--navy); }

/* ── Responsive ── */
@media (max-width: 680px) {
    .card { flex-direction: column-reverse; max-width: 420px; min-height: 0; }
    .panel-right { width: 100%; padding: 32px; }
    .panel-left  { padding: 32px; }
    .brand-logo-img { width: 170px; }
}
