/* Contenedor de Login con Video de Fondo */
body.page-login:not(.page-home) {
    padding-top: 0;
    background: #09252a;
}

body.page-login main {
    display: flex;
    flex: 1 0 auto;
    background: #09252a;
}

body.page-login .site-footer {
    margin-top: 0 !important;
}

.login-video-wrapper {
    position: relative;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2.5rem 1rem;
}

body.page-login .login-video-wrapper {
    flex: 1;
    min-height: 0;
    padding-top: calc(2.5rem + 72px);
}

.login-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: brightness(0.4) saturate(1.2);
    pointer-events: none;
}

.login-video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15, 59, 67, 0.45) 0%, rgba(9, 37, 42, 0.82) 100%);
    z-index: 1;
    pointer-events: none;
}

.login-shell {
    position: relative;
    z-index: 2;
    max-width: 980px;
    width: 100%;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(9, 37, 42, 0.45);
    border: 1px solid rgba(45, 212, 191, 0.2);
}

.login-brand {
    background: linear-gradient(145deg, #09252a 0%, #0f3b43 55%, #134e56 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.login-brand .badge {
    align-self: flex-start;
}

.login-brand p {
    color: #ccfbf1;
    line-height: 1.7;
    opacity: 0.9;
}

.login-logo-wrap {
    display: flex;
    align-items: center;
}

.login-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform .2s ease;
    display: block;
}

.login-logo:hover {
    transform: scale(1.02);
}

.login-tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: #e6fffa;
    border: 1px solid #99f6e4;
    border-radius: 12px;
}

.login-tabs a {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    text-decoration: none;
    color: #0f3b43;
    border-radius: 9px;
    font-size: .875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.login-tabs a[aria-current="page"] {
    background: #fff;
    color: #0d9488;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.18);
}

.login-shell .form-control:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 .25rem rgba(13, 148, 136, 0.2);
}

.login-shell button {
    min-height: 48px;
}

@media (max-width: 767.98px) {
    body.page-login .login-video-wrapper {
        padding-top: calc(2rem + 64px);
    }

    .login-shell {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }
    .login-brand h2 {
        font-size: 1.4rem;
    }
    .login-logo {
        max-height: 42px;
    }
}
