/* HunterTrack — tela de login (futurista, com a logo DJM em destaque) */
body.lg { min-height: 100vh; overflow-x: hidden; background: radial-gradient(120% 80% at 50% -10%, #1a0f38 0%, #0b0716 45%, #050409 100%); }

/* Céu: auroras roxa/ciano se movendo devagar */
.lg-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lg-sky i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.lg-sky .a1 { width: 620px; height: 620px; left: 50%; top: -260px; margin-left: -310px; background: radial-gradient(circle, rgba(139, 92, 246, .75), transparent 65%); animation: lgFloat 14s ease-in-out infinite; }
.lg-sky .a2 { width: 460px; height: 460px; left: -140px; bottom: -120px; background: radial-gradient(circle, rgba(56, 214, 245, .35), transparent 65%); animation: lgFloat 18s ease-in-out infinite reverse; }
.lg-sky .a3 { width: 420px; height: 420px; right: -120px; top: 30%; background: radial-gradient(circle, rgba(168, 85, 247, .4), transparent 65%); animation: lgFloat 16s ease-in-out infinite; }
@keyframes lgFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 24px) scale(1.08); } }

/* Chão em grade com perspectiva */
.lg-floor { position: fixed; left: -50%; right: -50%; bottom: -10%; height: 55%; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(139, 92, 246, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 92, 246, .28) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(520px) rotateX(62deg); transform-origin: top center;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); animation: lgGrid 6s linear infinite; }
@keyframes lgGrid { to { background-position: 0 56px, 0 0; } }

