/* Login only: recovery and registration share the guest layout, not this scope. */
.v2-auth {
  position: relative;
  min-height: 100dvh;
  background: var(--surface);
  color: var(--text);
  font: 14px/1.5 var(--v2-font);
}
.v2-auth, .v2-auth *, .v2-auth *::before, .v2-auth *::after { box-sizing: border-box; }
.v2-auth :focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.v2-auth [x-cloak] { display: none !important; }
.v2-auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; }
.v2-auth-entry {
  min-width: 0;
  min-height: 760px;
  padding: 48px clamp(32px, 5vw, 88px) 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.v2-auth-brand { display: flex; align-items: center; gap: 10px; align-self: flex-start; color: var(--text); text-decoration: none; }
.v2-auth-mark { width: 36px; height: 36px; border-radius: 10px; }
.v2-auth-wordmark { font-size: 22px; font-weight: 750; letter-spacing: -.8px; }
.v2-auth-wordmark > span { margin-left: 3px; font-weight: 400; color: var(--text-2); }
.v2-auth-card { width: 100%; max-width: 384px; margin-block: auto; padding: 64px 0; }
.v2-auth-head { margin-bottom: 36px; }
.v2-auth-title { margin: 0; font-size: clamp(27px, 2.3vw, 34px); font-weight: 650; line-height: 1.2; letter-spacing: -1.2px; }
.v2-auth-sub { margin: 12px 0 0; font-size: 15px; color: var(--text-2); }
.v2-auth-form { display: flex; flex-direction: column; gap: 24px; }
.v2-auth .v2-label { font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.v2-auth .v2-input { height: 52px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; font-size: 14px; padding-left: 42px; box-shadow: 0 2px 3px rgb(0 0 0 / 2%); }
.v2-auth .v2-input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.v2-auth .v2-input-wrap > :is(i, svg) { left: 15px; width: 17px; height: 17px; }
.v2-auth .v2-input::placeholder { color: var(--text-3); }
.v2-auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.v2-auth-link { color: var(--brand); font-size: 13px; font-weight: 600; text-decoration: none; }
.v2-auth-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.v2-auth-reveal { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); cursor: pointer; }
.v2-auth-reveal:hover { background: var(--brand-soft); color: var(--brand); }
.v2-auth-reveal svg { width: 18px; height: 18px; }
.v2-auth .v2-auth-has-reveal .v2-input { padding-right: 50px; }
.v2-auth .v2-choice { font-size: 13px; color: var(--text-2); gap: 10px; }
.v2-auth .v2-choice input { width: 17px; height: 17px; accent-color: var(--brand); border-color: var(--line-strong); background-color: var(--surface); }
.v2-auth .v2-auth-submit { width: 100%; height: 52px; border-radius: 9px; margin-top: 4px; font-size: 14px; font-weight: 600; justify-content: space-between; padding-inline: 20px; box-shadow: 0 4px 12px var(--brand-soft); }
.v2-auth-submit svg { width: 18px; height: 18px; transition: transform .2s ease; }
.v2-auth-submit:hover svg { transform: translateX(3px); }
/* Recuperação e primeiro acesso. */
.v2-auth-form-group { display: flex; flex-direction: column; gap: 24px; }
.v2-auth-errors { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--danger-line); border-radius: 9px; background: var(--danger-bg); color: var(--danger); font-size: 13px; }
.v2-auth-errors svg { flex: none; width: 17px; height: 17px; margin-top: 1px; }
.v2-auth-errors ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.v2-auth-checks { margin: -10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.v2-auth-checks li { display: flex; align-items: center; gap: 8px; transition: color .2s ease; }
.v2-auth-checks svg { width: 14px; height: 14px; opacity: .35; transition: opacity .2s ease; }
.v2-auth-checks li.is-ok { color: var(--ok); }
.v2-auth-checks li.is-ok svg { opacity: 1; }
.v2-auth-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 5px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 600; }
.v2-auth-badge svg { width: 14px; height: 14px; }
.v2-auth-foot { margin: 30px 0 0; padding-top: 26px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--text-2); }
.v2-auth-foot a { margin-left: 4px; }
.v2-auth-legal { display: flex; justify-content: space-between; gap: 16px; width: 100%; font-size: 11px; color: var(--text-2); }
.v2-auth-ocean { position: relative; isolation: isolate; overflow: hidden; min-width: 0; min-height: 760px; background: #03152c; color: #fff; }
.v2-auth-ocean::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 58% 65%, #07408088, transparent 65%), linear-gradient(155deg, #092c55 0%, transparent 55%); }
.v2-auth-ocean-heading { position: relative; z-index: 1; padding: 64px clamp(32px, 4.5vw, 76px) 0; pointer-events: none; }
.v2-auth-eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 600; letter-spacing: 2px; color: #a7c5e6; }
.v2-auth-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: #3b9dff; box-shadow: 0 0 12px #3b9dff80; }
.v2-auth-ocean-heading h2 { margin: 25px 0 18px; font-size: clamp(32px, 3.4vw, 54px); line-height: 1.12; font-weight: 500; letter-spacing: -1.8px; }
.v2-auth-ocean-heading p { margin: 0; max-width: 340px; font-size: 14px; line-height: 1.7; color: #a7bdd6; }
.v2-auth-ascii-stage { position: absolute; inset: 210px -3% 30px; display: grid; place-items: center; container-type: size; pointer-events: none; }
/* Vídeos pré-renderizados sobre preto, encostados embaixo e centralizados.
   `lighten` deixa o preto sumir no fundo do painel; o fade já vem nos pixels.
   A orca é um quadrado do lado menor do palco, então nunca é cortada; o mar
   tem a mesma escala, 2,5 × mais largo, e o painel corta o excesso — sem
   sobra lateral em monitor largo. */
.v2-auth-ascii, .v2-auth-waves { position: absolute; bottom: 0; left: 50%; translate: -50% 0; mix-blend-mode: lighten; opacity: 0; transition: opacity .6s ease; }
.v2-auth-ascii { width: min(100cqw, 100cqh); height: auto; aspect-ratio: 1; }
.v2-auth-waves { width: calc(min(100cqw, 100cqh) * 2.5); height: auto; aspect-ratio: 4320 / 512; }
.v2-auth-ocean.is-ready :is(.v2-auth-ascii, .v2-auth-waves) { opacity: 1; }
.v2-auth-ocean-fallback { position: absolute; font-size: clamp(40px, 5vw, 80px); font-weight: 600; letter-spacing: -3px; color: #d9edff; }
.v2-auth-ocean-fallback span { color: #3b9dff; font-weight: 400; }
.v2-auth-ocean.is-ready .v2-auth-ocean-fallback { display: none; }
.v2-auth-ocean-replay { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.v2-auth-ocean-replay[hidden] { display: none; }
.v2-auth .v2-auth-ocean-replay:focus-visible { outline-color: #a5d9ff; outline-offset: -8px; }
.v2-auth-ocean-footer { position: absolute; z-index: 3; pointer-events: none; bottom: 28px; left: clamp(32px, 4.5vw, 76px); right: clamp(32px, 4.5vw, 76px); display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #8eafcf; font-size: 9px; letter-spacing: 1.6px; }
.v2-auth-motion { pointer-events: auto; display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 6px 10px; border: 1px solid #779ec838; border-radius: 6px; background: #03152c60; color: #c5dcf2; font: 11px var(--v2-font); cursor: pointer; }
.v2-auth-motion:hover { border-color: #a7c5e6; color: #fff; }
.v2-auth-motion[hidden] { display: none; }
@media (min-width: 1700px) { .v2-auth-ascii-stage { inset: 190px 0 25px; } }
@media (max-width: 1050px) { .v2-auth-entry { padding-inline: 32px; } .v2-auth-ocean-heading { padding-inline: 32px; } .v2-auth-ocean-heading p { max-width: 260px; } }
@media (max-width: 800px) {
  .v2-auth-shell { grid-template-columns: 1fr; }
  .v2-auth-entry { min-height: 100dvh; padding: 32px 24px 24px; }
  .v2-auth-brand { align-self: center; width: 100%; max-width: 384px; }
  .v2-auth-ocean { display: none; }
  .v2-auth-title { font-size: 30px; }
  .v2-auth-card { padding-block: 56px; }
  .v2-auth-legal { max-width: 384px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .v2-auth *, .v2-auth *::before, .v2-auth *::after { animation: none !important; transition: none !important; } }
