/* Sign-in page */

.login { max-width: 520px; padding-block: 18px 30px; }
/* From 920 px (DESIGN.md §6): title and Rojelio left, the form right, ≤ 520 px, above the fold. */
@media (min-width: 920px) {
  .login { max-width: 1100px; }
  .login-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 32px; align-items: start; }
}
.login-h { font-size: clamp(2rem, 8vw, 3rem); margin: 0 0 20px; text-shadow: 4px 4px 0 var(--accent); }
.login .roj { margin-bottom: 22px; }

.login-card { display: grid; gap: 4px; }
.login-card form { display: grid; gap: 10px; }

.fld { font-weight: 700; font-size: .98rem; }
.inp {
  width: 100%; min-height: 52px; padding: 10px 14px;
  font: inherit; font-size: 1.1rem; color: var(--line); background: #fff;
  border: 3px solid var(--line); border-radius: 12px;
}
.inp:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.inp.code { font-family: var(--slab); font-size: 1.7rem; letter-spacing: .35em; text-align: center; }
.inp[aria-invalid="true"] { border-color: var(--rosa); }

.btn.wide { width: 100%; }
.btn.google { background: #fff; color: #1A1A2E; }

.hint, .sent { margin: 0; color: #5A5470; font-size: .95rem; }
.typo-hint { margin: 6px 0 0; color: #5A5470; font-size: .95rem; }
.typo-hint .link { font: inherit; font-weight: 700; color: #C8502A; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.sent b { color: var(--line); overflow-wrap: anywhere; }
.hint.terms { margin-top: 14px; font-size: .88rem; text-align: center; }
.hint.terms a { color: var(--line); font-weight: 700; text-underline-offset: 3px; }

.row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.link {
  font: inherit; font-weight: 700; color: var(--line); background: none; border: 0; padding: 8px 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px;
}
.link[disabled] { opacity: .5; cursor: not-allowed; text-decoration: none; }
.link:focus-visible { outline: 3px solid var(--cemp); outline-offset: 2px; border-radius: 4px; }

.ts { display: flex; justify-content: center; min-height: 0; margin-top: 8px; }
.ts:empty { display: none; }

.or { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: #5A5470; font-weight: 700; }
.or::before, .or::after { content: ""; flex: 1; height: 2px; background: var(--line); opacity: .2; }

.invite { margin: 22px 2px 0; color: var(--muted); }
.invite a { color: var(--text); font-weight: 700; text-underline-offset: 3px; }

/* Invite page (/i/<token>, spec §17): the invite pose is an <img>, not a kit sprite. */
.roj .pd img { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.inv-status { margin: 18px 2px 0; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }

/* Sign-up question (js/acceso.js, spec §20): under the email field, two
   columns of options so the button stays above the fold at 390 × 844. */
.ask { border: 0; margin: 4px 0 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.ask[hidden] { display: none; }
.ask legend { padding: 0; margin-bottom: 8px; }
.ask-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ask-opt {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px;
  font-size: .95rem; line-height: 1.2; color: var(--line); background: #fff;
  border: 2px solid var(--line); border-radius: 10px; cursor: pointer; color-scheme: light;
}
.ask-opt input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--line); }
.ask-opt:has(input:checked) { background: var(--accent); }
.ask-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.ask-need { display: none; }
.ask[aria-invalid="true"] legend { color: var(--rosa); }
.ask[aria-invalid="true"] .ask-need { display: block; color: var(--rosa); font-weight: 700; }

/* Group step (spec §19.9): a new member coming from /grupo/ gives the WhatsApp number
   under the email field; it only invites that email. */
.grupo-step { display: grid; gap: 8px; margin-top: 4px; }
.grupo-step[hidden] { display: none; }
.grupo-step .inv-status { margin: 4px 2px 0; }
