.auth-page {
    --auth-border: #dfe5ec;
    --auth-muted: #667085;
    --auth-surface: #ffffff;
    --auth-accent: #0d6efd;
    max-width: 1120px;
}

.auth-card {
    width: min(100%, 560px);
    padding: 1.5rem;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: 1rem;
    box-shadow: 0 14px 38px rgba(16, 24, 40, 0.09);
}

.auth-card-wide {
    width: min(100%, 860px);
}

.auth-card-header h1 {
    margin: 0.25rem 0 0.75rem;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 750;
    letter-spacing: -0.025em;
}

.auth-card-header p {
    margin: 0;
    color: var(--auth-muted);
}

.auth-eyebrow {
    color: var(--auth-accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.auth-form {
    margin-top: 1.5rem;
}

.auth-form .form-control {
    min-height: 48px;
    border-radius: 0.75rem;
}

.mfa-choice-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.mfa-choice {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--auth-border);
    border-radius: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mfa-choice:hover {
    border-color: #9ec5fe;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.08);
}

.mfa-choice input {
    margin-top: 0.25rem;
}

.mfa-choice-content {
    display: grid;
    gap: 0.25rem;
}

.mfa-choice-content small {
    color: var(--auth-muted);
    line-height: 1.45;
}

.totp-setup-grid {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 1.75rem;
    align-items: center;
}

.totp-qr-panel {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--auth-border);
    border-radius: 1rem;
}

.totp-qr-image {
    width: min(100%, 280px);
    height: auto;
}

.totp-copy-panel {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}

.totp-copy-item {
    display: grid;
    gap: 0.25rem;
}

.totp-copy-item span,
.totp-uri-details summary {
    color: var(--auth-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.totp-copy-item code,
.totp-uri-details code {
    display: block;
    padding: 0.75rem;
    overflow-wrap: anywhere;
    background: #f8fafc;
    border-radius: 0.65rem;
    color: #1d2939;
}

.totp-uri-details {
    margin-top: 0.25rem;
}

.totp-uri-details summary {
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .auth-card {
        padding: 1.15rem;
        border-radius: 0.85rem;
    }

    .totp-setup-grid {
        grid-template-columns: 1fr;
    }

    .totp-qr-panel {
        padding: 0.75rem;
    }
}
