/* =============================================================================
 * auth-register.css — Pantalla de alta (/auth/register).
 *
 * EXTERNALIZADO desde el bloque `<style>` de `templates/auth/register.html` (ola F1 del
 * endurecimiento CSP, 2026-07-26). Vivía inline en la plantilla, lo que obligaba
 * a `style-src 'unsafe-inline'` en la Content-Security-Policy: con esa concesión
 * un XSS podía inyectar CSS y exfiltrar datos por selectores + `url()`. Ahora la
 * hoja se sirve de `/static/css/` (mismo origen) y la CSP puede exigir
 * `style-src-elem 'self'` sin ninguna excepción.
 *
 * REGLA: no volver a meter `<style>` en la plantilla — el test
 * `crates/web/tests/csp_no_inline_style_test.rs` lo rompe a propósito.
 * El ORDEN de carga importa: este `<link>` va donde estaba el `<style>`, para
 * que la cascada (quién gana sobre `brand.css`) no cambie de aspecto.
 * ========================================================================== */
.auth-shell { max-width: 460px; }
h1 { font-size: 1.4rem; }
form { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.1rem; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; padding: 0.65rem 0.75rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.checks { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.25rem; }
.checks label { font-weight: 400; font-size: 0.88rem; color: var(--text-soft);
  display: flex; gap: 0.5rem; align-items: flex-start; line-height: 1.4; }
.checks input[type=checkbox] { margin-top: 0.2rem; flex-shrink: 0; }
.checks a { color: var(--primary-text); text-decoration: none; }
.checks a:hover { text-decoration: underline; }
/* Botón principal con el coral de marca (antes azul #4f9eff). */
button[type=submit] {
  padding: 0.8rem; border-radius: var(--radius); border: 0;
  background: var(--primary); color: #fff; font: inherit; font-weight: 600;
  font-size: 1rem; cursor: pointer;
}
button[type=submit]:hover { background: var(--primary-hover); }
/* Honeypot field — invisible para humanos, recolectable por bots ingenuos. */
.hp-trap {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.pwd-hint { font-size: 0.8rem; color: var(--text-soft); margin-top: 0.25rem; }
/* Puente hacia el login, con el mismo peso que su gemelo en login.html. */
.switch-auth {
  margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--border);
  text-align: center; font-size: 0.92rem;
}
.switch-auth .btn-secondary {
  display: block; padding: 0.7rem 1rem;
  border: 1px solid var(--primary); border-radius: var(--radius);
  color: var(--primary-text); font-weight: 700; text-decoration: none;
}
.switch-auth .btn-secondary:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
