/*
 * Onfactu Lite — páginas de acceso (06/10/2026)
 * login.onfactu.com (dentro de lite.onfactu.com/login) y, en plus y smart,
 * recuperar contraseña, restablecer, verificar correo y 404.
 *
 * Mismo diseño que el acceso de Onfactu (acceso.onfactu.com, dentro de
 * onfactu.com/login), con el logo y el color de Onfactu Lite.
 * El mismo fichero está en LiteLogin, plus y smart (css/onfactu-acceso.css):
 * si se cambia uno, copiar a los otros.
 *
 * Estructura: .brand (logo) + .panel (tarjeta) + .footer-mail
 */
@font-face { font-family: "Satoshi"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Satoshi-Regular.otf") format("opentype"); }
@font-face { font-family: "Satoshi"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Satoshi-Black.otf") format("opentype"); }

:root {
  --brand: #52b6ca;          /* celeste de Onfactu Lite */
  --brand-soft: #dff2f6;
  --brand-text: #1c7184;     /* celeste oscuro para textos y enlaces (se lee bien sobre blanco) */
  --navy: #070322;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f5f6fb;
  --shadow: 0 22px 45px rgba(7, 3, 34, .12);
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--navy); background: var(--bg); padding: 24px;
}
.brand { display: block; text-align: center; margin-bottom: 24px; text-decoration: none; }
.brand-logo { display: block; width: 190px; max-width: 60vw; height: auto; }

.panel {
  background: #fff; border-radius: 18px; padding: 44px 40px;
  max-width: 480px; width: 100%; text-align: center;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.icon-wrap {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-text);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.icon-wrap svg { width: 28px; height: 28px; }
.icon-wrap--ok { background: #dcfce7; color: #15803d; }
.icon-wrap--warn { background: #fdf2dc; color: #a15c07; }

h1 { margin: 0 0 8px; font-size: 24px; font-weight: 700; color: var(--navy); }
.subtitle { color: var(--muted); font-size: 14px; margin-bottom: 28px; line-height: 1.5; }

form { text-align: left; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.input {
  width: 100%; padding: 13px 16px; border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 16px; font-family: inherit; color: var(--navy); background: #fff; outline: 0;
  transition: border-color .15s;
}
.input:focus { border-color: var(--brand); }
.input.error { border-color: #dc2626; }
.input:disabled { background: #f9fafb; color: var(--muted); }
.row-end { display: flex; justify-content: flex-end; margin: -2px 0 2px; font-size: 13px; }

.link { color: var(--brand-text); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

.btn-primary {
  display: block; width: 100%; padding: 15px; margin-top: 16px;
  background: var(--brand); color: var(--navy); border: 0; border-radius: var(--radius);
  font-size: 16px; font-weight: 700; font-family: inherit; text-align: center; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(82, 182, 202, .28); transition: opacity .15s;
}
.btn-primary:hover { opacity: .9; }
.btn-primary:disabled { opacity: .6; cursor: default; }

.msg { margin-top: 14px; padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.45; text-align: left; }
.msg a { color: inherit; font-weight: 700; }
.msg-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.msg-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.msg-info { background: var(--brand-soft); color: #134e5b; border: 1px solid #b9e3ec; }

.volver {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 22px;
  font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.volver:hover { color: var(--navy); }
.volver svg { width: 16px; height: 16px; }

.footer-mail { margin-top: 24px; font-size: 12px; color: var(--muted); text-align: center; }
.footer-mail a { color: var(--muted); text-decoration: underline; }

@media (max-width: 520px) {
  body { padding: 20px 14px; justify-content: flex-start; }
  .brand { margin: 12px 0 20px; }
  .panel { padding: 28px 20px; }
}
