/* ==========================================================================
   Conecta Jurídico — telas de acesso (login, cadastro) e páginas de erro (v2)
   ========================================================================== */
.auth { min-height: 100dvh; background: var(--bg); }
.auth__shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100dvh; }

.auth__brand {
  position: relative; display: flex; overflow: hidden; color: #fff;
  padding: clamp(28px, 4.2vw, 64px);
  background: linear-gradient(160deg, #08305e 0%, #051f40 55%, #031428 100%);
}
.auth__brand::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 440px at 100% 0%, rgba(221, 185, 114, .22), transparent 60%),
    radial-gradient(640px 420px at -10% 110%, rgba(52, 132, 230, .30), transparent 60%);
}
.auth__brand::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 30px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
}
.auth__brand-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 44px; width: 100%; max-width: 580px; align-self: stretch; }
.auth__brand .brand { padding: 0; }
.auth__eyebrow { display: flex; align-items: center; gap: .6rem; font-size: .75rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 18px; }
.auth__eyebrow::before { content: ''; width: 24px; height: 2px; border-radius: 2px; background: var(--gold-300); }
.auth__hero h1 { max-width: 17ch; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.auth__lead { margin-top: 18px; max-width: 46ch; font-size: 1.0625rem; line-height: 1.6; color: rgba(255, 255, 255, .76); }
.auth__points { display: flex; flex-direction: column; gap: 18px; }
.auth__points li { display: flex; align-items: flex-start; gap: 14px; font-size: .875rem; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.auth__points li > .i { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255, 255, 255, .09); color: var(--gold-300); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.auth__points strong { display: block; color: #fff; font-size: .9375rem; margin-bottom: 1px; }

.auth__main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 20px 64px; }
.auth__top { position: absolute; top: 16px; right: 18px; display: flex; gap: 6px; }
.auth__card { width: 100%; max-width: 420px; }
.auth__mbrand { display: none; padding: 0 0 28px; }
.auth__mbrand .brand__name { color: var(--text); }
.auth__head h2 { font-size: clamp(1.625rem, 2.4vw, 2rem); }
.auth__head p { margin-top: 8px; color: var(--text-3); }
.auth__card .callout { margin-top: 20px; }
.auth__form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.auth__form .btn--block { margin-top: 6px; }
.auth__alt { margin-top: 22px; text-align: center; font-size: .9rem; color: var(--text-3); }
.auth__alt a { font-weight: 650; display: inline-flex; align-items: center; gap: .3rem; }
.auth__foot { position: absolute; bottom: 18px; left: 20px; right: 20px; text-align: center; font-size: .75rem; color: var(--text-faint); }
.auth__done { text-align: center; }
.auth__done-ico { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; background: var(--success-bg); color: var(--success); }
.auth__done h2 { font-size: 1.75rem; }
.auth__done p { margin: 10px 0 24px; color: var(--text-2); line-height: 1.6; }

/* páginas de erro */
.err { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.err__card { width: 100%; max-width: 520px; text-align: center; padding: clamp(28px, 5vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); }
.err__code { font: 600 clamp(4rem, 12vw, 6rem)/1 var(--font-serif); letter-spacing: -.04em; color: var(--brand); margin-bottom: 8px; }
:root[data-theme='dark'] .err__code { color: var(--link); }
.err__card h1 { font-size: 1.625rem; }
.err__card p { margin: 10px auto 26px; max-width: 38ch; color: var(--text-3); line-height: 1.6; }
.err__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

@media (max-width: 960px) {
  .auth__shell { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__mbrand { display: flex; }
  .auth__main { justify-content: flex-start; padding-top: clamp(64px, 14vh, 120px); }
}
