/*-----------------------------------*\
  #VIDA ESTRANGEIRA - AUTENTICAÇÃO
  Login, cadastro, recuperação e redefinição de senha.
  Depende dos tokens de ve-theme.css.
\*-----------------------------------*/

html { font-size: 10px; }
body { margin: 0; min-height: 100dvh; font-size: 1.6rem; line-height: 1.6; }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

.va {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 12px;
  padding: 12px;
}

/* ---------- Coluna do formulário ---------- */
.va-main { display: flex; flex-direction: column; padding: 20px 28px 28px; min-width: 0; }

.va-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.va-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ve-display); font-weight: 800; font-size: 1.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ve-kepi); }
.va-brand i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ve-kepi); color: var(--ve-bg); font-style: normal; font-weight: 900; font-size: 1.5rem; letter-spacing: 0.04em; }

.va-back { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 1.35rem; color: var(--ve-muted); background: rgba(242, 239, 230, 0.04); box-shadow: inset 0 0 0 1px var(--ve-line-2); transition: color 0.4s var(--ve-ease), background-color 0.4s var(--ve-ease); }
.va-back:hover { color: var(--ve-kepi); background: rgba(242, 239, 230, 0.08); }
.va-back svg { width: 14px; height: 14px; }

.va-body { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 440px; margin: 0 auto; padding: 56px 0; }

.va-eyebrow { display: inline-flex; align-items: center; gap: 10px; width: max-content; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(242, 239, 230, 0.04); box-shadow: inset 0 0 0 1px var(--ve-line-2); font-family: var(--ve-mono); font-size: 1.05rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ve-muted); }
.va-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ve-legion-red); box-shadow: 0 0 0 4px rgba(194, 59, 46, 0.18); }

.va-title { font-family: var(--ve-display); font-weight: 900; text-transform: uppercase; line-height: 0.9; font-size: clamp(4.8rem, 5.4vw, 7.2rem); color: var(--ve-kepi); margin: 22px 0 12px; }
.va-title em { font-style: normal; color: var(--ve-brass); }
.va-sub { color: var(--ve-muted); font-weight: 300; font-size: 1.6rem; margin: 0 0 30px; }

/* Segmento Entrar / Criar conta */
.va-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: rgba(10, 11, 8, 0.6); box-shadow: inset 0 0 0 1px var(--ve-line); margin-bottom: 26px; }
.va-seg::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--ve-kepi); transition: transform 0.6s var(--ve-ease); }
.va.is-signup .va-seg::before { transform: translateX(100%); }
.va-seg button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 11px 12px; border-radius: 999px; font-size: 1.4rem; font-weight: 500; color: var(--ve-muted); transition: color 0.5s var(--ve-ease); }
.va-seg button.active { color: var(--ve-bg); }

/* Formulários */
.va-forms { display: grid; }
.va-forms > form { grid-area: 1 / 1; align-self: start; align-content: start; transition: opacity 0.5s var(--ve-ease), transform 0.6s var(--ve-ease), visibility 0s linear 0s; }
.va-forms > form[aria-hidden="true"] { opacity: 0; transform: translateY(14px); visibility: hidden; pointer-events: none; transition: opacity 0.3s var(--ve-ease), transform 0.4s var(--ve-ease), visibility 0s linear 0.4s; }

.va-form { display: grid; gap: 12px; }
.va-field { display: grid; gap: 7px; }
.va-field label { font-family: var(--ve-mono); font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ve-faint); }
.va-input {
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: 16px;
  background: rgba(10, 11, 8, 0.6);
  box-shadow: inset 0 0 0 1px var(--ve-line-2), inset 0 2px 8px rgba(0, 0, 0, 0.4);
  color: var(--ve-kepi);
  font-size: 1.55rem;
  transition: box-shadow 0.4s var(--ve-ease);
}
.va-input::placeholder { color: var(--ve-faint); }
.va-input:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(212, 169, 79, 0.65), 0 0 0 4px rgba(212, 169, 79, 0.1); }

.va-row { display: flex; justify-content: flex-end; }
.va-link { font-size: 1.35rem; color: var(--ve-brass); }
.va-link:hover { color: var(--ve-brass-hover); }

