/* Telas da Conta. Medidas do quadro 41:6 do Figma (zrD2SCMuRhH6vAJ3gd2nh4), tokens de elementar/front/docs/design.md.
   F = medido no Figma; D = derivado para AA. Sem framework: poucas telas, carregamento rápido no celular. */
:root {
  --primary: #44bf6e;            /* F */
  --primary-foreground: #0b1f12; /* D: texto sobre o verde (branco dá 2,3:1) */
  --primary-text: #1f7a42;       /* D: verde como texto sobre claro */
  --field: #d9d9d9;              /* F: fundo do campo */
  --field-border: #3c3c3c;       /* F */
  --ink: #000000;                /* F: título e rótulos */
  --ink-muted: #2b2f36;          /* D */
  --surface: #1b1f27;            /* F (Elementar): painel direito */
  --danger: #b3261e;             /* D: erro sobre o vidro claro, 5,9:1 */
  --radius-card: 14px;           /* F */
  --radius-control: 8px;         /* F */
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #0d7d6c url("/img/entrar-fundo.webp") center / cover no-repeat fixed;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 16px;
}
.card {
  display: grid; grid-template-columns: 367px 367px;  /* F: 734 × 496 */
  min-height: 496px; border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}
.card__form {
  background: rgba(255, 255, 255, .38);                /* F: vidro */
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 48px 44px 40px; display: flex; flex-direction: column; align-items: center;
}
.card__aside {
  background: var(--surface); color: #fff; padding: 40px; display: flex; flex-direction: column;
  justify-content: center; gap: 16px;
}
.card__aside img { width: 96px; height: auto; }
.card__aside p { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; }
.card__aside small { color: #a3abb8; font-size: 14px; }
.brand { width: 140px; height: auto; margin-bottom: 18px; }   /* F: 173 × 141 no Elementar; símbolo da Conta menor */
h1 { font-size: 22px; font-weight: 700; margin: 0; text-align: center; }
.subtitle { font-size: 16px; margin: 4px 0 20px; text-align: center; color: var(--ink-muted); }
form { width: 100%; margin: 0; }
.field { width: 100%; margin-bottom: 14px; }
label { display: block; font-size: 15px; margin: 0 0 4px 4px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; height: 44px; padding: 0 12px;            /* F: 37 px; D: 44 px de alvo de toque */
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--field); border: 1px solid var(--field-border); border-radius: var(--radius-control);
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #0b57d0; outline-offset: 2px; }
.btn {
  width: 100%; height: 44px; border: 0; border-radius: var(--radius-control); cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600;
  background: var(--primary); color: var(--primary-foreground);
}
.btn[aria-busy=true] { opacity: .7; cursor: progress; }
.btn--light { background: #fff; color: var(--ink); border: 1px solid var(--field-border); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.links { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 15px; }
.links a { color: var(--ink); }
.divider { display: flex; align-items: center; gap: 8px; margin: 16px 0; font-size: 14px; color: var(--ink-muted); width: 100%; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(0, 0, 0, .25); }
.error { color: var(--danger); font-size: 14px; margin: 6px 0 0 4px; font-weight: 600; }
.status { background: rgba(255, 255, 255, .8); border-radius: var(--radius-control); padding: 10px 12px; font-size: 14px; margin-bottom: 14px; width: 100%; }
.code-boxes { display: flex; gap: 8px; justify-content: space-between; }
.code-boxes input { width: 44px; height: 52px; text-align: center; font-size: 22px; padding: 0; }
.google { min-height: 44px; display: flex; justify-content: center; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .card { grid-template-columns: 1fr; width: 100%; max-width: 420px; min-height: 0; }
  .card__aside { display: none; }
  .card__form { padding: 32px 24px; }
}
