body.ah-page { margin: 0; background: #000; }
.ah {
  --bg:#000; --surface:#0b0b0c; --surface-2:#0c0c0e; --surface-3:#1a1a1d;
  --border:#232326; --border-strong:#2e2e33;
  --text:#fafafa; --text-2:#d4d4d8; --muted:#a1a1aa; --faint:#71717a;
  --primary:#fafafa; --primary-ink:#0a0a0a;
  --danger:#f87171; --danger-bg:#2a0f10; --success:#34d399; --success-bg:#052e22; --warning:#fbbf24; --warning-bg:#2a1d05;
  color-scheme: dark;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px;
  min-height: 100vh; min-height: 100dvh; padding: 12px; background: #000; color: var(--text);
}
.ah-art {
  position: sticky; top: 12px; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; height: calc(100vh - 24px); height: calc(100dvh - 24px); min-height: 520px;
  border-radius: 26px; background: #010101;
}
.ah-glow {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 75% 43% at 51% 48%, rgba(2, 2, 2, .9) 2%, rgba(2, 2, 2, 0) 100%),
    radial-gradient(ellipse 80% 29% at 8% 0%, rgba(255, 231, 166, .78), transparent 74%),
    radial-gradient(ellipse 70% 28% at 96% 0%, rgba(243, 203, 115, .75), transparent 77%),
    radial-gradient(ellipse 90% 41% at 51% 13%, rgba(186, 117, 29, .59), transparent 88%),
    linear-gradient(to bottom, #ebcd8b 0%, #c99b49 8%, #a87527 19%, #71430e 31%, #2e1a08 45%, #0b0805 58%, #050404 73%, #020202 88%, #010101 100%);
}
.ah-glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 89% 40% at 48% 39%, rgba(0, 0, 0, .38) 0%, transparent 80%),
    linear-gradient(to bottom, transparent 33%, rgba(0, 0, 0, .24) 53%, transparent 82%),
    linear-gradient(to bottom, transparent 0%, transparent 70%, rgba(0, 0, 0, .38) 86%, rgba(0, 0, 0, .72) 100%);
}
.ah-grain { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .22; mix-blend-mode: soft-light; pointer-events: none; }
@media (min-width: 900px) {
  .ah-glow, .ah-grain { display: none; }
  .ah-art {
    background: #0a0a0b url("/assets/img/auth-hance-desktop.png") center / cover no-repeat;
  }
}
.ah-logo { position: relative; display: none; place-items: center; width: min(34%, 220px); user-select: none; -webkit-user-drag: none; }
.ah-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .45)); }

.ah-main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 24px; min-width: 0; }
.ah-voltar { position: absolute; top: 18px; right: 20px; font-size: 13.5px; color: var(--muted); padding: 8px 10px; border-radius: 10px; transition: color .15s, background .15s; }
.ah-voltar:hover { color: var(--text); background: #111113; }
.ah .auth-card { width: 100%; max-width: 404px; margin: 0; padding: 0; }
.ah .auth-title { font-size: 26px; line-height: 1.2; font-weight: 500; letter-spacing: -0.025em; text-align: center; }
.ah .auth-sub { margin: 8px 0 28px; font-size: 14.5px; color: var(--muted); text-align: center; }
.ah .auth-switch { margin-top: 24px; text-align: center; font-size: 14px; color: var(--muted); }
.ah .auth-switch a { color: var(--text); font-weight: 600; }
.ah .auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ah-social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ah-sbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 14px;
  border: 1px solid #2a2a2e; border-radius: 12px; background: transparent; color: var(--text);
  font-size: 14.5px; font-weight: 600; transition: background .15s, border-color .15s;
}
.ah-sbtn:hover { background: #111113; border-color: #3a3a40; }
.ah-sbtn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(244, 202, 104, .45); }
.ah-sbtn svg { width: 19px; height: 19px; flex: none; }
.ah-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; font-size: 12.5px; color: var(--faint); }
.ah-or::before, .ah-or::after { content: ""; flex: 1 1 auto; height: 1px; background: #232326; }

.ah .stack { display: grid; gap: 18px; }
.ah-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.ah-dupla > .field + .field { margin-top: 0; }
.ah .label { font-size: 13.5px; font-weight: 500; color: var(--text); }
.ah .label small { font-weight: 400; color: var(--faint); font-size: 12.5px; }
.ah .input { height: 48px; border-radius: 12px; border: 1px solid transparent; background: #1a1a1c; color: var(--text); padding: 0 14px; }
.ah .input:hover { border-color: #2e2e33; }
.ah .input:focus, .ah .input:focus-visible { border-color: #4a4a50; box-shadow: 0 0 0 3px rgba(244, 202, 104, .16); }
.ah .input.is-invalid { border-color: var(--danger); }
.ah .input-group { border-radius: 12px; background: #1a1a1c; border: 1px solid transparent; }
.ah .input-group .input { border: 0; background: transparent; box-shadow: none; }
.ah .input-group:focus-within { border-color: #4a4a50; box-shadow: 0 0 0 3px rgba(244, 202, 104, .16); }
.ah .input-group.is-invalid { border-color: var(--danger); }
.ah .input-prefix { color: var(--faint); }
.ah .hint { font-size: 12.5px; color: var(--muted); }
.ah .btn-primary { height: 50px; border-radius: 12px; background: #fff; color: #0a0a0a; font-weight: 600; font-size: 15px; border: 0; }
.ah .btn-primary:hover { background: #e9e9ec; }
.ah .btn-secondary { border-radius: 12px; }
.ah .checkbox { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ah .checkbox a { color: var(--text); }
.ah .alert { border-radius: 12px; }

@media (max-width: 899px) {
  .ah { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 0; }
  .ah-art { position: relative; top: 0; height: 200px; min-height: 0; border-radius: 22px; }
  .ah-globo { display: none; }
  .ah-logo { display: grid; top: 0; width: 72px; }
  .ah-logo img { width: 72px; height: 72px; filter: none; }
  .ah-main { justify-content: flex-start; padding: 36px 8px 40px; }
  .ah-voltar { display: none; }
}
@media (max-width: 420px) {
  .ah-dupla { grid-template-columns: minmax(0, 1fr); }
}
