/* Formulario de credenciales de la pantalla de acceso.
   Estética de marca vía tokens (sin colores literales). */
.login__fields { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.login__fields .field { margin: 0; }
.login__fields .field__label {
  display: block; font-size: var(--fs-12); font-weight: 700;
  color: var(--text-secondary); margin-bottom: 6px;
}
.login__fields .field__input {
  width: 100%; box-sizing: border-box; padding: 11px 13px;
  font-size: var(--fs-14); font-family: inherit;
  border: 1px solid var(--border-strong); border-radius: var(--r);
  background: var(--bg-surface); color: var(--text-primary);
  transition: border-color .12s, box-shadow .12s;
}
.login__fields .field__input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.login__fields #btnEntrar { margin-top: var(--s-2); }
.login__error {
  background: var(--danger-soft); color: var(--danger-ink);
  border: 1px solid var(--danger); border-radius: var(--r);
  padding: 9px 12px; font-size: var(--fs-13); font-weight: 600;
}

/* ---- Verificación en dos pasos (segundo paso del acceso) ---- */
.dp { display: grid; gap: var(--s-4); }
.dp__titulo { font-size: var(--fs-18); font-weight: 700; color: var(--text-primary); text-wrap: balance; }
.dp__texto { font-size: var(--fs-13); color: var(--text-secondary); line-height: 1.5; margin: 0; }
.dp__opcion {
  display: flex; gap: var(--s-3); align-items: flex-start; width: 100%;
  padding: 12px 14px; text-align: left; font: inherit; cursor: pointer;
  background: var(--bg-surface); color: var(--text-primary);
  border: 1px solid var(--border-strong); border-radius: var(--r);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.dp__opcion:hover:not(:disabled), .dp__opcion:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); outline: none; }
.dp__opcion:disabled { opacity: .55; cursor: not-allowed; }
.dp__opcion[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.dp__opciones { display: grid; gap: var(--s-2); }
.dp__opcion b { display: block; font-size: var(--fs-14); }
.dp__opcion small { display: block; margin-top: 2px; font-size: var(--fs-12); color: var(--text-muted); line-height: 1.4; }
.dp__icono { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand-ink); }
.dp__pasos { margin: 0; padding-left: 20px; list-style: decimal; font-size: var(--fs-13); color: var(--text-secondary); line-height: 1.5; display: grid; gap: 4px; }
.dp__qr { justify-self: center; width: 188px; max-width: 100%; padding: 6px; background: #ffffff; border-radius: var(--r); border: 1px solid var(--border); }
.dp__qr svg { display: block; width: 100%; height: auto; }
.dp__clave { font-size: var(--fs-12); color: var(--text-muted); margin: 0; line-height: 1.5; }
.dp__clave code {
  display: block; margin-top: 4px; padding: 6px 8px; border-radius: var(--r-sm);
  background: var(--bg-inset); color: var(--text-primary); font-size: var(--fs-13);
  letter-spacing: .06em; word-break: normal; overflow-wrap: anywhere; user-select: all;
}
.dp__codigo { letter-spacing: .32em; font-size: var(--fs-18) !important; text-align: center; font-variant-numeric: tabular-nums; }
.dp__enlaces { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.dp__enlace {
  background: none; border: 0; padding: 2px 0; font: inherit; font-size: var(--fs-13);
  color: var(--text-brand, var(--brand)); cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.dp__enlace:disabled { color: var(--text-muted); cursor: default; text-decoration: none; }
.dp__enlace:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.dp__respaldo {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px var(--s-4);
  margin: 0; padding: 12px 14px; list-style: none; border-radius: var(--r);
  background: var(--bg-inset); border: 1px solid var(--border);
  font-family: Menlo, Consolas, monospace; font-size: var(--fs-14); font-variant-numeric: tabular-nums; color: var(--text-primary);
}
.dp__botones { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.dp__botones .btn { flex: 1 1 auto; }
