/* Telas de acesso — "Seu laboratório espera por você." */
.lx-auth-body.auth-body { min-height:100vh; padding:0; }
.lx-auth { display:flex; flex-direction:column; margin:0 auto; max-width:1440px; min-height:100vh; padding:0 clamp(1rem, 4vw, 3.5rem) 2rem; }
.lx-auth-top { align-items:center; border-bottom:1px solid rgb(255 255 255 / 7%); display:flex; justify-content:space-between; min-height:76px; }
.lx-auth-brand { display:inline-flex; }
.lx-auth-brand .lx-wordmark-svg { height:21px; width:auto; }
.lx-auth-back { align-items:center; color:#E6EEEF; display:inline-flex; font-size:.98rem; gap:.55rem; }
.lx-auth-back:hover { color:var(--lx-cyan); }
.lx-auth-back svg, .lx-auth-switch svg, .lx-auth-form .lx-btn svg { fill:none; height:18px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:2; width:18px; }
.lx-auth-back svg { color:var(--lx-cyan); }

.lx-auth-grid { align-items:center; display:grid; flex:1; gap:2rem clamp(1.5rem, 4vw, 4rem); grid-template-columns:minmax(0, 1.25fr) minmax(360px, 500px); padding:clamp(1.5rem, 5vh, 4rem) 0 1rem; }
.lx-auth-story { min-width:0; position:relative; }
.lx-auth-title { color:#fff; font-size:clamp(2.4rem, 5.2vw, 4.6rem); font-weight:800; letter-spacing:-.02em; line-height:1.02; margin:0 0 0 clamp(0rem, 4vw, 3.5rem); }
.lx-auth-title span { color:var(--lx-cyan); display:block; text-shadow:0 0 36px rgb(68 237 218 / 28%); }
.lx-auth-tagline { color:#C9D2D4; font-size:1.1rem; margin:.8rem 0 0 clamp(0rem, 4vw, 3.5rem); }
.lx-auth-art { margin:clamp(1rem, 3vw, 2.4rem) 0 0; position:relative; }
.lx-auth-art img { display:block; height:auto; width:100%; -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent 0, #000 6%, #000 84%, transparent); -webkit-mask-composite:source-in; mask-image:linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent 0, #000 6%, #000 84%, transparent); mask-composite:intersect; }
.lx-auth-art figcaption { color:#7C898E; font-size:.68rem; letter-spacing:.12em; margin-top:-.2rem; text-align:center; text-transform:uppercase; }
.lx-auth-mascot { bottom:-5.5rem; height:auto; left:-1.5rem; pointer-events:none; position:absolute; width:clamp(110px, 11vw, 170px); -webkit-mask-image:radial-gradient(ellipse 60% 62% at 50% 50%, #000 55%, transparent 82%); mask-image:radial-gradient(ellipse 60% 62% at 50% 50%, #000 55%, transparent 82%); }

.lx-auth-card {
    -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px);
    background:linear-gradient(180deg, rgb(13 38 42 / 70%), rgb(5 16 19 / 82%)); border:1px solid var(--lx-line-cyan-strong); border-radius:22px;
    box-shadow:var(--lx-shadow), 0 0 0 1px rgb(68 237 218 / 6%), 0 0 50px rgb(68 237 218 / 10%), inset 0 1px 0 rgb(255 255 255 / 6%);
    padding:clamp(1.6rem, 3.6vw, 3rem) clamp(1.4rem, 3vw, 2.8rem);
}
.lx-auth-card h1 { color:#fff; font-size:clamp(1.8rem, 2.8vw, 2.5rem); font-weight:800; letter-spacing:-.02em; line-height:1.1; margin:0 0 1.6rem; }
.lx-auth-lead { color:#C9D2D4; margin:-.9rem 0 1.4rem; }
.lx-auth-form { display:grid; gap:1.3rem; }
.lx-auth-form .lx-field { gap:.55rem; }
.lx-auth-form .lx-label { font-weight:500; }
.lx-auth-body .lx-auth-form input { min-height:58px; width:100%; }
.lx-auth-form .lx-input-icon > svg { fill:none; height:20px; left:16px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; width:20px; }
.lx-auth-body .lx-auth-form .lx-input-icon > input { padding-left:50px; }
.lx-auth-secret input { padding-right:52px; }
.lx-auth-eye { align-items:center; background:none; border:0; border-radius:8px; color:#C9D2D4; cursor:pointer; display:inline-flex; height:40px; justify-content:center; padding:0; position:absolute; right:8px; width:40px; }
.lx-auth-eye svg { fill:none; height:20px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; width:20px; }
.lx-auth-eye:hover, .lx-auth-eye[aria-pressed="true"] { color:var(--lx-cyan); }
.lx-auth-forgot { color:var(--lx-cyan); font-size:.92rem; justify-self:end; margin-top:.2rem; }
.lx-auth-forgot:hover { color:#fff; }
.lx-auth-body .lx-auth-form .lx-btn { border-radius:12px; font-size:1.1rem; margin-top:.4rem; min-height:58px; }
.lx-auth-switch { border-top:1px solid var(--lx-line); color:#DCE4E5; margin:1.8rem 0 0; padding-top:1.6rem; text-align:center; }
.lx-auth-switch a { align-items:center; color:var(--lx-cyan); display:inline-flex; font-weight:600; gap:.35rem; margin-left:.3rem; }
.lx-auth-switch a:hover { color:#fff; }
.lx-auth-legal { color:var(--lx-muted); font-size:.82rem; margin:.9rem 0 0; text-align:center; }
.lx-auth-legal a:hover { color:#fff; }
.lx-auth-card .notice, .lx-auth-card .error { border-radius:12px; margin:0 0 1rem; }
.lx-auth-form .error { background:none; border:0; color:#FF9EA0; font-size:.86rem; margin:0; padding:0; }
.lx-auth-body .lx-auth-form input[aria-invalid="true"] { border-color:rgb(248 83 85 / 55%); }

/* Telas de código (e-mail, duas etapas) usam o mesmo vidro, centralizado */
.lx-auth-solo.auth-body { align-items:center; display:flex; justify-content:center; min-height:100vh; padding:clamp(1rem, 4vw, 3rem); }
.lx-auth-solo .auth-card { -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px); background:linear-gradient(180deg, rgb(13 38 42 / 70%), rgb(5 16 19 / 82%)); border:1px solid var(--lx-line-cyan-strong); border-radius:22px; box-shadow:var(--lx-shadow), 0 0 50px rgb(68 237 218 / 10%); }
.lx-auth-solo .auth-card h1 { font-weight:800; letter-spacing:-.02em; }

@media (max-width:980px) {
    .lx-auth-grid { grid-template-columns:1fr; }
    .lx-auth-title, .lx-auth-tagline { margin-left:0; text-align:center; }
    .lx-auth-art { margin:1rem auto 0; max-width:640px; }
    .lx-auth-mascot { display:none; }
    .lx-auth-card { margin:0 auto; max-width:520px; width:100%; }
}
@media (max-width:560px) {
    .lx-auth-top { min-height:64px; }
    .lx-auth-back { font-size:.9rem; }
    .lx-auth-title { font-size:2.2rem; }
    .lx-auth-art { margin:.6rem -1rem 0; }
}

/* ---- Laboratório interativo das telas de acesso (entrega 27) ----
   O cientista numa plataforma holográfica, com tubos de ensaio e bolhas. As poses trocam
   conforme o formulário (public/assets/js/auth-lab.js); o balão mostra a fala da vez. */
.lx-auth-lab { align-items:end; display:grid; height:clamp(320px, 46vh, 460px); justify-items:center; margin:clamp(1rem, 3vh, 2rem) 0 0; position:relative; }
.lx-auth-lab-glow { background:radial-gradient(closest-side, rgb(68 237 218 / 26%), rgb(68 237 218 / 7%) 60%, transparent); height:90%; left:12%; pointer-events:none; position:absolute; top:4%; width:76%; animation:lx-auth-breathe 4s ease-in-out infinite; }
@keyframes lx-auth-breathe { 0%, 100% { opacity:.7; transform:scale(.96); } 50% { opacity:1; transform:scale(1.03); } }
.lx-auth-lab-tubes { bottom:8%; opacity:.9; pointer-events:none; position:absolute; right:4%; width:clamp(120px, 14vw, 180px); }
.lx-auth-lab-tubes .lx-tubes { aspect-ratio:220 / 210; display:block; position:relative; }
.lx-auth-lab-tubes .lx-tubes svg { display:block; height:100%; inset:0; overflow:visible; position:absolute; width:100%; }
.lx-auth-lab-tubes .lx-tube-bubble { opacity:0; transform-box:fill-box; animation:lx-auth-tube-rise 3.6s ease-in infinite; }
.lx-auth-lab-tubes .lx-tube-bubble--2 { animation-delay:-1.4s; }
.lx-auth-lab-tubes .lx-tube-bubble--3 { animation-delay:-.6s; }
.lx-auth-lab-tubes .lx-tube-bubble--4 { animation-delay:-2.6s; }
.lx-auth-lab-tubes .lx-tube-bubble--5 { animation-delay:-1s; }
.lx-auth-lab-tubes .lx-tube-bubble--6 { animation-delay:-2.2s; }
@keyframes lx-auth-tube-rise { 0% { opacity:0; transform:translateY(0); } 15% { opacity:.9; } 100% { opacity:0; transform:translateY(-60px); } }
.lx-auth-lab-bubbles { inset:0; pointer-events:none; position:absolute; }
.lx-auth-lab-bubbles i { border:1.5px solid rgb(156 250 239 / 70%); border-radius:50%; bottom:14%; height:10px; opacity:0; position:absolute; width:10px; animation:lx-auth-rise 6s ease-in infinite; }
.lx-auth-lab-bubbles i:nth-child(1) { left:20%; }
.lx-auth-lab-bubbles i:nth-child(2) { animation-delay:-1.2s; height:6px; left:30%; width:6px; }
.lx-auth-lab-bubbles i:nth-child(3) { animation-delay:-2.4s; left:64%; }
.lx-auth-lab-bubbles i:nth-child(4) { animation-delay:-3.4s; height:7px; left:74%; width:7px; }
.lx-auth-lab-bubbles i:nth-child(5) { animation-delay:-4.2s; height:5px; left:42%; width:5px; }
.lx-auth-lab-bubbles i:nth-child(6) { animation-delay:-5s; left:56%; }
@keyframes lx-auth-rise { 0% { opacity:0; transform:translateY(0); } 12% { opacity:.9; } 100% { opacity:0; transform:translateY(-260px); } }

/* plataforma holográfica */
.lx-auth-platform { bottom:2%; height:15%; left:50%; pointer-events:none; position:absolute; transform:translateX(-50%); width:min(360px, 70%); }
.lx-auth-platform i { border:2px solid rgb(68 237 218 / 70%); border-radius:50%; box-shadow:0 0 22px rgb(68 237 218 / 55%), inset 0 0 18px rgb(68 237 218 / 35%); display:block; inset:0; position:absolute; transform:scaleY(.32); }
.lx-auth-platform i + i { border-color:rgb(156 250 239 / 45%); inset:18% 14%; animation:lx-auth-ring 3s ease-out infinite; }
@keyframes lx-auth-ring { 0% { opacity:.9; transform:scaleY(.32) scale(.7); } 100% { opacity:0; transform:scaleY(.32) scale(1.35); } }

/* o cientista: botão (toque para uma dica), inclina de leve com o mouse */
.lx-auth-scientist { all:unset; bottom:8%; cursor:pointer; display:block; height:86%; position:relative; transform:perspective(900px) rotateY(var(--lx-tilt-y, 0deg)) rotateX(var(--lx-tilt-x, 0deg)); transition:transform .25s ease-out; z-index:2; }
.lx-auth-scientist:focus-visible { border-radius:16px; outline:2px solid var(--lx-cyan); outline-offset:6px; }
.lx-auth-poses { aspect-ratio:300 / 480; display:block; height:100%; position:relative; animation:lx-auth-float 5s ease-in-out infinite; }
@keyframes lx-auth-float { 0%, 100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
.lx-auth-poses img { bottom:0; filter:drop-shadow(0 14px 22px rgb(0 0 0 / 55%)) drop-shadow(0 0 18px rgb(68 237 218 / 18%)); height:100%; left:50%; object-fit:contain; opacity:0; position:absolute; transform:translateX(-50%) scale(.96); transition:opacity .28s ease, transform .35s cubic-bezier(.2,.9,.3,1.3); width:auto; }
.lx-auth-poses img.is-on { opacity:1; transform:translateX(-50%) scale(1); }
.lx-auth-scientist.is-pop .lx-auth-poses { animation:lx-auth-pop .45s cubic-bezier(.2,.9,.3,1.4); }
@keyframes lx-auth-pop { 0% { transform:scale(1); } 40% { transform:scale(1.06) translateY(-6px); } 100% { transform:scale(1); } }

/* balão de fala */
.lx-auth-say { background:linear-gradient(160deg, rgb(18 44 48 / 96%), rgb(6 20 23 / 96%)); border:1px solid rgb(68 237 218 / 45%); border-radius:16px; box-shadow:0 10px 30px rgb(0 0 0 / 45%), 0 0 24px rgb(68 237 218 / 16%); color:#EAF6F5; font-size:.98rem; font-weight:600; left:50%; line-height:1.35; margin:0; max-width:min(330px, 80%); opacity:0; padding:.75rem 1rem; position:absolute; text-align:center; top:0; transform:translate(-50%, 6px); transition:opacity .25s ease, transform .25s ease; z-index:3; }
.lx-auth-say::after { background:inherit; border-bottom:1px solid rgb(68 237 218 / 45%); border-right:1px solid rgb(68 237 218 / 45%); bottom:-7px; content:""; height:12px; left:50%; position:absolute; transform:translateX(-50%) rotate(45deg); width:12px; }
.lx-auth-say.is-on { opacity:1; transform:translate(-50%, 0); }

@media (max-width:980px) {
    .lx-auth-lab { height:300px; margin:1rem auto 0; max-width:520px; }
    .lx-auth-lab-tubes { width:110px; }
}
@media (max-width:560px) {
    .lx-auth-lab { height:250px; }
    .lx-auth-say { font-size:.88rem; }
    .lx-auth-lab-tubes { display:none; }
}
@media (prefers-reduced-motion:reduce) {
    .lx-auth-lab-glow, .lx-auth-lab-bubbles i, .lx-auth-platform i, .lx-auth-poses, .lx-auth-lab-tubes .lx-tube-bubble { animation:none; }
    .lx-auth-scientist { transform:none; }
}
.lx-auth-form .lx-auth-remember { display:flex; gap:.6rem; align-items:center; margin:0; font-size:.92rem; cursor:pointer; line-height:1.35; }
.lx-auth-form .lx-auth-remember input[type="checkbox"] { width:18px; height:18px; min-height:0; margin:0; padding:0; accent-color:var(--lx-cyan); flex:none; }
