.login-shell {
    height: calc(100vh - 64px);
    max-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    font-family: 'IBM Plex Sans', sans-serif;
    overflow: hidden;
    box-sizing: border-box;
}

.login-panel-wrap {
    display: flex;
    width: 100%;
    max-width: 920px;
    max-height: 100%;
    min-height: 440px;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(30, 20, 25, 0.16);
}

/* ---------- artistic left panel ---------- */

.login-art {
    position: relative;
    flex: 0 0 44%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(155deg, #4a0912 0%, #9c1222 55%, #d43a4d 100%);
}

.login-art-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.55;
    animation: drift 16s ease-in-out infinite;
}

.login-art-blob-a {
    width: 260px;
    height: 260px;
    top: -60px;
    left: -60px;
    background: rgba(255, 255, 255, 0.25);
    animation-delay: 0s;
}

.login-art-blob-b {
    width: 220px;
    height: 220px;
    bottom: -80px;
    right: -60px;
    background: rgba(255, 200, 90, 0.28);
    animation-delay: -5s;
}

.login-art-blob-c {
    width: 180px;
    height: 180px;
    bottom: 30%;
    left: 20%;
    background: rgba(255, 255, 255, 0.15);
    animation-delay: -10s;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(18px, -22px) scale(1.08); }
    66% { transform: translate(-14px, 16px) scale(0.95); }
}

.login-art-pulse {
    position: absolute;
    left: 0;
    bottom: 34%;
    width: 100%;
    height: 60px;
    opacity: 0.7;
}

.login-art-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 0 44px 40px;
}

.login-art-content h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.login-art-content p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    max-width: 300px;
    margin-bottom: 0;
}

/* ---------- form panel ---------- */

.card-header {
    border-bottom: none !important;
}

.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    min-height: 0;
}

.login-form-panel .card {
    width: 100%;
    max-width: 380px;
    background: transparent;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 4px !important;
}

.login-form-panel .card-header {
    background: transparent;
    box-shadow: none;
    width: 100%;
    padding: 0 0 1.75rem;
}

.login-form-panel .card-body {
    padding: 0 !important;
}

.login-form-panel .form-group {
    margin-bottom: 9px;
}

.bg-primary {
    background-color: #f9f9f9 !important;
}

#tituloLogin {
    color: #7e0e1a;
    font-weight: 700 !important;
    font-size: 24px !important;
    margin-top: 0;
    letter-spacing: -0.01em;
}

.login-subtitle {
    color: #8a8288;
    font-size: 13.5px;
    margin-top: 6px;
    margin-bottom: 0;
}

.login-subtitle-divider {
    width: 90%;
    height: 1px;
    margin: 14px auto 0;
    background-color: #e2dfe0;
}

.labelbox {
    color: #4a3d42;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-control {
    background-color: #f6f4f5;
    border-radius: 12px;
    border: 1.5px solid transparent;
    padding: 9px 14px;
    font-size: 14.5px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-control:focus {
        background-color: #fff;
        border-color: #9c1222;
        box-shadow: 0 0 0 4px rgba(156, 18, 34, 0.1);
    }

.input-icon {
    position: relative;
}

    .input-icon .icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        color: #b3a7ab;
        pointer-events: none;
    }

    .input-icon .icon-email {
        width: 22.5px;
        height: 18px;
    }

    .input-icon .form-control {
        padding-left: 42px;
    }

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    color: #b3a7ab;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .toggle-password:hover {
        color: #9c1222;
        background-color: rgba(156, 18, 34, 0.08);
    }

    .toggle-password svg {
        position: absolute;
        width: 18px;
        height: 18px;
    }

    .toggle-password .icon-eye-off {
        opacity: 0;
    }

    .toggle-password.is-visible .icon-eye {
        opacity: 0;
    }

    .toggle-password.is-visible .icon-eye-off {
        opacity: 1;
    }

    .toggle-password:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(156, 18, 34, 0.12);
    }

.btn-entrar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #b8172b 0%, #7e0e1a 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 15.5px;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    line-height: 1.8;
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(156, 18, 34, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

    .btn-entrar::before {
        content: "";
        position: absolute;
        top: 0;
        left: -75%;
        width: 45%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
        transform: skewX(-20deg);
        transition: left 0.7s ease;
    }

    .btn-entrar:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 32px rgba(156, 18, 34, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }

        .btn-entrar:hover::before {
            left: 125%;
        }

    .btn-entrar-content {
        position: relative;
        display: inline-flex;
        align-items: center;
    }

    .btn-entrar .pb-1 {
        position: relative;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .btn-entrar:hover .pb-1 {
        opacity: 0;
        transform: scale(0.8);
    }

    .btn-entrar .btn-arrow {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 18px;
        height: 18px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .btn-entrar:hover .btn-arrow {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    .btn-entrar .btn-spinner {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
        border: 2px solid rgba(255, 255, 255, 0.35);
        border-top-color: #fff;
        border-radius: 50%;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .btn-entrar.is-loading .pb-1,
    .btn-entrar.is-loading .btn-arrow {
        opacity: 0 !important;
    }

    .btn-entrar.is-loading .btn-spinner {
        opacity: 1;
        animation: btn-spin 0.7s linear infinite;
    }

    .btn-entrar:disabled {
        cursor: default;
    }

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

    .btn-entrar:focus,
    .btn-entrar:active,
    .btn-entrar:focus-visible {
        outline: none !important;
        box-shadow: 0 6px 16px rgba(156, 18, 34, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
        border: none !important;
        background: linear-gradient(135deg, #7e0e1a, #5c0912) !important;
        color: #fff !important;
        transform: translateY(1px);
    }

.checkbox:checked {
    background-color: #9c1222;
}

#forgot-password {
    color: #7a7178;
    font-size: 13px;
    transition: color 0.2s ease;
}

    #forgot-password:hover {
        color: #9c1222;
        text-decoration: none;
    }

#novaConta {
    color: #7a7178;
    font-size: 13px;
    transition: color 0.2s ease;
}

    #novaConta:hover {
        color: #9c1222;
        text-decoration: none;
    }

.form-check-label {
    margin-left: 1.5rem;
    font-size: 13px;
    color: #6c636a;
}

.form-check-input {
    accent-color: #9c1222;
}

    .form-check-input:checked {
        accent-color: #9c1222;
    }

@media (max-width: 860px) {
    .login-shell {
        height: auto;
        max-height: none;
        min-height: 100vh;
        overflow-y: auto;
    }

    .login-art {
        display: none;
    }

    .login-panel-wrap {
        min-height: 0;
        max-height: none;
        box-shadow: 0 20px 50px rgba(30, 20, 25, 0.12);
    }

    .login-form-panel {
        padding: 32px 24px;
    }
}
