/* Pages of the alternative access (email and password), development only.
   Same tokens as docs/maquetas/pagina-gracias-contrasena-v1.html. System fonts only:
   no third-party requests from pages that carry a password or a reset token. */
:root {
  --background: #faf9f6; --foreground: #171717; --primary: #651f32; --primary-foreground: #fff;
  --border: #d9d7d3; --muted: #65635f; --card: #fff; --ok: #2f6b3a; --dev: #8a5a00; --dev-bg: #fff4dc;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #141312; --foreground: #f2f0ec; --primary: #d98ea2; --primary-foreground: #141312;
    --border: #3a3835; --muted: #a8a5a0; --card: #1d1c1a; --ok: #8fcf9a; --dev: #f3c46b; --dev-bg: #2b2414;
  }
}
:root[data-theme="dark"] {
  --background: #141312; --foreground: #f2f0ec; --primary: #d98ea2; --primary-foreground: #141312;
  --border: #3a3835; --muted: #a8a5a0; --card: #1d1c1a; --ok: #8fcf9a; --dev: #f3c46b; --dev-bg: #2b2414;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
.dev { background: var(--dev-bg); color: var(--dev); font-size: 12px; letter-spacing: .04em; text-align: center; padding: 8px 16px; }
header { padding: 22px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: center; }
.wordmark { font-size: 14px; letter-spacing: 3px; font-weight: 600; text-transform: uppercase; }
main { max-width: 480px; margin: 0 auto; padding: 40px 16px 56px; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin: 0 0 12px; }
h1 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: 38px; line-height: 1.1; margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0 0 28px; }
.lead strong { color: var(--foreground); font-weight: 500; overflow-wrap: anywhere; }
.card { background: var(--card); border: 1px solid var(--border); padding: 20px; }
.row + .row { margin-top: 18px; }
.label, label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.value { font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.password { display: flex; align-items: center; gap: 12px; }
.password .value { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 17px; line-height: 1.4; letter-spacing: .02em; flex: 1; overflow-wrap: anywhere; }
button.copy { font: inherit; font-size: 14px; font-weight: 600; min-height: 44px; min-width: 88px; padding: 0 16px; border: 1px solid var(--foreground); background: transparent; color: var(--foreground); cursor: pointer; }
button.copy.done { border-color: var(--primary); color: var(--primary); }
.note { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 14px 0 0; }
.primary { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 28px; min-height: 54px; border: 0; background: var(--primary); color: var(--primary-foreground); font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; }
.primary:disabled { opacity: .4; cursor: default; }
.field + .field { margin-top: 18px; }
.input { display: flex; border: 1px solid var(--border); background: var(--card); }
.input:focus-within { border-color: var(--foreground); }
.input.problem { border-color: var(--primary); }
input { flex: 1; min-width: 0; font: inherit; font-size: 17px; color: inherit; background: transparent; border: 0; padding: 0 14px; min-height: 52px; outline: none; }
.show { font: inherit; font-size: 14px; font-weight: 600; color: var(--foreground); background: transparent; border: 0; border-left: 1px solid var(--border); min-width: 72px; min-height: 52px; cursor: pointer; }
.hint { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 12px 0 0; min-height: 21px; }
.hint.problem { color: var(--primary); }
.hint.ok { color: var(--ok); }
ol { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: step; }
ol li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15px; line-height: 1.5; padding: 10px 0; border-top: 1px solid var(--border); }
ol li::before { content: counter(step); font-family: 'Newsreader', Georgia, serif; font-size: 20px; color: var(--primary); }
.help { margin-top: 28px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.help a { color: var(--foreground); text-decoration: underline; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 8px 0 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
[hidden] { display: none !important; }
/* Thank-you page: two numbered steps. Step 2 waits, dimmed, until she copies the password. */
.steps { margin-top: 28px; }
.step { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.step + .step { margin-top: 30px; }
.step:not(:last-child)::after { content: ''; position: absolute; left: 14.5px; top: 38px; bottom: -22px; width: 1px; background: var(--border); }
.step-num { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); color: var(--muted); display: grid; place-items: center; font-size: 14px; font-weight: 600; transition: background .3s, border-color .3s, color .3s; }
.step-num .tick { display: none; }
.step.current .step-num { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.step.done .step-num { border-color: var(--primary); color: var(--primary); }
.step.done .step-num .n { display: none; }
.step.done .step-num .tick { display: inline; }
.step-body { min-width: 0; transition: opacity .3s; }
.step:not(.current):not(.done) .step-body { opacity: .45; }
.step h2 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: 24px; line-height: 1.2; margin: 1px 0 12px; }
.steps .card { border-radius: 14px; padding: 16px; }
.steps .card .label { margin-bottom: 4px; }
.steps .email { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; margin-bottom: 14px; }
.steps button.copy { border-radius: 999px; min-width: 84px; }
.steps .note { margin-top: 10px; }
.steps .primary { margin-top: 0; border-radius: 999px; }
.steps .hint:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .step-num, .step-body { transition: none; } }
