/* Entrar, criar conta, esqueci a senha, senha nova (frente B1). Só variáveis de tokens.css, mais as daqui (prefixo --e-). */
:root {
  --e-gutter: clamp(16px, 4vw, 48px);
  --e-discord: #5865F2;             /* cor da marca do Discord no botão de entrar */
  --e-discord-forte: #4752C4;
  --e-sobre-discord: #FFFFFF;
}

body { min-height: 100vh; }
a { color: var(--acento-forte); }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }

.botao { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px;
  border-radius: var(--raio-pilula); border: 2px solid transparent; font-weight: 600; font-size: 16px; line-height: 1.1;
  text-decoration: none; cursor: pointer; transition: background-color .15s, transform .1s; }
.botao:active { transform: translateY(1px); }
.botao-grande { min-height: 54px; font-size: 17px; }
.botao-cheio { background: var(--acento); color: var(--no-acento);
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--tinta) 22%, transparent); }
.botao-cheio:hover { background: var(--acento-forte); }
.botao[disabled], .botao[aria-busy="true"] { opacity: .72; cursor: progress; }
.botao-discord { width: 100%; background: var(--e-discord); color: var(--e-sobre-discord);
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--tinta) 18%, transparent); }
.botao-discord:hover { background: var(--e-discord-forte); }
.botao-discord svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- moldura ---------- */
.e-pagina { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.e-lado { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 28px clamp(24px, 4vw, 56px) 32px; overflow: hidden;
  background: color-mix(in srgb, var(--acento-suave) 72%, var(--fundo)); }
.e-marca { display: inline-flex; align-items: center; gap: 10px; color: var(--tinta); text-decoration: none; align-self: flex-start;
  font-family: var(--titulo); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.e-cena { display: grid; justify-items: start; gap: 18px; }
.e-fala { position: relative; max-width: 15ch; padding: 20px 24px 22px; border-radius: var(--raio-grande); background: var(--painel);
  box-shadow: var(--sombra); font-family: var(--titulo); font-weight: 700; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.3rem);
  line-height: 1.08; letter-spacing: -.025em; color: var(--tinta); text-wrap: balance; }
.e-fala::after { content: ""; position: absolute; left: 96px; bottom: -14px; width: 28px; height: 28px; background: var(--painel);
  clip-path: polygon(0 0, 100% 0, 15% 100%); }
.e-bixo { width: clamp(170px, 20vw, 260px); height: auto; margin-left: 12px; }
.e-bixo .pupila, .e-bixo .palpebra { transition: transform .2s ease-out; }
.e-bixo .palpebra { transform: translateY(0); }
.e-pagina.olho-fechado .e-bixo .palpebra { transform: translateY(12.5px); }
.e-pagina.olho-fechado.espiando .e-bixo .palpebra-d { transform: translateY(6px); }
.e-leitura { color: var(--suave); font-size: 14px; }

.e-principal { display: grid; place-items: center; padding: 48px var(--e-gutter); }
.e-caixa { width: 100%; max-width: 420px; }
.e-estado h1 { margin: 0 0 6px; font-family: var(--titulo); font-weight: 800; font-size: clamp(2.1rem, 1.6rem + 1.2vw, 2.7rem);
  line-height: 1.02; letter-spacing: -.032em; }
.e-sub { margin-bottom: 26px; color: var(--suave); max-width: 40ch; }

/* ---------- formulário ---------- */
.e-form { display: grid; gap: 16px; }
.e-campo { display: grid; gap: 6px; }
.e-campo label { font-weight: 600; font-size: 15px; }
.e-rotulo-linha { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.e-rotulo-linha a { font-size: 14px; font-weight: 600; }
.e-campo input { width: 100%; height: 52px; padding: 0 14px; border-radius: var(--raio); border: 1.5px solid var(--linha);
  background: var(--painel); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.e-campo input:hover { border-color: color-mix(in srgb, var(--acento) 40%, var(--linha)); }
.e-campo input:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 4px var(--acento-suave); }
.e-campo input[aria-invalid="true"] { border-color: var(--ruim); }
.e-campo input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ruim) 18%, transparent); }
.e-senha { position: relative; }
.e-senha input { padding-right: 96px; }
.e-ver { position: absolute; top: 6px; right: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: calc(var(--raio) - 4px);
  background: transparent; color: var(--acento-forte); font-weight: 600; font-size: 15px; cursor: pointer; }
.e-ver:hover { background: var(--acento-suave); }
.e-erro { color: var(--ruim); font-size: 14px; font-weight: 500; }
.e-dica { color: var(--suave); font-size: 14px; }
.e-minimo.ok { color: var(--bom); }
.e-minimo.ok::before { content: "✓ "; font-weight: 700; }
.e-caps { color: var(--alerta); font-weight: 500; }
.e-enviar { width: 100%; margin-top: 6px; }

.e-ou { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--suave); font-size: 14px; }
.e-ou::before, .e-ou::after { content: ""; flex: 1; height: 1px; background: var(--linha); }
.e-nota { margin-top: 10px; text-align: center; color: var(--suave); font-size: 13px; }
.e-troca { margin-top: 28px; color: var(--suave); }
.e-troca a { font-weight: 600; }

.e-alerta, .e-pronto { margin-bottom: 18px; padding: 13px 15px; border-radius: var(--raio); font-size: 15px; line-height: 1.45; color: var(--tinta);
  background: color-mix(in srgb, var(--ruim) 9%, var(--painel)); border: 1px solid color-mix(in srgb, var(--ruim) 34%, transparent); }
.e-alerta.bom, .e-pronto { background: color-mix(in srgb, var(--bom) 10%, var(--painel)); border-color: color-mix(in srgb, var(--bom) 36%, transparent); }
.e-alerta a { font-weight: 600; }
.e-pronto { margin: 0; }
.e-email-enviado { font-weight: 600; word-break: break-all; }

/* ---------- celular ---------- */
@media (max-width: 860px) {
  .e-pagina { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .e-lado { flex-direction: row; align-items: center; padding: 14px var(--e-gutter) 0; gap: 12px; overflow: visible; }
  .e-cena { margin-left: auto; display: block; }
  .e-fala, .e-leitura { display: none; }
  .e-bixo { width: 92px; margin: 0 0 -1px; }
  .e-marca { font-size: 18px; align-self: center; }
  .e-marca img { width: 28px; height: 28px; }
  .e-principal { place-items: start center; padding: 28px var(--e-gutter) 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
