/* Telas de senha (esqueci, nova, trocar) no MESMO visual da tela de entrar (components/ui/mascot-login-page.tsx,
   tema escuro, 23/11/2026): esquerda escura com título, formas e a nave do jogo; direita roxa com o cartão escuro.
   Mexeu numa, confira a outra. */
:root {
  --am-base: #160e22; --am-card: #1f1530; --am-field: #241838; --am-field-focus: #2a1d40; --am-line: #3b2b57;
  --am-line-strong: #5e4787; --am-fg: #f4effc; --am-muted: #c9bfe0; --am-lima: #c6f432; --am-lima-hover: #d7fb63;
  --am-lima-fg: #1b0f29; --am-roxo: #6f3fd1; --am-coin: #a463e6; --am-erro: #ff9a85; --am-erro-bg: #3e1a24;
  --am-ok: #b9f3c9; --am-ok-bg: #173527;
  --am-display: "Alien Grove Pixel", ui-monospace, monospace;
  --am-text: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
/* a mesma fonte pixelada do jogo */
@font-face { font-family: 'Alien Grove Pixel'; src: url('/campus-game/ui-v314/alien-grove-pixel.woff?b=2411') format('woff'); font-display: swap; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--am-base); color: var(--am-fg); font-family: var(--am-text); }
[hidden] { display: none !important; }
.am { display: grid; min-height: 100svh; }
.am-welcome { position: relative; display: flex; flex-direction: column; padding: 20px 24px 0; overflow: hidden; }
.am-brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; color: var(--am-fg); text-decoration: none; font: 700 12px/1 var(--am-text); letter-spacing: .2em; }
.am-brand img { display: block; width: 110px; height: auto; }
.am-hello { position: relative; z-index: 1; margin-top: clamp(40px, 10vw, 96px); }
.am-hello h2 { margin: 0; max-width: 13ch; font: 600 clamp(30px, 9vw, 42px)/1.05 var(--am-display); letter-spacing: -.01em; text-wrap: balance; }
.am-hello p { margin: 14px 0 0; max-width: 31ch; color: var(--am-muted); font-size: 17px; line-height: 1.45; }
.am-art { position: relative; z-index: 1; flex: 1 1 auto; min-height: 200px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; }
/* A nave do início do jogo, em peças (plataforma, nave, aluno na porta) para animar: pousa ao abrir e fica flutuando */
.am-nave { position: relative; width: min(100%, 640px, calc((100svh - 330px) * 1.78)); aspect-ratio: 960 / 540; }
.am-nave img { position: absolute; display: block; height: auto; user-select: none; pointer-events: none; }
.am-pad { inset: 0; width: 100%; }
.am-ship { left: 14.58%; top: 1.67%; width: 70.83%; transform-origin: 50% 100%; animation: am-pousa 1.4s cubic-bezier(.2, .8, .2, 1) both, am-flutua 3.4s ease-in-out 1.4s infinite, am-luz 2.2s ease-in-out 1.4s infinite; }
.am-et { left: 45.56%; top: 52.59%; width: 8.89%; transform-origin: 50% 100%; animation: am-chega .6s ease-out 1.1s both, am-balanca 2.6s ease-in-out 1.7s infinite; }
@keyframes am-pousa { from { transform: translateY(-55%) scale(.92); opacity: 0; } 70% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes am-flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3.5%); } }
@keyframes am-luz { 0%, 100% { filter: drop-shadow(0 0 0 rgba(19, 215, 251, 0)); } 50% { filter: drop-shadow(0 0 14px rgba(19, 215, 251, .55)); } }
@keyframes am-chega { from { opacity: 0; transform: translateY(12%) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes am-balanca { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .am-ship, .am-et { animation: none; } }
.am-side { display: flex; align-items: center; justify-content: center; padding: 24px 16px 40px; background: var(--am-roxo); }
.am-card { width: 100%; max-width: 452px; padding: 26px 24px 24px; border-radius: 30px; background: var(--am-card); box-shadow: 0 30px 60px -30px rgba(27, 15, 41, .55); }
.am-card h1 { margin: 0 0 6px; font: 600 23px/1.2 var(--am-display); letter-spacing: -.01em; }
.muted { margin: 0 0 8px; color: var(--am-muted); font-size: 15px; line-height: 1.5; }
.alien-auth-form { display: grid; gap: 14px; }
.alien-auth-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.am-card input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--am-line); border-radius: 14px; background: var(--am-field); color: var(--am-fg); font: 500 16px/1.3 var(--am-text); }
.am-card input:focus { outline: none; border-color: var(--am-lima); background: var(--am-field-focus); box-shadow: 0 0 0 3px rgba(198, 244, 50, .35); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 12px 18px; border-radius: 16px; border: 1.5px solid var(--am-lima); background: var(--am-lima); color: var(--am-lima-fg); font: 600 16px/1.2 var(--am-display); text-decoration: none; cursor: pointer; }
.button:hover { background: var(--am-lima-hover); }
.button.outline { background: transparent; border-color: var(--am-line-strong); color: var(--am-fg); }
.button.outline:hover { background: var(--am-field-focus); }
.button[disabled] { opacity: .6; cursor: progress; }
.button:focus-visible, .am-card a:focus-visible, .am-card summary:focus-visible { outline: 2.5px solid var(--am-fg); outline-offset: 2px; }
.auth-note { margin: 0; color: var(--am-muted); font-size: 13px; line-height: 1.5; }
.auth-error, .auth-ok { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.auth-error { background: var(--am-erro-bg); color: var(--am-erro); }
.auth-ok { background: var(--am-ok-bg); color: var(--am-ok); }
.am-card a:not(.button) { color: var(--am-fg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.am-voltar { margin: 18px 0 0; text-align: center; font-size: 14px; }
details summary { cursor: pointer; font-weight: 700; margin: 14px 0; }
#my-data { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--am-line); }
#my-data h2 { margin: 0 0 6px; font: 600 20px var(--am-display); }
@media (min-width: 860px) {
  .am { grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); }
  .am-welcome { padding: clamp(28px, 3vw, 44px) clamp(32px, 3.6vw, 56px) 0; }
  .am-hello { margin-top: clamp(40px, 6vw, 96px); }
  .am-hello h2 { font-size: clamp(36px, 3.9vw, 60px); }
  .am-hello p { max-width: 34ch; margin-top: 18px; font-size: clamp(17px, 1.35vw, 20px); }
  .am-side { padding: clamp(24px, 3vw, 48px); }
  .am-card { padding: 26px 30px 30px; }
}
@media (max-width: 859px) {
  /* celular: título e nave em cima, cartão logo abaixo (sem tela intermediária) */
  .am-welcome { padding: 18px 20px 0; }
  .am-hello { margin-top: 22px; }
  .am-hello h2 { max-width: none; }
  .am-hello p { font-size: 15px; margin-top: 8px; }
  .am-art { flex: none; min-height: 0; padding: 14px 0 6px; }
  .am-nave { width: min(92vw, 420px); }
  .am-side { align-items: flex-start; padding: 0 0 32px; background: linear-gradient(180deg, var(--am-base) 0 40px, var(--am-roxo) 40px); }
  .am-card { max-width: none; margin: 0 12px; padding: 22px 18px 20px; border-radius: 26px; }
}
/* cartão de entrar e criar conta (site-content/login.html) */
.am-card h1 { margin-bottom: 2px; }
.am-dica { margin-top: -6px; }
.am-senha { position: relative; }
.am-senha input { padding-right: 92px; }
.am-olho { position: absolute; right: 8px; bottom: 8px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--am-field-focus); color: var(--am-fg); font: 600 13px var(--am-text); cursor: pointer; }
.am-olho:hover { background: var(--am-line); }
.am-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.am-linha a { font-size: 13px; }
.am-ou { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--am-muted); font-size: 13px; }
.am-ou::before, .am-ou::after { content: ""; flex: 1; height: 1px; background: var(--am-line); }
.am-ou[hidden] { display: none !important; }
.am-pe { margin: 4px 0 0; text-align: center; color: var(--am-muted); font-size: 14px; }
.am-legal { margin: 0; text-align: center; color: var(--am-muted); font-size: 12px; line-height: 1.5; }
.am-legal a { font-weight: 500 !important; }
.am-papeis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; border: 0; }
.am-papeis legend { padding: 0 0 8px; font-size: 14px; font-weight: 600; }
.am-papeis label { position: relative; display: block !important; }
.am-papeis input { position: absolute; opacity: 0; pointer-events: none; }
.am-papeis span { display: block; padding: 11px 4px; border: 1.5px solid var(--am-line); border-radius: 14px; text-align: center; font: 600 13px var(--am-text); cursor: pointer; }
.am-papeis input:checked + span { border-color: var(--am-lima); background: var(--am-field-focus); color: var(--am-lima); }
.am-papeis input:focus-visible + span { outline: 2.5px solid var(--am-fg); outline-offset: 2px; }
.button svg { flex: none; }
/* 23/11/2026: alinhamento. Esquerda: título, texto e nave num bloco só, centralizado na altura e na largura
   (igual ao cartão da direita). Cartão: tudo centralizado; só os rótulos dos campos ficam à esquerda. */
.am-welcome { align-items: center; text-align: center; }
.am-brand { align-self: flex-start; }
.am-hello { margin: auto 0 0; display: flex; flex-direction: column; align-items: center; }
.am-hello h2 { max-width: 14ch; }
.am-hello p { margin-left: auto; margin-right: auto; }
.am-art { flex: none; width: 100%; margin: 28px 0 auto; padding-bottom: 0; }
.am-card h1, .am-card .muted { text-align: center; }
@media (min-width: 860px) {
  .am-welcome { padding-bottom: clamp(28px, 3vw, 44px); }
  .am-nave { width: min(100%, 560px, calc((100svh - 470px) * 1.78)); }
}
@media (max-width: 859px) {
  .am-hello { margin-top: 18px; }
  .am-art { margin: 14px 0 0; }
}
.am-card .auth-note { text-align: center; }
