/* Acceso: pantalla de inicio de sesión y doble factor. */
.auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--s6) var(--s4); background: var(--bg); }
.auth-card { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: var(--s8); }
.auth-brand { text-align: center; margin-bottom: var(--s6); }
.auth-brand img { width: 200px; max-width: 70%; height: auto; }
.auth-brand .brand-by { margin-top: 6px; }
:root[data-theme="dark"] .auth-brand img { background: #eef1f8; border-radius: 10px; padding: 6px 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-brand img { background: #eef1f8; border-radius: 10px; padding: 6px 10px; } }
.auth-title { font-size: 22px; margin: 0; }
.auth-card .stack > p { margin: 0; }
.auth-card .btn.big { width: 100%; }
.auth-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--fs-sm); }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s3); border: 1px dashed var(--border); border-radius: var(--r-card); }
.qr-box img { background: #fff; border-radius: 8px; }
.qr-box details { font-size: var(--fs-sm); width: 100%; }
.qr-box summary { cursor: pointer; color: var(--blue); text-align: center; }
.qr-box code { overflow-wrap: anywhere; }
.code-input { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; text-align: center; }
.recovery-codes { list-style: none; margin: 0; padding: var(--s3); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px;
  background: var(--surface-2); border-radius: var(--r-card); }
.recovery-codes code { font-size: 15px; }
.user-chip { display: flex; align-items: center; gap: var(--s2); padding: 8px var(--s3); border-radius: var(--r-btn); min-width: 0; }
.user-chip .avatar { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 13px; }
.user-chip .who { min-width: 0; line-height: 1.25; }
.user-chip .who strong { display: block; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .who span { font-size: var(--fs-label); color: var(--text-muted-strong); }
@media (max-width: 1024px) and (min-width: 761px) { .user-chip .who { display: none; } .user-chip { justify-content: center; padding: 6px; } }
.user-chip { color: var(--text); text-decoration: none; }
.user-chip:hover { background: var(--surface-2); text-decoration: none; }
.user-chip[aria-current="page"] { background: var(--blue-soft); }
/* Campo de contraseña con botón para verla */
.pw-field { position: relative; display: flex; }
.pw-field input { flex: 1; min-width: 0; padding-right: 44px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none;
  color: var(--text-muted-strong); border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pw-toggle:hover { background: var(--surface-2); color: var(--text); }
.pw-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--text-muted-strong); }
.pw-checks li { display: flex; align-items: center; gap: 6px; }
.pw-checks li.ok { color: var(--ok-ink); }