.va-submit {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 8px; padding: 16px 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ve-brass); color: var(--ve-ink); font-weight: 500; font-size: 1.55rem;
  box-shadow: 0 16px 40px -16px rgba(212, 169, 79, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.5s var(--ve-ease), background-color 0.5s var(--ve-ease), opacity 0.3s var(--ve-ease);
}
.va-submit:hover { background: var(--ve-brass-hover); }
.va-submit:active { transform: scale(0.98); }
.va-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.va-alert { display: none; padding: 12px 16px; border-radius: 14px; font-size: 1.4rem; line-height: 1.5; }
.va-alert.error, .va-alert.alert-error { display: block; color: #F2B8B0; background: rgba(224, 104, 91, 0.12); box-shadow: inset 0 0 0 1px rgba(224, 104, 91, 0.35); }
.va-alert.success, .va-alert.alert-success { display: block; color: #BFE3CC; background: rgba(127, 195, 154, 0.12); box-shadow: inset 0 0 0 1px rgba(127, 195, 154, 0.35); }

.va-foot { margin-top: 26px; font-size: 1.35rem; color: var(--ve-faint); text-align: center; }
.va-foot a { color: var(--ve-kepi); }

.va-ref { display: none; align-items: center; gap: 10px; margin: -10px 0 22px; padding: 10px 16px; border-radius: 999px; width: max-content; max-width: 100%; background: var(--ve-brass-soft); box-shadow: inset 0 0 0 1px rgba(212, 169, 79, 0.3); font-size: 1.35rem; color: var(--ve-kepi); }
.va-ref.on { display: inline-flex; }
.va-ref b { color: var(--ve-brass); font-weight: 500; }

/* ---------- Painel visual ---------- */
.va-aside { position: sticky; top: 12px; height: calc(100dvh - 24px); overflow: hidden; border-radius: 28px; padding: 6px; background: rgba(242, 239, 230, 0.035); box-shadow: inset 0 0 0 1px var(--ve-line); }
.va-aside-core { position: relative; height: 100%; overflow: hidden; border-radius: 22px; background: var(--ve-panel); box-shadow: inset 0 1px 1px rgba(242, 239, 230, 0.1); }
.va-aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(0.62); transform: scale(1.04); animation: vaDrift 24s var(--ve-ease) infinite alternate; }
@keyframes vaDrift { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.va-aside-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 8, 0.25), rgba(10, 11, 8, 0) 40%, rgba(10, 11, 8, 0.94)), linear-gradient(90deg, rgba(59, 66, 48, 0.4), transparent 70%); }
.va-stamp { position: absolute; top: 28px; right: 28px; padding: 8px 14px; border-radius: 8px; transform: rotate(-6deg); font-family: var(--ve-stencil); font-size: 2.2rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ve-legion-red); box-shadow: inset 0 0 0 2px var(--ve-legion-red); background: rgba(10, 11, 8, 0.35); }
.va-quote { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px; display: grid; gap: 18px; }
.va-quote blockquote { margin: 0; font-family: var(--ve-display); font-weight: 900; text-transform: uppercase; font-size: clamp(4rem, 4.6vw, 6.4rem); line-height: 0.9; color: var(--ve-kepi); }
.va-quote blockquote span { font-family: var(--ve-stencil); color: transparent; -webkit-text-stroke: 1.5px var(--ve-brass); }
.va-quote-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ve-line-2); font-family: var(--ve-mono); font-size: 1.05rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ve-muted); }
.va-corner { position: absolute; width: 18px; height: 18px; border: solid rgba(242, 239, 230, 0.5); }
.va-corner.tl { top: 16px; left: 16px; border-width: 1px 0 0 1px; }
.va-corner.br { bottom: 16px; right: 16px; border-width: 0 1px 1px 0; }

.va-main > *, .va-aside { animation: vaIn 0.9s var(--ve-ease) both; }
.va-aside { animation-delay: 0.1s; }
@keyframes vaIn { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

@media (max-width: 960px) {
  .va { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .va-aside { display: none; }
  .va-main { padding: 16px; }
  .va-body { padding: 48px 0 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .va-aside img, .va-main > *, .va-aside { animation: none; }
}
