body.login-page nav.navbar,
body.login-page .footer,
body.login-page footer {
    display: none !important;
}

:root {
    --primary-accent: #0f172a;
    --light-bg: #f8fafc;
    --module-bg: #0f172a;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-light: #ffffff;
    --text-muted-color: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --primary-topbar: #0f172a;
    --error-color: #ef4444;
}

/* ===== SSO ===== */
.login-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--text-light);
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
    text-decoration: none;
    isolation: isolate;
}

.login-btn span {
    position: relative;
    z-index: 2;
}

.login-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-accent);
    z-index: 0;
    transition: background 0.2s ease;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.6);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.login-btn:hover::before,
.login-btn:focus-visible::before {
    animation: fillSplash 0.6s ease-out forwards;
}

@keyframes fillSplash {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

.login-btn:hover,
.login-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 74, 112, 0.25);
    color: #fff;
    outline: none;
}

.login-layout {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100vw;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--light-bg);
    box-sizing: border-box;
    z-index: 1000;
}

/* ===== Hero izquierdo ===== */
.login-hero {
    flex: 1 1 50%;
    position: relative;
    overflow: hidden;
    background-color: var(--module-bg);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/static/img/Atlas_02.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.7) saturate(0.7);
    opacity: 0.9;
    z-index: 0;
}

.login-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3, 27, 59, 0.92), rgba(10, 72, 145, 0.85));
    z-index: 1;
}

.login-hero-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
    text-align: left;
}

.login-hero-logo {
    max-height: 48px;
    margin-bottom: 24px;
    object-fit: contain;
}

.login-hero-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
    line-height: 1.2;
}

.login-hero-sub {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(249, 250, 251, 0.95);
    margin: 0 0 18px 0;
}

.login-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: rgba(249, 250, 251, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.16);
    margin-bottom: 20px;
}

/* ===== Hero derecho ===== */
.login-root {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: var(--light-bg);
    overflow-y: auto;
}

/* ===== Card login ===== */

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 28px 26px;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.login-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--primary-topbar);
}

.login-sub {
    font-size: 13px;
    color: var(--text-muted-color);
    margin: 0 0 18px 0;
    line-height: 1.5;
}

/* ===== Alertas ===== */

.alert {
    margin: 4px 0 16px 0;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 10px;
    text-align: left;
}

.alert-danger {
    background-color: #FEF2F2;
    border: 1px solid #FEE2E2;
    color: var(--error-color);
}

.alert i {
    margin-right: 6px;
}

.login-muted {
    font-size: 12px;
    color: var(--text-muted-color);
    margin: 18px 0 0 0;
}

.login-muted a {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 600;
}

.login-muted a:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .login-layout {
        flex-direction: column;
        height: auto;
        min-height: 100dvh;
        position: static;
    }

    .responsive-overflow-x {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .login-hero {
        display: none;
    }

    .login-root {
        flex: 1 1 auto;
        min-height: 100dvh;
        padding: 24px;
        box-sizing: border-box;
        background-image: url('/static/img/Atlas_02.png');
        background-size: cover;
        background-position: center;
        position: relative;
        z-index: 1;
    }

    .login-root::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(3, 27, 59, 0.95), rgba(10, 72, 145, 0.9));
        z-index: -1;
    }

    .login-card {
        max-width: 100%;
        width: 100%;
        padding: 40px 32px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
    }

    .mobile-logo {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .mobile-logo {
        display: none !important;
    }

    .responsive-overflow-x {
        overflow: visible !important;
    }

    .login-card {
        padding: 48px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.04);
    }

    .login-root {
        background-color: #f8fafc;
        background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
        background-size: 24px 24px;
    }
}