/* Pantallas de acceso (login, registro, 2FA, dispositivo de confianza, restablecer contraseña), diseño Nítido:
   fondo claro, tarjeta blanca con sombra compartida, color solo para estados. Marco: templates/login/_auth_layout.html.twig */
:root {
    --auth-ink: #1a2035;
    --auth-muted: #6b7686;
    --auth-line: #dfe5ec;
    --auth-card-shadow: rgba(50, 50, 93, .25) 0 13px 27px -5px, rgba(0, 0, 0, .3) 0 8px 16px -8px;
}

body.auth-body {
    margin: 0;
    background: #f1f4f8;
    color: var(--auth-ink);
}

.auth-stage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 28px 28px 24px;
    background: #fff;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    box-shadow: var(--auth-card-shadow);
}

.auth-card--wide { max-width: 560px; }

.auth-brand { display: block; text-align: center; margin: 0 0 18px; }
.auth-brand img { max-width: 220px; max-height: 64px; width: auto; height: auto; }
.auth-brand span { font-size: 1.35rem; font-weight: 800; color: var(--auth-ink); }

.auth-title { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; color: var(--auth-ink); text-align: center; }
.auth-sub { margin: 0 0 18px; color: var(--auth-muted); font-size: .9rem; text-align: center; }
.auth-sub a, .auth-link { color: #2f67f6; font-weight: 600; text-decoration: none; }
.auth-sub a:hover, .auth-link:hover { text-decoration: underline; }

.auth-card label { display: block; margin: 0 0 4px; font-size: .78rem; font-weight: 700; color: #475569; text-transform: none; }
.auth-card .form-control { height: 42px; border-radius: var(--app-control-radius, 8px); border-color: #d4deea; background: #fff; color: var(--auth-ink); }
.auth-card .form-control:focus { border-color: #2f67f6; box-shadow: 0 0 0 2px rgba(47, 103, 246, .2); }
.auth-field { margin: 0 0 14px; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.auth-label-row a { font-size: .78rem; }

.auth-password { position: relative; }
.auth-password .form-control { padding-right: 44px; }
.auth-eye { position: absolute; top: 0; right: 0; height: 42px; width: 42px; border: 0; background: transparent; color: var(--auth-muted); cursor: pointer; }
.auth-eye:hover, .auth-eye:focus-visible { color: var(--auth-ink); }

.auth-card .app-action-btn.btn-block, .auth-card .auth-submit { width: 100%; min-height: 42px; }
.auth-actions { display: flex; gap: 8px; margin-top: 6px; }
.auth-actions .btn { flex: 1; }

.auth-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--auth-muted); font-size: .78rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-top: 1px solid var(--auth-line); }

.auth-callout { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #e8dcc0; border-left: 4px solid #d97706; border-radius: 8px; background: #faf5e9; color: #5c4413; font-size: .875rem; }
.auth-callout--danger { border-color: #efd3d3; border-left-color: #dc2626; background: #fdf0f0; color: #7a2b2b; }
.auth-callout--ok { border-color: #cde4d5; border-left-color: #16a34a; background: #edf7f0; color: #24603b; }
.auth-callout--info { border-color: #d5e0ee; border-left-color: #2f67f6; background: #eef3fa; color: #345a88; }

.auth-foot { margin: 16px 0 0; text-align: center; font-size: .85rem; }
.auth-env { margin: 14px 0 0; text-align: center; font-size: .7rem; letter-spacing: .08em; color: var(--auth-muted); }

.auth-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Código de 6 dígitos (2FA) */
.auth-code { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 18px; }
.auth-code .code-input { width: 100%; max-width: 56px; height: 62px; padding: 0; font-size: 1.8rem; font-weight: 800; text-align: center; }

.auth-password-rules .password-requirements { margin-top: 0; }

@media (max-width: 480px) {
    .auth-card { padding: 22px 18px 20px; }
    .auth-code .code-input { height: 54px; font-size: 1.5rem; }
}
