:root {
    --nx-bg: #EEF0F8;
    --nx-surface: #FFFFFF;
    --nx-primary: #3D6FD6;
    --nx-primary-hover: #3260C2;
    --nx-title: #1F2A44;
    --nx-text: #5B6478;
    --nx-muted: #8A93A6;
    --nx-label: #3E4658;
    --nx-border: #E1E4EE;
    --nx-blob-1: #E3E8F7;
    --nx-blob-2: #E7EBF9;
    --nx-blob-3: #DCE4F8;
    --nx-dot: #C9D1EA;
}

[data-bs-theme="dark"] {
    --nx-bg: #151521;
    --nx-surface: #1E1E2D;
    --nx-title: #F1F3F9;
    --nx-text: #A1A5B7;
    --nx-muted: #7E8299;
    --nx-label: #CDCFDA;
    --nx-border: #2B2B40;
    --nx-blob-1: #1B1B2B;
    --nx-blob-2: #1D1D2E;
    --nx-blob-3: #202033;
    --nx-dot: #35364A;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--nx-bg);
    background-image: none !important;
}

.nx-login {
    display: flex;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--nx-bg);
}

/* ---------- Painel esquerdo (carrossel) ---------- */
.nx-showcase {
    position: relative;
    flex: 1 1 58%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    overflow: hidden;
}

.nx-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.nx-blob--1 {
    top: -120px;
    left: -100px;
    width: 320px;
    height: 320px;
    background: var(--nx-blob-1);
}

.nx-blob--2 {
    bottom: -140px;
    right: -80px;
    width: 380px;
    height: 380px;
    background: var(--nx-blob-2);
}

.nx-blob--3 {
    top: 40%;
    right: 6%;
    width: 120px;
    height: 120px;
    background: var(--nx-blob-3);
}

.nx-showcase__inner {
    position: relative;
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.nx-slides {
    position: relative;
    width: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nx-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

    .nx-slide.is-active {
        display: flex;
        animation: nxFadeSlide .5s ease;
    }

@keyframes nxFadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nx-slide.is-active {
        animation: none;
    }
}

.nx-slide__icon {
    width: 132px;
    height: 132px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
}

    .nx-slide__icon svg {
        width: 56px;
        height: 56px;
    }

.nx-slide__tag {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.nx-slide__title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.25;
    color: var(--nx-title);
    margin: 0 0 16px;
}

.nx-slide__text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--nx-text);
    margin: 0;
    max-width: 400px;
}

/* Cores de destaque por slide */
.nx-slide--azul .nx-slide__icon {
    background: #E5EDFC;
}

.nx-slide--azul .nx-slide__tag {
    color: #3D6FD6;
}

.nx-slide--verde .nx-slide__icon {
    background: #E1F3EC;
}

.nx-slide--verde .nx-slide__tag {
    color: #2C9A7A;
}

.nx-slide--ambar .nx-slide__icon {
    background: #FBEEDD;
}

.nx-slide--ambar .nx-slide__tag {
    color: #B8791F;
}

.nx-dots {
    display: flex;
    gap: 10px;
    margin-top: 44px;
}

.nx-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: var(--nx-dot);
    cursor: pointer;
    transition: all .25s ease;
}

    .nx-dot.is-active {
        width: 26px;
        background: var(--nx-primary);
    }

/* ---------- Painel direito (login) ---------- */
.nx-panel {
    flex: 0 0 460px;
    background: var(--nx-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
    box-shadow: -8px 0 40px rgba(31, 42, 68, .06);
}

.nx-panel__inner {
    width: 100%;
    max-width: 340px;
}

.nx-logo {
    display: block;
    max-width: 180px;
    height: auto;
    margin-bottom: 40px;
}

.nx-panel__title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--nx-title);
    margin: 0 0 8px;
}

.nx-panel__subtitle {
    font-size: 14px;
    color: var(--nx-muted);
    margin: 0 0 32px;
}

.nx-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--nx-label);
    margin-bottom: 6px;
}

.nx-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border: 1px solid var(--nx-border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--nx-title);
    background: var(--nx-surface);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .nx-input:focus {
        border-color: var(--nx-primary);
        box-shadow: 0 0 0 3px rgba(61, 111, 214, .15);
    }

.nx-field {
    margin-bottom: 18px;
}

    .nx-field--tight {
        margin-bottom: 10px;
    }

.nx-forgot {
    text-align: right;
    margin-bottom: 26px;
}

    .nx-forgot a {
        font-size: 13px;
        color: var(--nx-primary);
        text-decoration: none;
        font-weight: 600;
    }

        .nx-forgot a:hover {
            text-decoration: underline;
        }

.nx-submit {
    width: 100%;
    padding: 15px;
    background: var(--nx-primary);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', 'Inter', sans-serif;
    cursor: pointer;
    transition: background .2s ease;
}

    .nx-submit:hover {
        background: var(--nx-primary-hover);
    }

    .nx-submit .indicator-progress {
        display: none;
    }

.nx-footer {
    text-align: center;
    font-size: 13px;
    color: var(--nx-muted);
    margin-top: 28px;
}

    .nx-footer a {
        color: var(--nx-primary);
        font-weight: 600;
        text-decoration: none;
    }

        .nx-footer a:hover {
            text-decoration: underline;
        }

/* ---------- Responsivo ---------- */
@media (max-width: 991.98px) {
    .nx-login {
        flex-direction: column-reverse;
        min-height: auto;
    }

    .nx-panel {
        flex: 0 0 auto;
        width: 100%;
        padding: 40px 24px 48px;
        box-shadow: 0 8px 40px rgba(31, 42, 68, .06);
    }

    .nx-showcase {
        flex: 0 0 auto;
        padding: 40px 24px 56px;
    }

    .nx-slides {
        min-height: 340px;
    }

    .nx-slide__icon {
        width: 104px;
        height: 104px;
        border-radius: 26px;
        margin-bottom: 24px;
    }

    .nx-slide__title {
        font-size: 26px;
    }

    .nx-blob--3 {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .nx-panel {
        padding: 32px 20px 40px;
    }

    .nx-logo {
        max-width: 150px;
        margin-bottom: 28px;
    }

    .nx-showcase {
        padding: 32px 20px 44px;
    }

    .nx-slides {
        min-height: 320px;
    }

    .nx-slide__icon {
        width: 88px;
        height: 88px;
        border-radius: 22px;
    }

        .nx-slide__icon svg {
            width: 44px;
            height: 44px;
        }

    .nx-slide__tag {
        font-size: 13px;
    }

    .nx-slide__title {
        font-size: 22px;
    }

    .nx-slide__text {
        font-size: 15px;
    }

    .nx-dots {
        margin-top: 32px;
    }

    .nx-blob--1, .nx-blob--2 {
        display: none;
    }
}
