body.login-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
    font-weight: 400;
    color: var(--aicm-text);
    background-image: url('../assets/images/f5.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    isolation: isolate;
}

body.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(18, 29, 42, 0.08) 0%, rgba(18, 29, 42, 0.18) 100%);
    pointer-events: none;
    z-index: 0;
}

body.login-page > *:not(.swal2-container) {
    position: relative;
    z-index: 1;
}

body.login-page .swal2-container {
    position: fixed;
    z-index: 20000 !important;
}

.login-page .auth-card {
    width: 100%;
    max-width: 1140px;
    border-radius: var(--aicm-radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 60px rgba(17, 28, 40, 0.18);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.42);
}

.login-page .auth-left {
    padding: 3rem;
    background: #ffffff;
}

.login-page .brand-badge {
    width: 82px;
    height: 82px;
    border-radius: 18px;
    background: var(--aicm-blue-deep);
    display: grid;
    place-items: center;
    color: var(--aicm-white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.login-page .terminal-pill {
    display: inline-block;
    border: 1px solid rgba(55, 164, 228, 0.28);
    background: rgba(55, 164, 228, 0.08);
    color: var(--aicm-blue-deep);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.login-page .title-login {
    color: var(--aicm-black);
    font-weight: 700;
}

.login-page .subtitle-login {
    color: var(--aicm-muted);
    max-width: 420px;
    line-height: 1.4;
}

.login-page .form-label {
    font-weight: 600;
    color: var(--aicm-text);
}

.login-page .form-control {
    border-radius: 12px;
    border: 1px solid var(--aicm-border);
    background: #f7fafc;
    padding: 0.8rem 0.95rem;
    font-weight: 400;
}

.login-page .form-control:focus {
    border-color: var(--aicm-blue);
    box-shadow: 0 0 0 0.2rem rgba(55, 164, 228, 0.18);
    background: #fff;
}

.login-page .form-check-label {
    font-weight: 400;
}

.login-page .link-recover {
    color: var(--aicm-blue);
}

.login-page .btn-login {
    background: var(--aicm-blue-deep);
    border-color: var(--aicm-blue-deep);
    color: var(--aicm-white);
    font-weight: 700;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 24px rgba(6, 95, 163, 0.18);
}

.login-page .btn-login:hover {
    background: var(--aicm-blue);
    border-color: var(--aicm-blue);
    color: var(--aicm-white);
}

.login-page .auth-right {
    min-height: 680px;
    background: #0f1720;
    position: relative;
    overflow: hidden;
}

.login-page .auth-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 32, 0.12) 0%, rgba(6, 95, 163, 0.22) 100%);
    z-index: 1;
    pointer-events: none;
}

.login-page .auth-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
    filter: saturate(0.95) contrast(1.02);
}

.login-page .auth-image-fallback {
    height: 100%;
    min-height: 340px;
    background: var(--aicm-blue-deep);
    color: var(--aicm-white);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .login-page .auth-left {
        padding: 2rem;
    }

    .login-page .auth-right {
        min-height: 300px;
    }
}