/* Pontos de luz */
.lg-stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent), radial-gradient(1.2px 1.2px at 78% 14%, #d9ccff, transparent),
    radial-gradient(1px 1px at 33% 68%, #b197fc, transparent), radial-gradient(1.6px 1.6px at 88% 58%, #a5f3fc, transparent),
    radial-gradient(1px 1px at 58% 38%, #fff, transparent), radial-gradient(1.2px 1.2px at 22% 84%, #d9ccff, transparent);
  animation: lgTwinkle 5s ease-in-out infinite alternate; }
@keyframes lgTwinkle { from { opacity: .35; } to { opacity: .85; } }

.lg-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 40px 16px 28px; }

/* Logo grande com anéis girando */
.lg-hero { display: flex; flex-direction: column; align-items: center; text-align: center; animation: lgUp .8s var(--ease) both; }
.lg-logo { position: relative; width: 168px; height: 168px; display: grid; place-items: center; margin-bottom: 18px; }
.lg-logo img { position: relative; z-index: 2; width: 132px; height: 132px; border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(177, 151, 252, .35), 0 18px 50px rgba(124, 58, 237, .55), 0 0 90px rgba(139, 92, 246, .45); animation: lgPulse 3.6s ease-in-out infinite; }
.lg-ring { position: absolute; inset: 0; border-radius: 40px; padding: 2px; z-index: 1;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(56, 214, 245, .9) 70%, rgba(177, 151, 252, 1) 82%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: lgSpin 4s linear infinite; }
.lg-ring.r2 { inset: -12px; border-radius: 48px; opacity: .45; animation-duration: 7s; animation-direction: reverse; }
@keyframes lgSpin { to { transform: rotate(360deg); } }
@keyframes lgPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.lg-title { font: 700 clamp(34px, 6vw, 44px)/1.05 var(--display); letter-spacing: -.03em;
  background: linear-gradient(90deg, #fff 0%, #d9ccff 35%, #a78bfa 60%, #67e8f9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-tag { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font: 600 12px var(--mono); letter-spacing: .32em; text-transform: uppercase; color: #b9a8ef; }
.lg-tag span { width: 28px; height: 1px; background: linear-gradient(90deg, transparent, #a78bfa); }
.lg-tag span:last-child { transform: scaleX(-1); }

/* Cartão de vidro com borda em gradiente */
.lg-card { position: relative; width: 100%; max-width: 410px; padding: 28px 28px 22px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(30, 22, 54, .72), rgba(12, 9, 24, .78)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); animation: lgUp .8s .12s var(--ease) both; }
.lg-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(167, 139, 250, .9), rgba(167, 139, 250, .1) 35%, rgba(103, 232, 249, .1) 65%, rgba(103, 232, 249, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.lg-card h2 { font: 650 20px var(--display); margin: 0; color: #fff; }
.lg-sub { margin: 4px 0 18px; font-size: 14px; color: #a59cc4; }
.lg-card .flash { margin-bottom: 14px; }
@keyframes lgUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.lg-field { display: block; margin-bottom: 14px; }
.lg-field > span:first-child { display: block; font-size: 13px; font-weight: 600; color: #c9bff0; margin-bottom: 6px; }
.lg-in { position: relative; display: flex; align-items: center; }
.lg-in > svg { position: absolute; left: 14px; width: 18px; height: 18px; color: #8f84b3; pointer-events: none; transition: color .2s; }
.lg-in input { height: 48px; padding: 0 44px 0 44px; border-radius: 12px; font-size: 15px; color: #f4f1ff;
  background: rgba(8, 6, 16, .65); border: 1px solid rgba(139, 92, 246, .28); transition: border-color .2s, box-shadow .2s, background .2s; }
.lg-in input::placeholder { color: #6b6188; }
.lg-in input:focus { border-color: #a78bfa; background: rgba(12, 9, 24, .85); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18), 0 0 24px rgba(139, 92, 246, .25); }
.lg-in:focus-within > svg { color: #c4b5fd; }
/* Preenchimento automático do navegador sem o fundo azul claro */
.lg-in input:-webkit-autofill, .lg-in input:-webkit-autofill:hover, .lg-in input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f4f1ff; caret-color: #f4f1ff; -webkit-box-shadow: 0 0 0 1000px #120d22 inset; transition: background-color 9999s; }
.lg-eye { position: absolute; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: #8f84b3; cursor: pointer; }
.lg-eye svg { width: 18px; height: 18px; }
.lg-eye:hover, .lg-eye.on { color: #c4b5fd; background: rgba(139, 92, 246, .14); }

.lg-btn { position: relative; overflow: hidden; width: 100%; height: 50px; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 12px; cursor: pointer; font: 650 15px var(--sans); color: #fff; letter-spacing: .01em;
  background: linear-gradient(110deg, #6d28d9, #8b5cf6 45%, #a855f7 70%, #0ea5e9); background-size: 180% 100%;
  box-shadow: 0 10px 30px rgba(124, 58, 237, .45), inset 0 1px 0 rgba(255, 255, 255, .2); transition: background-position .5s var(--ease), transform .15s, box-shadow .2s; }
.lg-btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.lg-btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); animation: lgShine 3.8s ease-in-out infinite; }
.lg-btn:hover { background-position: 100% 0; box-shadow: 0 14px 38px rgba(124, 58, 237, .6); }
.lg-btn:hover svg { transform: translateX(4px); }
.lg-btn:active { transform: translateY(1px); }
@keyframes lgShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

.lg-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px 0 0; font-size: 12px; color: #8a80a9; }
.lg-secure svg { width: 15px; height: 15px; color: #2bd49a; }
.lg-foot { font: 500 12px var(--mono); color: #6f6690; letter-spacing: .04em; }

@media (max-width: 480px) {
  .lg-wrap { gap: 20px; padding-top: 28px; }
  .lg-logo { width: 140px; height: 140px; }
  .lg-logo img { width: 110px; height: 110px; border-radius: 24px; }
  .lg-card { padding: 22px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-sky i, .lg-floor, .lg-stars, .lg-ring, .lg-logo img, .lg-btn::after, .lg-hero, .lg-card { animation: none !important; }
}

/* Botão "Entrar com o Google" (o login com Google entra depois) */
.lg-social { margin-bottom: 4px; }
.lg-google { position: relative; width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; cursor: pointer;
  font: 600 15px var(--sans); color: #f4f1ff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s, border-color .2s, box-shadow .2s; }
.lg-google svg { width: 20px; height: 20px; }
.lg-google:hover:not(:disabled) { background: rgba(255, 255, 255, .1); border-color: rgba(167, 139, 250, .6); box-shadow: 0 0 22px rgba(139, 92, 246, .25); }
.lg-google:disabled { cursor: not-allowed; opacity: .75; }
.lg-google em { margin-left: 4px; font: 600 10px var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; color: #c4b5fd; background: rgba(139, 92, 246, .18); }
.lg-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; font-size: 12px; color: #8a80a9; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .35), transparent); }
@media (max-width: 380px) { .lg-google em { display: none; } }

/* Tema claro */
html[data-theme="light"] body.lg { background: radial-gradient(120% 80% at 50% -10%, #e9ddff 0%, #f6f3fd 50%, #eef0fb 100%); }
html[data-theme="light"] .lg-sky i { opacity: .35; }
html[data-theme="light"] .lg-floor { background-image: linear-gradient(rgba(124, 58, 237, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 58, 237, .18) 1px, transparent 1px); }
html[data-theme="light"] .lg-stars { display: none; }
html[data-theme="light"] .lg-title { background: linear-gradient(90deg, #2e1065, #6d28d9 55%, #0891b2); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .lg-tag { color: #6d28d9; }
html[data-theme="light"] .lg-card { background: rgba(255, 255, 255, .8); box-shadow: 0 30px 70px rgba(76, 29, 149, .16), inset 0 1px 0 #fff; }
html[data-theme="light"] .lg-card h2 { color: #1c1430; }
html[data-theme="light"] .lg-sub, html[data-theme="light"] .lg-secure { color: #6f6590; }
html[data-theme="light"] .lg-field > span:first-child { color: #4a3d68; }
html[data-theme="light"] .lg-in input { background: #fff; color: #1c1430; border-color: #d8ccf5; }
html[data-theme="light"] .lg-in input:-webkit-autofill { -webkit-text-fill-color: #1c1430; -webkit-box-shadow: 0 0 0 1000px #fff inset; }
html[data-theme="light"] .lg-foot { color: #8a80a9; }
html[data-theme="light"] .lg-google { background: #fff; color: #1c1430; border-color: #d8ccf5; }
html[data-theme="light"] .lg-or { color: #7b7194; }

.lg-remember { display: flex; align-items: center; gap: 8px; margin: 2px 0 16px; font-size: 14px; color: #c9bff0; cursor: pointer; }
.lg-remember input { width: 18px; height: 18px; accent-color: #8b5cf6; }
html[data-theme="light"] .lg-remember { color: #4a3d68; }
