
:root {
    --lg-primary: #0066ff;
    --lg-primary-600: #003c9e;
    --lg-accent: #a5b4fc;
    --lg-accent-600: #6d28d9;
    --lg-bg: #ffffff;
    --lg-surface: #ffffff;
    --lg-foreground: #1a2233;
    --lg-muted: #64748b;
    --lg-border: #e2e8f0;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: radial-gradient(1200px 600px at 100% 0%, rgba(0, 91, 234, 0.30), transparent 60%), radial-gradient(1000px 500px at 0% 100%, rgba(0, 180, 255, 0.20), transparent 55%), #eaf2ff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: var(--lg-foreground);
}

.lg-shell {
    width: 100%;
    max-width: 1100px;
    background: var(--lg-surface);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 70px -20px rgba(2, 8, 23, 0.55);
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.fw-bold {
    color: #ffffff
}
/* Painel lateral */
.lg-aside {
    position: relative;
    padding: 3rem 2.75rem;
    color: #fff;
    background: linear-gradient( 135deg, #021b4d 0%, #0346b5 55%, #0a84ff 100% ) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lg-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

    .lg-brand img {
        max-height: 60px;
    }

.lg-logo {
    max-height: 60px;
}

.lg-brand-fallback {
    height: 60px;
    border-radius: 12px;
    background: var(--lg-accent);
    color: var(--lg-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.lg-aside h2 {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 2rem 0 0.75rem;
}

.lg-aside p.lead {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.lg-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .lg-features li {
        display: flex;
        align-items: flex-start;
        gap: 0.85rem;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .lg-features i {
        flex: 0 0 auto;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
        color: var(--lg-accent);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

.lg-aside .lg-foot {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-top: 2.5rem;
}

/* Painel do formulário */
.lg-main {
    padding: 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lg-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(30, 58, 95, 0.08);
    color: var(--lg-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.25rem;
}

.lg-main h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--lg-foreground);
}

.lg-main .subtitle {
    color: var(--lg-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 2rem;
}

.lg-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--lg-foreground);
    margin-bottom: 0.5rem;
    display: block;
}

.lg-input-wrap {
    position: relative;
}

    .lg-input-wrap > i {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--lg-muted);
        font-size: 1.15rem;
        pointer-events: none;
    }

.lg-input {
    width: 100%;
    border: 1.5px solid var(--lg-border);
    border-radius: 12px;
    padding: 0.85rem 1rem 0.85rem 2.9rem;
    font-size: 0.95rem;
    color: var(--lg-foreground);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .lg-input:focus {
        outline: none;
        border-color: var(--lg-primary-600);
        box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.12);
    }

    .lg-input::placeholder {
        color: #a0aec0;
    }

.lg-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.25rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--lg-primary) 0%, var(--lg-primary-600) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

    .lg-btn:hover {
        filter: brightness(1.06);
        box-shadow: 0 12px 24px -10px rgba(30, 58, 95, 0.6);
    }

    .lg-btn:active {
        transform: translateY(1px);
    }

.lg-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.75rem;
    color: var(--lg-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

    .lg-back:hover {
        color: var(--lg-primary);
    }

.lg-footer {
    text-align: center;
    color: var(--lg-muted);
    font-size: 0.72rem;
    margin-top: 2rem;
}

/* Loader overlay */
#loaderOverlay {
    position: fixed;
    inset: 0;
    background: rgba(241, 245, 249, 0.7);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.35s;
}

    #loaderOverlay.show {
        opacity: 1;
    }

.lg-spinner {
    width: 54px;
    height: 54px;
    border: 4px solid rgba(79, 70, 229, 0.2);
    border-top-color: var(--lg-primary);
    border-radius: 50%;
    animation: lg-spin 0.8s linear infinite;
}

@keyframes lg-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsivo */
@media (max-width: 767.98px) {
    .lg-shell {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .lg-aside {
        display: none;
    }

    .lg-main {
        padding: 2.5rem 1.75rem;
    }
}
