/* Tela de acesso: aurora animada, holofote que segue o mouse, logo 3D com olhos atrás dos óculos e cartão de vidro com borda luminosa */
@property --lx-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.login { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; padding: 32px clamp(16px, 4vw, 64px);
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 80px);
  background: #08080a; color: #f4f4f5; font-family: Inter, system-ui, sans-serif; }
.login.hidden { display: none; }

/* fundo */
.lx-aurora, .lx-grade, .lx-spot, .lx-grao { position: absolute; inset: 0; pointer-events: none; }
.lx-aurora { z-index: -4; filter: blur(70px) saturate(1.2); opacity: .9; }
.lx-aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.lx-aurora i:nth-child(1) { width: 55vw; height: 55vw; left: -12vw; top: -18vw; background: radial-gradient(circle, rgba(220,38,38,.55), transparent 62%); animation: lx-deriva 16s ease-in-out infinite alternate; }
.lx-aurora i:nth-child(2) { width: 45vw; height: 45vw; left: 18vw; bottom: -26vw; background: radial-gradient(circle, rgba(161,161,170,.28), transparent 62%); animation: lx-deriva 20s ease-in-out infinite alternate-reverse; }
.lx-aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 30vw; top: 4vw; background: radial-gradient(circle, rgba(245,158,11,.22), transparent 62%); animation: lx-deriva 13s ease-in-out infinite alternate; }
@keyframes lx-deriva { to { transform: translate(6vw, 4vw) scale(1.15); } }
.lx-grade { z-index: -3; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 20%, transparent 75%); }
.lx-spot { z-index: -2; background: radial-gradient(600px circle at var(--sx, 30%) var(--sy, 40%), rgba(255,255,255,.07), transparent 45%); }
.lx-grao { z-index: -1; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* vitrine com a logo */
.lx-vitrine { justify-self: end; max-width: 520px; width: 100%; perspective: 1100px; animation: lx-sobe .9s cubic-bezier(.2,.8,.2,1) both; }
.lx-palco { position: relative; width: min(320px, 40vh); aspect-ratio: 1; margin-bottom: 34px; }
.lx-anel { position: absolute; inset: -18px; border-radius: 50%;
  background: conic-gradient(from var(--lx-ang), transparent 0 55%, rgba(248,113,113,.9) 70%, rgba(255,255,255,.95) 76%, transparent 86%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: lx-gira 6s linear infinite; opacity: .85; }
.lx-anel::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); }
@keyframes lx-gira { to { --lx-ang: 360deg; } }
.lx-logo { position: absolute; inset: 0; border-radius: 50%; transform-style: preserve-3d; will-change: transform;
  transform: rotateX(var(--lrx, 0deg)) rotateY(var(--lry, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1);
  animation: lx-flutua 6s ease-in-out infinite; }
.lx-logo img { width: 100%; height: 100%; display: block; border-radius: 50%; user-select: none;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)) drop-shadow(0 0 60px rgba(220,38,38,.25)); }
@keyframes lx-flutua { 50% { translate: 0 -10px; } }
/* olhos atrás das lentes dos óculos da logo */
.lx-olho { position: absolute; top: 26.4%; height: 6.2%; border-radius: 45% 45% 50% 50%; overflow: hidden; mix-blend-mode: multiply; }
.lx-olho.e { left: 41.4%; width: 9.4%; }
.lx-olho.d { left: 51.6%; width: 8.8%; }
.lx-olho i { position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3f3f46, #09090b 70%);
  transform: translate(calc(-50% + var(--ox, 0px)), calc(-50% + var(--oy, 0px))); transition: transform .12s ease-out; opacity: .8; }
.lx-logo.pisca .lx-olho i { transform: translate(calc(-50% + var(--ox, 0px)), calc(-50% + var(--oy, 0px))) scaleY(.1); }
.lx-reflexo { position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: soft-light; pointer-events: none;
  background: radial-gradient(circle at var(--rx2, 30%) var(--ry2, 25%), rgba(255,255,255,.7), transparent 40%); }
.lx-sombra { position: absolute; left: 15%; right: 15%; bottom: -34px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); animation: lx-sombra 6s ease-in-out infinite; }
@keyframes lx-sombra { 50% { transform: scale(.86); opacity: .6; } }

