/* ========================================
   Verification screens — code grid + helpers
   ----------------------------------------
   Used by the password recovery and signup confirmation flows
   (passwords/verify, verifications/new). The 6-cell grid is the
   focal element; everything else lives in components/auth-form.css.
   ======================================== */

.code-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(4px, 2vw, 10px);
  margin: 0 0 12px;
}

.code-cell {
  /* min-width: 0 es crítico — los <input> en grid no shrinkean sin esto */
  min-width: 0;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--auth-line-strong);
  background: var(--auth-form-bg-2);
  color: var(--auth-ink);
  font-family: var(--font-scoreboard);
  font-size: clamp(16px, 4.5vw, 28px);
  text-align: center;
  outline: none;
  transition: border-color 150ms, background 150ms, box-shadow 150ms;
}

.code-cell:focus {
  border-color: var(--auth-green);
  background: rgba(10, 219, 198, 0.06);
  color: var(--auth-green);
  box-shadow: 0 0 0 3px rgba(10, 219, 198, 0.12);
}

.code-cell.-filled {
  border-color: var(--auth-green);
  background: rgba(10, 219, 198, 0.06);
  color: var(--auth-green);
}

.code-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--auth-muted);
  letter-spacing: 0.06em;
}
.code-meta > svg { width: 12px; height: 12px; }
.code-meta > .-spacer { flex: 1; }
.code-meta > .countdown { color: var(--auth-gold); letter-spacing: 0.1em; }

.code-resend { display: inline; margin: 0; }

.btn-resend {
  background: transparent;
  border: 0;
  color: var(--auth-green);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
}
.btn-resend:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth-hint {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px dashed var(--auth-line-strong);
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--auth-muted);
}
.auth-hint > .icon { font-size: 16px; flex: 0 0 auto; }
.auth-hint strong { color: var(--auth-ink-soft); font-weight: 600; }
.auth-hint .dim { display: block; margin-top: 2px; }
