/* Login — usa o tema base (app.css). Layout dividido: painel de marca + formulário. */
.lg-body { margin: 0; min-height: 100vh; }
.lg-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }

/* ---- Painel de marca ---- */
.lg-marca {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 2.6rem 3rem;
    background: linear-gradient(160deg, #0a1a15 0%, var(--bg) 70%);
    border-right: 1px solid var(--borda);
}
.lg-marca::after { /* grade sutil */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
.lg-glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.lg-glow-1 { width: 380px; height: 380px; left: -90px; top: -80px; background: rgba(34,230,160,.28); animation: lg-flutua 14s ease-in-out infinite alternate; }
.lg-glow-2 { width: 300px; height: 300px; right: -60px; bottom: 8%; background: rgba(23,184,128,.18); animation: lg-flutua 18s ease-in-out infinite alternate-reverse; }
@keyframes lg-flutua { from { transform: translate(0, 0); } to { transform: translate(34px, 26px); } }
.lg-marca > :not(.lg-glow) { position: relative; z-index: 1; }
.lg-marca-logo { height: 40px; width: auto; align-self: flex-start; }
.lg-marca-texto { max-width: 460px; margin-bottom: 2.4rem; }
.lg-marca-texto h2 { font-size: 2.2rem; line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.02em; }
.lg-marca-texto h2 span { color: var(--acento); }
.lg-marca-texto p { color: var(--texto-dim); font-size: 1rem; line-height: 1.6; margin: 0 0 1.8rem; }
.lg-pontos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.lg-pontos li { display: flex; align-items: center; gap: .8rem; font-size: .92rem; color: var(--texto); }
.lg-pontos li span { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: var(--acento-suave); color: var(--acento); display: grid; place-items: center; }
.lg-pontos svg { width: 18px; height: 18px; }

/* ---- Lado do formulário ---- */
.lg-lado { display: flex; align-items: center; justify-content: center; padding: 2rem 1.2rem; }
.lg-card { width: 100%; max-width: 400px; animation: lg-entra .35s ease both; }
@keyframes lg-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lg-logo-mobile { display: none; margin-bottom: 1.6rem; }
.lg-logo-mobile img { height: 34px; display: block; }
.lg-card h1 { font-size: 1.8rem; margin: 0 0 .4rem; letter-spacing: -.02em; }
.lg-sub { color: var(--texto-dim); font-size: .92rem; margin: 0 0 1.6rem; }
.lg-erro { background: rgba(240,101,90,.14); color: var(--perigo); border: 1px solid rgba(240,101,90,.3); border-radius: var(--raio-sm); padding: .7rem 1rem; margin-bottom: 1.1rem; font-size: .86rem; }

.lg-form { display: flex; flex-direction: column; gap: 1.1rem; }
.lg-campo label { display: block; font-size: .8rem; font-weight: 600; color: var(--texto-dim); margin-bottom: .4rem; }
.lg-input { position: relative; }
.lg-input > svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--texto-faint); pointer-events: none; transition: color .15s; }
.lg-input input {
    width: 100%; background: var(--superficie-2); border: 1px solid var(--borda); border-radius: 12px;
    color: var(--texto); font-size: .98rem; padding: .85rem 2.9rem .85rem 2.7rem;
    transition: border-color .15s, box-shadow .15s;
}
.lg-input input::placeholder { color: var(--texto-faint); }
.lg-input input:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-suave); }
.lg-input:focus-within > svg { color: var(--acento); }
/* autofill do Chrome não pode pintar de branco */
.lg-input input:-webkit-autofill { -webkit-text-fill-color: var(--texto); box-shadow: 0 0 0 1000px var(--superficie-2) inset; caret-color: var(--texto); }

.lg-ver { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--texto-faint); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.lg-ver:hover { color: var(--texto); }
.lg-ver:focus-visible { outline: 2px solid var(--acento); }
.lg-ver svg { position: static; transform: none; width: 18px; height: 18px; }
.lg-ver .lg-ver-off, .lg-ver.ativo .lg-ver-on { display: none; }
.lg-ver.ativo .lg-ver-off { display: block; }

.captcha-box { display: flex; justify-content: center; min-height: 65px; }

.lg-btn {
    position: relative; margin-top: .3rem; width: 100%; border: 0; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, var(--acento), var(--acento-2)); color: #062017;
    font-size: 1rem; font-weight: 700; padding: .95rem 1rem;
    box-shadow: 0 8px 24px -8px rgba(34,230,160,.55);
    transition: transform .12s, box-shadow .15s, filter .15s;
}
.lg-btn:hover { filter: brightness(1.06); box-shadow: 0 10px 28px -8px rgba(34,230,160,.7); }
.lg-btn:active { transform: translateY(1px); }
.lg-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lg-btn:disabled { cursor: progress; }
.lg-btn.carregando span { opacity: 0; }
.lg-btn.carregando::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border: 2px solid rgba(6,32,23,.3); border-top-color: #062017; border-radius: 50%; animation: lg-gira .7s linear infinite; }
@keyframes lg-gira { to { transform: rotate(360deg); } }

.lg-rodape { margin: 1.6rem 0 0; text-align: center; font-size: .88rem; color: var(--texto-dim); }
.lg-rodape a { color: var(--acento); font-weight: 600; }
.lg-rodape a:hover { text-decoration: underline; }

/* ---- Responsivo ---- */
@media (max-width: 900px) {
    .lg-grid { grid-template-columns: 1fr; }
    .lg-marca { display: none; }
    .lg-lado { align-items: flex-start; padding-top: 2.4rem; background: radial-gradient(ellipse at 50% -10%, rgba(34,230,160,.16), transparent 60%); }
    .lg-logo-mobile { display: inline-block; }
}
@media (prefers-reduced-motion: reduce) {
    .lg-glow, .lg-card { animation: none; }
    .lg-btn.carregando::after { animation-duration: 1.6s; }
}