.lx-selo { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #d4d4d8; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.lx-selo span { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); animation: lx-pulsa 2s infinite; }
@keyframes lx-pulsa { 50% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }
.lx-titulo { margin: 0 0 22px; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.06; font-weight: 800; letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff 30%, #a1a1aa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-titulo em { font-style: normal; background: linear-gradient(100deg, #fca5a5, #f87171 40%, #fde68a 60%, #f87171 80%); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: lx-brilho 6s linear infinite; }
@keyframes lx-brilho { to { background-position: -200% center; } }
.lx-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lx-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 500; color: #e4e4e7;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09); }
.lx-chips i { color: #f87171; }

/* cartão de vidro */
.lx-lado { justify-self: start; width: 100%; max-width: 420px; animation: lx-sobe .9s .12s cubic-bezier(.2,.8,.2,1) both; }
@keyframes lx-sobe { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
.login .lx-card { position: relative; width: 100%; max-width: none; padding: 36px 32px 26px; border-radius: 24px; text-align: left;
  background: linear-gradient(180deg, rgba(24,24,27,.78), rgba(12,12,14,.82)); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 40px 90px -30px rgba(0,0,0,.9); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  display: flex; flex-direction: column; gap: 14px; color: #f4f4f5; }
.lx-borda { position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--lx-ang), transparent 0 70%, rgba(248,113,113,.95) 82%, #fff 88%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: lx-gira 5s linear infinite; }
.lx-mini { display: none; width: 64px; height: 64px; border-radius: 50%; }
.login .lx-card h4 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.login .lx-card h6 { margin: -8px 0 8px; font-size: 14px; font-weight: 400; color: #a1a1aa; }
.lx-campo { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 500; color: #d4d4d8; }
.lx-campo > div { position: relative; display: flex; align-items: center; }
.lx-campo > div > i { position: absolute; left: 14px; color: #71717a; font-size: 15px; transition: color .2s; pointer-events: none; }
.login .lx-campo input { width: 100%; height: 48px; margin: 0; padding: 0 44px 0 42px; border-radius: 12px; font: inherit; font-size: 14.5px; font-weight: 400; color: #fafafa;
  background: rgba(9,9,11,.7); border: 1px solid rgba(255,255,255,.09); transition: border-color .2s, box-shadow .2s, background .2s; }
.login .lx-campo input::placeholder { color: #52525b; }
.login .lx-campo input:hover { border-color: rgba(255,255,255,.16); }
.login .lx-campo input:focus { outline: none; border-color: rgba(248,113,113,.6); background: rgba(9,9,11,.9); box-shadow: 0 0 0 4px rgba(248,113,113,.12), 0 0 24px -6px rgba(248,113,113,.5); }
.lx-campo > div:focus-within > i { color: #f87171; }
.login .lx-campo input:-webkit-autofill { -webkit-text-fill-color: #fafafa; -webkit-box-shadow: 0 0 0 40px #0c0c0e inset; caret-color: #fafafa; }
.lx-ver { position: absolute; right: 6px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: #71717a; cursor: pointer; display: grid; place-items: center; }
.lx-ver:hover { color: #e4e4e7; background: rgba(255,255,255,.06); }
.login .lx-card .login-lembrar { color: #a1a1aa; font-size: 13.5px; }
.login .lx-card .login-lembrar input { accent-color: #ef4444; }
.login .lx-card .error { margin: 0; min-height: 0; color: #fca5a5; font-size: 13px; }
.login .lx-card .error:empty { display: none; }

.login .lx-botao { position: relative; overflow: hidden; height: 50px; margin-top: 4px; border: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; color: #0a0a0a; cursor: pointer;
  background: linear-gradient(180deg, #fafafa, #d4d4d8); box-shadow: 0 1px 0 #fff inset, 0 12px 30px -10px rgba(255,255,255,.35), 0 0 0 1px rgba(255,255,255,.2);
  transition: transform .18s, box-shadow .18s; }
.login .lx-botao::before { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); animation: lx-varre 3.6s ease-in-out infinite; }
@keyframes lx-varre { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.login .lx-botao i { transition: transform .2s; }
.login .lx-botao:hover { transform: translateY(-1px); box-shadow: 0 1px 0 #fff inset, 0 18px 40px -12px rgba(255,255,255,.45), 0 0 0 1px rgba(255,255,255,.3); }
.login .lx-botao:hover i { transform: translateX(4px); }
.login .lx-botao:active { transform: translateY(1px) scale(.99); }
.lx-rodape { margin: 4px 0 0; text-align: center; font-size: 12px; color: #71717a; }

/* tablet e celular: uma coluna, logo pequena em cima do cartão */
@media (max-width: 960px) {
  .login { grid-template-columns: 1fr; padding: 28px 16px; }
  .lx-vitrine { display: none; }
  .lx-lado { justify-self: center; }
  .lx-mini { display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 10px 30px rgba(220,38,38,.35); }
  .login .lx-card { padding: 30px 22px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .login *, .login *::before { animation: none !important; transition: none !important; }
}
