/* Login & register — centered card (no side panel) */

.auth-page {
    min-height: calc(100vh - 120px);
    background:
        radial-gradient(900px 400px at 100% 0%, rgba(26, 75, 140, 0.08), transparent 55%),
        radial-gradient(600px 280px at 0% 100%, rgba(212, 169, 35, 0.06), transparent 45%),
        linear-gradient(180deg, #f0f3f9 0%, #e8ecf4 100%);
    margin-top: 0;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .auth-page {
        min-height: calc(100vh - 80px);
    }
}

.auth-single {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.75rem 0 2.5rem;
    width: 100%;
}

.auth-page-brand {
    margin-bottom: 0.25rem;
}

.auth-page-kicker {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 0.35rem;
}

.auth-form-shell {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.auth-form-shell--register {
    max-width: 480px;
}

@media (min-width: 992px) {
    .auth-form-shell {
        max-width: 420px;
    }

    .auth-form-shell--register {
        max-width: 460px;
    }
}

.auth-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(26, 75, 140, 0.12);
    border-radius: 20px;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 24px 48px rgba(15, 35, 70, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    padding: clamp(1.75rem, 4vw, 2.5rem);
}

.auth-card-head {
    margin-bottom: 1.5rem;
}

.auth-card-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.auth-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #0a1628;
    margin: 0 0 0.5rem;
}

.auth-card-sub {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

.auth-alert {
    border-radius: 12px !important;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.auth-form .auth-field {
    margin-bottom: 1.1rem;
}

.auth-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.45rem;
}

.auth-input-group .input-group-text {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--primary);
    border-radius: 12px 0 0 12px !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

.auth-input-group .form-control {
    border-radius: 0 12px 12px 0 !important;
    border-color: #cbd5e1;
    font-size: 1rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.auth-password-group .auth-password-input {
    border-radius: 0 !important;
}

/* Match key icon area — override global `button { gradient }` in style.css */
.auth-password-group button.auth-password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1 !important;
    border-left: 0 !important;
    background: #f8fafc !important;
    color: var(--primary) !important;
    border-radius: 0 12px 12px 0 !important;
    padding: 0 1rem !important;
    line-height: 1;
    font-weight: 400 !important;
    box-shadow: none !important;
    transform: none !important;
    min-height: 100%;
}

.auth-password-group button.auth-password-toggle:hover,
.auth-password-group button.auth-password-toggle:focus,
.auth-password-group button.auth-password-toggle:active {
    background: #eef4fc !important;
    color: var(--primary) !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
    transform: none !important;
}

.auth-password-group:focus-within button.auth-password-toggle {
    border-color: var(--primary) !important;
    background: #eef4fc !important;
}

.auth-input-group .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 75, 140, 0.12);
}

.auth-input-group:focus-within .input-group-text {
    border-color: var(--primary);
    background: #eef4fc;
}

.auth-card .form-select,
.auth-card select.form-control {
    border-radius: 12px;
    border-color: #cbd5e1;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    font-size: 1rem;
}

.auth-card .form-select:focus,
.auth-card select.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 75, 140, 0.12);
}

.auth-card .package-cost-note {
    border-radius: 12px;
    margin-top: 0.65rem !important;
}

.auth-submit {
    border-radius: 12px !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.35rem;
    box-shadow: 0 10px 24px rgba(20, 63, 120, 0.28);
    border: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(20, 63, 120, 0.32);
}

.auth-submit-icon {
    font-size: 1.35rem;
    line-height: 0;
}

.auth-card-foot {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    text-align: center;
}

.auth-foot-link {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.auth-foot-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.auth-foot-link-muted {
    color: var(--muted);
}

.auth-foot-link-muted:hover {
    color: var(--primary);
}
