:root {
    --fms-navy: #293b59;
    --fms-navy-dark: #1f2e47;
    --fms-gold: #d4a72c;
    --fms-cream: #faf7f0;
    --fms-border: #ded5c5;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    color: #292722;
    background: linear-gradient(145deg, var(--fms-cream), #f1eadc);
}

.auth-shell {
    width: min(960px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(1.5rem, 6vh, 4rem) 0;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
    color: var(--fms-navy-dark);
    text-decoration: none;
}

.auth-brand-mark {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: .8rem;
    background: var(--fms-gold);
}

.auth-card {
    overflow: hidden;
    border: 1px solid var(--fms-border);
    border-radius: 1rem;
    background: #fffefa;
    box-shadow: 0 1rem 3rem rgba(31, 46, 71, .12);
}

.auth-intro {
    height: 100%;
    padding: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    background: var(--fms-navy);
}

.auth-form {
    padding: clamp(2rem, 5vw, 3.5rem);
}

.auth-form label {
    font-weight: 600;
}

.auth-form .form-control {
    min-height: 48px;
}

.auth-primary-action {
    min-height: 48px;
    background: var(--fms-navy);
    border-color: var(--fms-navy);
}

.auth-primary-action:hover,
.auth-primary-action:focus {
    background: var(--fms-navy-dark);
    border-color: var(--fms-navy-dark);
}

.auth-secondary-action {
    color: #fff;
    border-color: rgba(255, 255, 255, .75);
}

.auth-secondary-action:hover,
.auth-secondary-action:focus {
    color: var(--fms-navy-dark);
    background: #fff;
    border-color: #fff;
}

.auth-steps {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: steps;
}

.auth-steps li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    counter-increment: steps;
}

.auth-steps li::before {
    content: counter(steps);
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--fms-navy-dark);
    background: var(--fms-gold);
    font-weight: 700;
}

.password-toggle {
    min-width: 4.5rem;
}

@media (max-width: 767.98px) {
    .auth-shell { width: min(100% - 1rem, 600px); padding: .5rem 0 1.5rem; }
    .auth-brand { margin: 1rem .5rem; }
    .auth-intro, .auth-form { padding: 1.75rem 1.25rem; }
}
