/* ============================================================
   Login / Auth - Tema CLARO moderno e profissional
   Independe do tema escuro do painel (app.css)
   ============================================================ */

.login-page {
    --ln-primary: #4f46e5;
    --ln-primary-dark: #4338ca;
    --ln-accent: #0ea5e9;
    --ln-ink: #0f172a;
    --ln-muted: #64748b;
    --ln-border: #e2e8f0;
    --ln-bg: #f4f6fb;
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background:
        radial-gradient(900px 480px at 88% -8%, rgba(79, 70, 229, 0.14), transparent 60%),
        radial-gradient(760px 420px at 0% 108%, rgba(14, 165, 233, 0.12), transparent 55%),
        var(--ln-bg);
    color: var(--ln-ink);
}

.login-shell {
    display: flex;
    min-height: 100vh;
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
    align-items: stretch;
}

/* ---------------- Painel de branding (esquerda) ---------------- */
.login-brand-panel {
    flex: 1.15;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.75rem 2.75rem 2.5rem;
    border-radius: 28px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(238, 242, 255, 0.88)),
        #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 24px 60px -28px rgba(30, 41, 59, 0.25);
    position: relative;
    overflow: hidden;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(14, 165, 233, 0.12));
    filter: blur(70px);
    top: -90px;
    right: -90px;
}

.login-brand-panel::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(79, 70, 229, 0.1));
    filter: blur(60px);
    bottom: -60px;
    left: -60px;
}

.login-brand-top {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    position: relative;
    z-index: 1;
}

.login-logo-box {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    box-shadow: 0 8px 22px -6px rgba(79, 70, 229, 0.55);
    overflow: hidden;
}

.login-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    border-radius: 14px;
    padding: 6px;
}

.login-brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ln-ink);
}

.login-brand-pitch { position: relative; z-index: 1; margin: 2.2rem 0; }

.login-brand-pitch h1 {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.login-brand-pitch .text-gradient {
    background: linear-gradient(120deg, #4f46e5, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-brand-pitch p {
    color: var(--ln-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 46ch;
    margin-bottom: 1.75rem;
}

.login-features { display: grid; gap: 0.85rem; }

.login-feature {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.05rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--ln-border);
    font-size: 0.92rem;
    font-weight: 600;
}

.login-feature .feat-ico {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(14, 165, 233, 0.12));
    color: var(--ln-primary);
    flex-shrink: 0;
}

.login-feature small { display: block; font-weight: 500; color: var(--ln-muted); font-size: 0.78rem; }

.login-brand-footer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ln-border);
    color: var(--ln-muted);
    font-size: 0.8rem;
}

/* ---------------- Painel do formulário (direita) ---------------- */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--ln-border);
    border-radius: 24px;
    padding: 2.4rem 2.2rem;
    box-shadow: 0 28px 70px -30px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(12px);
}

.login-card .login-mobile-logo {
    display: none;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
}

.login-card h2 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.login-card .login-sub {
    color: var(--ln-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.6rem;
}

.ln-field { margin-bottom: 1.1rem; }

.ln-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.42rem;
}

.ln-input {
    width: 100%;
    padding: 0.78rem 0.95rem;
    border-radius: 12px;
    border: 1.5px solid var(--ln-border);
    background: #fafbff;
    font-size: 0.95rem;
    color: var(--ln-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ln-input:focus {
    outline: none;
    border-color: var(--ln-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.13);
    background: #fff;
}

.ln-input.form-control {
    background-color: #fafbff;
    border: 1.5px solid var(--ln-border);
    color: var(--ln-ink);
    border-radius: 12px;
    padding: 0.78rem 0.95rem;
}

.ln-input.form-control:focus {
    background-color: #fff;
    border-color: var(--ln-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.13);
    color: var(--ln-ink);
}

.ln-input.form-control::placeholder { color: #94a3b8; }

.ln-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #4f46e5 55%, #4338ca);
    color: #fff;
    font-weight: 700;
    font-size: 0.98rem;
    box-shadow: 0 12px 26px -10px rgba(79, 70, 229, 0.6);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.ln-btn:hover { filter: brightness(1.06); box-shadow: 0 14px 30px -10px rgba(79, 70, 229, 0.7); transform: translateY(-1px); }
.ln-btn:active { transform: translateY(0); }

.login-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.35rem;
    color: var(--ln-muted);
    font-size: 0.76rem;
    text-align: center;
}

/* Alertas claros */
.login-page .alert-glass {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    border: 1px solid var(--ln-border);
    font-size: 0.86rem;
    margin-bottom: 1.1rem;
    padding: 0.8rem 1rem;
}

.login-page .alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.login-page .alert-danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.login-page .alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* ---------------- Responsivo ---------------- */
@media (max-width: 991.98px) {
    .login-shell { padding: 0; }

    .login-brand-panel { display: none; }

    .login-form-panel {
        padding: 1.25rem;
        background:
            radial-gradient(700px 320px at 90% -5%, rgba(79, 70, 229, 0.16), transparent 60%),
            radial-gradient(600px 300px at 0% 105%, rgba(14, 165, 233, 0.14), transparent 55%),
            var(--ln-bg);
    }

    .login-card {
        max-width: 420px;
        box-shadow: 0 20px 50px -24px rgba(15, 23, 42, 0.3);
    }

    .login-card .login-mobile-logo { display: flex; }
}

@media (max-width: 420px) {
    .login-card { padding: 1.8rem 1.4rem; }
}