/* Identidade GUT para as telas de conta (entrar, criar senha e painéis de senha do sistema).
   Tokens do DESIGN.md. As classes levam o prefixo g- para não colidir com o CSS do sistema. */
:root {
  --ink: #141416; --ink2: #2b2a2e; --paper: #f6f3ee; --paper2: #efebe4; --sf: #fffdfa;
  --line: #e2ddd4; --line2: #cfc8bc; --fg: #18181b; --mut: #67635c;
  --wood: #9a6634; --wood-d: #7e5228; --wood2: #f3e6d6;
  --ok: #1d7a54; --ok2: #e0f2e9; --bad: #b3261e; --bad2: #fbe3e1; --warn: #a65a00; --warn2: #fbecd8;
  --f: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --disp: 'Fraunces', Georgia, serif;
}

/* Páginas públicas (entrar e senha) */
body.g-pub {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  box-sizing: border-box; background: var(--paper); color: var(--fg);
  font-family: var(--f); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
body.g-pub *, .g-cartao, .g-cartao * { box-sizing: border-box; }
.g-pub ::selection { background: var(--wood); color: #fff; }

.g-cartao {
  width: 100%; max-width: 420px; background: var(--sf); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px 28px 26px; box-shadow: 0 1px 2px rgba(20, 20, 22, .06), 0 18px 40px -24px rgba(20, 20, 22, .35);
  font-family: var(--f); color: var(--fg);
}
.g-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.g-topo img { width: 40px; height: 40px; display: block; }
.g-topo span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.g-cartao h1, .g-cartao h2 {
  font-family: var(--disp); font-weight: 600; font-size: 32px; line-height: 1.05; letter-spacing: -.02em;
  margin: 0 0 6px; color: var(--ink);
}
.g-sub { margin: 0 0 22px; color: var(--mut); font-size: 14px; }

.g-campo { display: block; margin-bottom: 14px; }
.g-campo > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink2); }
.g-entrada { position: relative; display: flex; }
.g-campo input {
  width: 100%; font: inherit; font-size: 15px; color: var(--fg); background: #fff;
  border: 1px solid var(--line2); border-radius: 10px; padding: 11px 12px; min-height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
.g-entrada input { padding-right: 84px; }
.g-campo input:focus { outline: none; border-color: var(--wood); box-shadow: 0 0 0 3px var(--wood2); }
.g-olho {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none;
  font: inherit; font-size: 12px; font-weight: 700; color: var(--wood-d); padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.g-olho:hover { background: var(--wood2); }
.g-olho:focus-visible, .g-link:focus-visible, .g-botao:focus-visible { outline: 2px solid var(--wood); outline-offset: 2px; }

.g-botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px;
  border: 0; border-radius: 10px; background: var(--wood); color: #fff; font: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s, opacity .15s; text-decoration: none;
}
.g-botao:hover { background: var(--wood-d); }
.g-botao:disabled { opacity: .5; cursor: not-allowed; background: var(--wood); }
.g-botao.g-sec { background: var(--sf); color: var(--fg); border: 1px solid var(--line2); }
.g-botao.g-sec:hover { border-color: var(--ink); }

.g-link {
  display: inline-block; margin-top: 14px; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13px;
  font-weight: 700; color: var(--wood-d); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.g-aviso { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--paper2); color: var(--ink2); font-size: 13px; }
.g-erro { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--bad2); color: var(--bad); font-size: 13.5px; font-weight: 600; }
.g-ok { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--ok2); color: var(--ok); font-size: 13.5px; font-weight: 600; }
[hidden] { display: none !important; }

.g-regras { list-style: none; margin: 2px 0 18px; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--mut); }
.g-regras li { display: flex; align-items: center; gap: 8px; }
.g-regras li::before {
  content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--line2); background: #fff;
}
.g-regras li.ok { color: var(--ok); }
.g-regras li.ok::before {
  border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.g-rodape { margin: 18px 0 0; font-size: 12px; color: var(--mut); text-align: center; }

/* Painel de tela cheia do primeiro acesso (dentro do sistema) */
.g-tela {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto;
  background: var(--paper);
}

@media (max-width: 480px) {
  .g-cartao { padding: 26px 18px 22px; border-radius: 14px; }
  .g-cartao h1, .g-cartao h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .g-campo input, .g-botao { transition: none; } }
