/* ══════════ Recuperar contraseña — LeadPass ══════════
   La misma familia que la entrada y el alta (login.css, signup.css): papel,
   oro, Barlow y Roboto, y los mismos campos. Aquí no hay foto de portada a
   propósito: es un paso corto al que se llega desde la entrada y al que se
   vuelve enseguida, así que la tarjeta va sola en el papel. El troquel de
   los lados la mantiene de la misma familia. */

:root {
  color-scheme: light;
  --paper: #f4f1ec;
  --ink: #172126;
  --muted: #626975;
  --line: #dededc;
  --focus: #906429;
  --heading: Barlow, system-ui, sans-serif;
  --body: Roboto, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: #805a23; text-underline-offset: 4px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.auth-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: clamp(16px, 4vw, 48px); }
.card-wrap { width: min(430px, 100%); filter: drop-shadow(0 18px 26px #392b1815); }
.card {
  padding: clamp(28px, 6vw, 40px) clamp(24px, 5.5vw, 38px);
  background: #fff;
  border-radius: 24px;
  /* Los dos bocados de los lados: el mismo troquel de la tarjeta de la
     entrada, recortado sobre el papel para que se vea la página detrás. */
  --ticket-mask:
    radial-gradient(circle at 0 50%, transparent 17.5px, #000 18.5px),
    radial-gradient(circle at 100% 50%, transparent 17.5px, #000 18.5px);
  -webkit-mask-image: var(--ticket-mask);
  -webkit-mask-composite: source-in;
  mask-image: var(--ticket-mask);
  mask-composite: intersect;
}
.brand { display: block; width: min(100%, 235px); margin-bottom: 22px; }
.brand img { display: block; width: 100%; height: auto; aspect-ratio: 4.3; object-fit: cover; }
.gold-rule { display: block; width: 34px; height: 3px; margin-bottom: 15px; background: #b68a47; border-radius: 3px; }
h1 { font-family: var(--heading); font-size: clamp(27px, 7vw, 32px); line-height: 1.14; letter-spacing: -.7px; font-weight: 600; margin: 0 0 8px; }
.sub { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 22px; }
.sub strong { color: #3d454b; font-weight: 500; overflow-wrap: anywhere; }

/* ── Avisos ── */
.msg { display: flex; align-items: flex-start; gap: 9px; border-radius: 10px; font-size: 14px; line-height: 1.55; padding: 12px 13px; margin: 0 0 20px; }
.msg svg { width: 19px; height: 19px; margin-top: 1px; }
.msg.error { color: #953325; background: #fff1ec; border: 1px solid #f1d2c8; }
.msg.aviso { color: #6a4a12; background: #fdf6e8; border: 1px solid #ecdcb9; }
.msg.exito { color: #1f6145; background: #eef8f2; border: 1px solid #c6e4d3; }

/* ── Campos ── */
.campo { margin-bottom: 16px; }
.campo label { display: block; font-size: 13px; line-height: 1.4; font-weight: 500; margin-bottom: 7px; color: #424b53; }
.input-wrap { display: flex; align-items: center; min-height: 54px; padding: 0 15px; background: #fff; border: 1px solid #d4d7da; border-radius: 10px; color: #6b737c; transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: #a57c3f; box-shadow: 0 0 0 3px #b98a4517; }
.input-wrap input { min-width: 0; width: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 16px; line-height: 1.4; padding: 15px 11px; }
.input-wrap input::placeholder { color: #858b92; opacity: 1; }
/* El autorrelleno pinta de azul solo el input, no el campo entero: se tapa
   con una sombra interior del color del campo. */
.input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  caret-color: var(--ink);
  transition: background-color 9999s ease-out 0s;
}
.input-wrap input:autofill {
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}
.pista { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 7px 0 0; }

.submit { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 54px; margin-top: 6px; border: 1px solid #967239; border-radius: 10px; color: #fff; background: linear-gradient(110deg, #a67b3c, #7e602f); box-shadow: inset 0 1px 0 #ffffff24, 0 4px 10px #85622e10; font-family: var(--heading); font-size: 18px; font-weight: 600; transition: filter .2s; }
.submit:hover { filter: brightness(1.08); }

.pie { display: flex; justify-content: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #ece8e1; font-size: 13px; line-height: 1.6; }
.pie a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 500; text-decoration: none; }
.pie a:hover { text-decoration: underline; }
.pie svg { width: 17px; height: 17px; }
/* Cuando el paso ha terminado —enlace enviado o contraseña cambiada— el
   enlace de vuelta es la única acción, así que no va de pie de página. */
.pie.solo { margin-top: 4px; padding-top: 0; border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
