/* ==========================================================================
   REDESIGN OUSADO v2 · LOGIN (a primeira impressao) · atras de data-reforma="v2"
   --------------------------------------------------------------------------
   Momento-heroi cinematografico: atmosfera profunda viva, medalhao envolto em
   luz de ouro (IMAGEM INTOCADA, so o entorno brilha), cartao de vidro dourado,
   titulo com gradiente dourado, campos de vidro, botao com brilho. Sob a flag
   `data-reforma="v2"` no <html> da pagina de login. Sem a flag, o login segue
   identico. Sem travessao. Nenhuma funcao removida.
   ========================================================================== */

html[data-reforma="v2"] body {
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(232,197,71,.16), transparent 60%),
    radial-gradient(900px 700px at 100% 110%, rgba(201,162,39,.12), transparent 60%),
    radial-gradient(700px 600px at -5% 40%, rgba(139,105,20,.10), transparent 60%),
    #0b0a06;
  min-height: 100vh;
  overflow-x: hidden;
}
/* LINHA VERMELHA DO DONO (12/07): poeira de ouro em movimento REMOVIDA do login.
   Fica so o fundo em gradiente estatico (declarado acima em `body`). */

/* o cartao de login vira vidro dourado cinematografico */
html[data-reforma="v2"] .tela-login { position: relative; z-index: 1; }
html[data-reforma="v2"] .cartao-login {
  background: rgba(20, 16, 8, .55) !important;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(232,197,71,.4) !important;
  border-radius: 26px !important;
  box-shadow: 0 0 0 1px rgba(232,197,71,.18), 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.14);
  animation: v2l-entra .8s cubic-bezier(.2,.7,.3,1) both;
  color: #f5ecd6;
}
@keyframes v2l-entra { from { opacity:0; transform: translateY(24px) scale(.96);} to { opacity:1; transform:none;} }

/* MEDALHAO: imagem intocada, envolta em halo de luz ESTATICO (o dono confirmou
   manter halo/glow estatico do medalhao; sem respiracao/animacao). */
html[data-reforma="v2"] .logo-roda-login {
  border-radius: 50%;
  filter:
    drop-shadow(0 0 20px rgba(232,197,71,.7))
    drop-shadow(0 0 52px rgba(201,162,39,.45));
}

/* titulo hero com gradiente dourado */
html[data-reforma="v2"] .titulo-login {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px; letter-spacing: .04em;
  background: linear-gradient(120deg, #F3DE8A, #C9A227 55%, #F3DE8A);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(232,197,71,.4));
}
html[data-reforma="v2"] .selo { color: #E8C547; letter-spacing: .3em; }
html[data-reforma="v2"] .sub { color: #d9cfae; }

/* abas e campos de vidro */
html[data-reforma="v2"] .login-aba {
  color: #cdbd8a; border-color: rgba(232,197,71,.25);
}
html[data-reforma="v2"] .login-aba.ativa {
  background: linear-gradient(120deg, #E8C547, #C9A227); color: #2b2110; border-color: #E8C547;
}
html[data-reforma="v2"] .login-form input,
html[data-reforma="v2"] .login-form select {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(232,197,71,.28) !important;
  color: #f5ecd6 !important;
  border-radius: 12px;
}
html[data-reforma="v2"] .login-form input::placeholder { color: #b8ac86; }
html[data-reforma="v2"] .login-form label { color: #d9cfae; }
html[data-reforma="v2"] .login-form input:focus {
  border-color: #E8C547 !important;
  box-shadow: 0 0 0 3px rgba(232,197,71,.22);
}

/* botao com brilho */
html[data-reforma="v2"] .botao {
  background: linear-gradient(120deg, #F3DE8A, #C9A227 60%, #F3DE8A) !important;
  background-size: 180% 100% !important;
  color: #2b2110 !important;
  border: 1px solid rgba(232,197,71,.5) !important;
  box-shadow: 0 10px 34px rgba(201,162,39,.5);
  transition: transform .15s cubic-bezier(.2,.7,.3,1), box-shadow .15s, background-position .5s;
}
html[data-reforma="v2"] .botao:hover {
  transform: translateY(-2px); background-position: 100% 0 !important;
  box-shadow: 0 16px 46px rgba(232,197,71,.6);
}
html[data-reforma="v2"] .link-login { color: #cdbd8a; }

/* entrada dos campos em CASCATA com blur-in (item V3 do login) */
@media (prefers-reduced-motion: no-preference) {
  html[data-reforma="v2"] .selo,
  html[data-reforma="v2"] .sub,
  html[data-reforma="v2"] .login-abas,
  html[data-reforma="v2"] .login-form > * {
    animation: v2l-campo .6s cubic-bezier(.2,.7,.3,1) both;
  }
  html[data-reforma="v2"] .sub { animation-delay: .06s; }
  html[data-reforma="v2"] .login-abas { animation-delay: .12s; }
  html[data-reforma="v2"] .login-form > *:nth-child(1) { animation-delay: .18s; }
  html[data-reforma="v2"] .login-form > *:nth-child(2) { animation-delay: .24s; }
  html[data-reforma="v2"] .login-form > *:nth-child(3) { animation-delay: .30s; }
  html[data-reforma="v2"] .login-form > *:nth-child(4) { animation-delay: .36s; }
  html[data-reforma="v2"] .login-form > *:nth-child(5) { animation-delay: .42s; }
  html[data-reforma="v2"] .login-form > *:nth-child(6) { animation-delay: .48s; }
}
@keyframes v2l-campo {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  html[data-reforma="v2"] body::before,
  html[data-reforma="v2"] .cartao-login,
  html[data-reforma="v2"] .logo-roda-login { animation: none; }
}
