/* ═══════════════════════════════════════════════
   IRzinho — Telas de autenticação
   (login.html, registrar.html, trocar-senha.html)

   Importar depois de irzinho-shared.css. Antes deste arquivo, as três
   páginas repetiam ~150 linhas de CSS quase idênticas no próprio
   <style>; agora ficam só com o que é realmente delas.

   Layout (redesenho set/2026): tela dividida — painel da marca à
   esquerda (o que a pessoa ganha ao entrar, pra lembrar a proposta
   do produto) e o formulário à direita. Abaixo de 900px o painel
   some e fica só o cartão do formulário, centralizado.
   ═══════════════════════════════════════════════ */

.dark body { background: var(--white); }

/* body em coluna flex: .login-wrap cresce com flex:1 e empurra o
   footer pro fim da tela, sem sobrar altura extra que force scroll
   numa página com pouco conteúdo. */
body { display: flex; flex-direction: column; min-height: 100vh; }

.login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 1.25rem 3rem;
  position: relative;
}
.login-wrap::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 55% at 15% 20%, rgba(90, 159, 212, .12) 0%, transparent 65%);
}
.dark .login-wrap::before {
  background: radial-gradient(ellipse 55% 55% at 15% 20%, rgba(26, 58, 92, .45) 0%, transparent 65%);
}

.auth-shell {
  position: relative;
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 70px -30px rgba(17, 17, 16, .30), var(--shadow-sm);
  overflow: hidden;
}
.dark .auth-shell { background: var(--surface); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); }

/* ── Painel da marca ── */
.auth-side {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
}
.dark .auth-side { background: #0E2D1C; }
.auth-side::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(255, 255, 255, .14) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(90, 159, 212, .28) 0%, transparent 70%);
}
.auth-side > * { position: relative; }
.auth-side .logo { color: #fff; font-size: 1.4rem; }
.auth-side .logo span { color: #fff; opacity: .8; }
.auth-side h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: auto 0 1rem;
  padding-top: 3rem;
}
.auth-side h2 em { font-style: italic; opacity: .85; }
.auth-side p { font-size: .9rem; line-height: 1.6; color: rgba(255, 255, 255, .78); margin-bottom: 1.75rem; }
.auth-list { display: grid; gap: .85rem; }
.auth-list li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
}
.auth-list .ic {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.auth-list .ic svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2; }
.auth-side-foot {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .76rem;
  color: rgba(255, 255, 255, .65);
  display: flex; align-items: center; gap: .45rem;
}
.auth-side-foot svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Cartão do formulário ── */
.login-card {
  width: 100%;
  padding: 2.75rem 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: .5rem;
}

.login-card p.sub {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.login-field { margin-bottom: 1.1rem; }
.login-field label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: .45rem;
}
.login-field input {
  width: 100%;
  padding: .8rem 1rem;
  font-size: .92rem;
  border-radius: 12px;
  background: var(--white);
}
.dark .login-field input { background: var(--camtex); }
.login-field .dica,
.login-field-ajuda {
  font-size: .76rem;
  color: var(--muted);
  margin-top: .4rem;
  line-height: 1.5;
}

.login-erro {
  display: none;
  background: var(--danger-light);
  border: 1px solid var(--danger-border);
  border-radius: 12px;
  padding: .75rem .95rem;
  font-size: .84rem;
  color: var(--danger);
  margin-bottom: 1.1rem;
  line-height: 1.5;
}
.login-erro.visible { display: block; }

.login-submit {
  width: 100%;
  padding: .95rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  box-shadow: 0 6px 18px rgba(26, 92, 58, .22);
  transition: opacity .15s, transform .15s;
  margin-top: .6rem;
}
.login-submit:hover { opacity: .9; transform: translateY(-1px); }
.login-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.login-submit svg { width: 16px; height: 16px; }

.login-form.hidden { display: none; }

.login-sucesso { display: none; text-align: center; }
.login-sucesso.visible { display: block; }
.login-sucesso .icone-ok {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem;
}
.login-sucesso .icone-ok svg { width: 26px; height: 26px; stroke: var(--accent); }
.login-sucesso h2 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.7rem; color: var(--ink); margin-bottom: .4rem; }
.login-sucesso p { font-size: .88rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.6; }
.login-sucesso p strong { color: var(--ink); font-weight: 500; }

.login-rodape {
  text-align: center;
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
}
.login-rodape a { color: var(--accent); text-decoration: none; font-weight: 500; }
.login-rodape a:hover { text-decoration: underline; }
.login-rodape button {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-weight: 500;
}
.login-rodape button:hover { text-decoration: underline; }

.legal-nota { font-size: .76rem; color: var(--muted); margin: -.2rem 0 .8rem; line-height: 1.5; }
.legal-nota a { color: var(--text); text-decoration: underline; }

/* honeypot — invisível pra humano, visível pra bot que preenche tudo */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Responsivo ── */
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 440px; }
  .auth-side { display: none; }
}
@media (max-width: 480px) {
  .login-wrap { padding: 5rem .75rem 2rem; }
  .auth-shell { border-radius: 22px; }
  .login-card { padding: 2rem 1.4rem 1.75rem; }
  .login-card h1 { font-size: 1.9rem; }
}
