/* =========================================================================
   acesso.css — telas de login e primeiro acesso.

   CSS próprio, e não o do app: estas páginas carregam antes de qualquer
   autenticação, e puxar 40 KB de estilo do board para desenhar dois campos
   seria peso sem motivo. Os tokens de cor são os mesmos, copiados.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #191919;
  --cartao: #202020;
  --tex: rgba(255,255,255,.86);
  --tex2: rgba(255,255,255,.5);
  --tex3: rgba(255,255,255,.3);
  --bor: rgba(255,255,255,.1);
  --blue: #2383e2;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont,
          "Segoe UI Variable Display", "Segoe UI", Helvetica, Arial, sans-serif;
}

html, body { margin: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--tex);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.acesso {
  min-height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px; padding: 40px 20px;
}

.acesso-marca { display: flex; align-items: center; gap: 12px; }
.acesso-logo {
  width: 38px; height: 38px; border-radius: 9px;
  background: #d44c47; color: #fff;
  display: grid; place-items: center;
  font-size: 19px; font-weight: 700;
}
.acesso-marca strong { display: block; font-size: 16px; }
.acesso-marca span { font-size: 12px; color: var(--tex3); }

.acesso-cartao {
  width: 100%; max-width: 380px;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px;
  background: var(--cartao);
  border: 1px solid var(--bor); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

.acesso-cartao h1 { margin: 0; font-size: 19px; font-weight: 600; }

.acesso-cartao label { display: flex; flex-direction: column; gap: 6px; }
.acesso-cartao label > span { font-size: 12px; color: var(--tex2); }
.acesso-cartao label em { color: var(--tex3); font-style: normal; }

.acesso-cartao input,
.acesso-cartao select {
  background: var(--bg); color: var(--tex);
  border: 1px solid var(--bor); border-radius: 7px;
  padding: 10px 12px; font: inherit; font-size: 14px;
}
.acesso-cartao input:focus,
.acesso-cartao select:focus { outline: none; border-color: var(--blue); }

.acesso-botao {
  margin-top: 6px; padding: 11px;
  background: var(--blue); color: #fff;
  border: 0; border-radius: 7px;
  font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.acesso-botao:hover { filter: brightness(1.1); }
.acesso-botao:active { transform: translateY(1px); }

.acesso-erro {
  margin: 0; padding: 10px 12px; border-radius: 7px;
  background: rgba(235,87,87,.14);
  border: 1px solid rgba(235,87,87,.3);
  color: #ff9d95; font-size: 13px; line-height: 1.5;
}

.acesso-nota { margin: 0; font-size: 13px; color: var(--tex2); line-height: 1.6; }
.acesso-nota.pequena { font-size: 12px; color: var(--tex3); margin-top: -6px; }



/* ============================= abas do acesso =========================
   Entrar e Criar conta na mesma tela. São links (?aba=), não botões com JS: a
   tela de acesso é a única que precisa funcionar com o bundle do app fora do
   ar. */

.acesso-abas {
  display: flex; gap: 2px;
  margin: -4px -4px 18px;
  padding: 3px;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
}

.acesso-aba {
  flex: 1;
  padding: 8px 10px; border-radius: 6px;
  text-align: center; text-decoration: none;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.5);
}
.acesso-aba:hover { color: rgba(255,255,255,.85); }
/* A aba ativa ganha fundo E cor de texto: só a cor não distingue o suficiente
   num cartão escuro. */
.acesso-aba.on {
  background: #2c2c2c; color: rgba(255,255,255,.92);
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}

/* Código do convite: maiúsculas, espaçado e monoespaçado, para se conferir
   caractere a caractere com o e-mail aberto ao lado. */
.acesso-codigo {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px; letter-spacing: .22em; text-transform: uppercase;
}

.acesso-sucesso {
  margin: 0; padding: 10px 12px; border-radius: 7px;
  background: rgba(46,160,67,.14);
  border: 1px solid rgba(46,160,67,.3);
  color: #7ee787; font-size: 13px; line-height: 1.5;
}

.acesso-aviso {
  margin: 0; padding: 10px 12px; border-radius: 7px;
  background: rgba(245,166,35,.12);
  border: 1px solid rgba(245,166,35,.3);
  color: #ffc566; font-size: 13px; line-height: 1.5;
}

.acesso-botao-secundario {
  width: 100%; padding: 10px;
  background: rgba(255,255,255,.06); color: var(--tex);
  border: 1px solid var(--bor); border-radius: 7px;
  font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background .15s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.acesso-botao-secundario:hover {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: background-color .15s ease;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--blue);
  border: 1.5px solid transparent;
  background-clip: content-box;
}
