/* Telas de acesso: entrar, recuperar senha, nova senha e bloqueio. Sem dependências externas. */
:root { --bg:#fff; --fg:#17202a; --muted:#566370; --line:#c4ccd3; --campo:#fff; --verde:#13794a; --verde-fg:#fff; --link:#13794a; --erro:#b42318; --erro-bg:#fdecea; --ok-bg:#e6f6ee; --painel:#0f2a21; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#12161b; --fg:#e8ecf0; --muted:#9aa6b2; --line:#36424d; --campo:#1a2128; --verde:#3cc585; --verde-fg:#06240f; --link:#5fd6a0; --erro:#ff8a80; --erro-bg:#3a1c1a; --ok-bg:#16301f; --painel:#0b1f18; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.cp-entrar { background: var(--bg); color: var(--fg); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

.cp-tela { min-height: 100vh; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }

/* Painel da marca (em telas largas fica ao lado; no celular vira uma faixa com a marca) */
.cp-painel { background: var(--painel); color: #e7f4ec; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.cp-painel .cp-marca { font-size: 1.15rem; color: #fff; }
.cp-painel .cp-nome span { color: #3cc585; }
.cp-texto { display: none; }
.cp-rua { display: none; }

.cp-form { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 28px 20px 20px; min-height: 0; }
.cp-caixa { width: 100%; max-width: 380px; }
.cp-caixa h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.02em; }
.cp-sub { margin: 0 0 22px; color: var(--muted); }

.cp-aviso { border-radius: 10px; padding: 11px 14px; margin: 0 0 18px; font-size: .95rem; border: 1px solid transparent; }
.cp-aviso.erro { background: var(--erro-bg); color: var(--erro); border-color: var(--erro); }
.cp-aviso.ok { background: var(--ok-bg); color: var(--fg); border-color: var(--verde); }

.cp-caixa label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: .95rem; }
.cp-caixa input[type=text], .cp-caixa input[type=password], .cp-caixa input[type=email] {
  width: 100%; height: 50px; padding: 0 14px; font: inherit; color: var(--fg); background: var(--campo);
  border: 1.5px solid var(--line); border-radius: 10px; }
.cp-caixa input[readonly] { color: var(--muted); }
.cp-caixa input:focus-visible, .cp-ver:focus-visible, .cp-botao:focus-visible, .cp-links a:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; }
.cp-caixa input:focus { border-color: var(--verde); }

.cp-senha { position: relative; }
.cp-senha input { padding-right: 92px !important; }
.cp-ver { position: absolute; right: 6px; top: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--link); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.cp-ver:hover { background: rgba(127,127,127,.12); }

.cp-botao { width: 100%; height: 52px; margin-top: 24px; border: 0; border-radius: 10px; background: var(--verde); color: var(--verde-fg); font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.cp-botao:hover { filter: brightness(1.08); }
.cp-botao:active { transform: translateY(1px); }

.cp-links { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.cp-links a { color: var(--link); }
.cp-extra { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.cp-extra a { color: var(--link); font-weight: 600; }

.cp-rodape { margin-top: 30px; color: var(--muted); font-size: .85rem; text-align: center; }
.cp-rodape a { color: var(--muted); }

@media (min-width: 900px) {
  .cp-tela { grid-template-columns: minmax(380px, 5fr) 6fr; grid-template-rows: auto; }
  .cp-painel { padding: 40px 44px 0; min-height: 100vh; position: sticky; top: 0; }
  .cp-painel .cp-marca { font-size: 1.35rem; }
  .cp-texto { display: block; max-width: 24rem; margin-top: auto; }
  .cp-texto h2 { font-size: 2rem; line-height: 1.18; letter-spacing: -.02em; margin: 0 0 12px; font-weight: 700; color: #fff; }
  .cp-texto p { margin: 0; color: #9cc9b3; font-size: 1.02rem; }
  .cp-rua { display: block; width: calc(100% + 88px); margin: 28px -44px 0; height: auto; }
  .cp-form { padding: 40px; }
  .cp-rodape { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .cp-botao:active { transform: none; } }
