body.login-page {

    margin: 0;
    height: 100vh;

    display: block; /* 🔥 CAMBIO CLAVE */

    background: linear-gradient(
        135deg,
        #004a99,
        #f07c00
    );

    overflow: hidden; /* evita barras raras */
}

:root {
    --blue: #004a99;
    --orange: #f07c00;
}

/* RESET */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* CONTENEDOR GENERAL */
.login-container {

    position: relative;

    width: 100%;
    height: 100vh;

    display: flex;
}


/*IZQUIERDA (VIDEO) */
.login-left {

    width: 60%;
    height: 100vh;

    position: relative;
    overflow: hidden;
}

/* VIDEO FULL */
.login-left iframe{

    position:absolute;

    top:50%;
    left:50%;

    width:177.77vh;
    height:56.25vw;

    min-width:100%;
    min-height:100%;

    transform:
translate(-50%,-50%);

    pointer-events:none;

}

/* OSCURECER */
.login-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

/* TEXTO EN VIDEO */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2;
    width: 80%;
}

.overlay h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 16px;
}

/* 🔵 DERECHA (FORM) */
.login-right {
    width: 40%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CARD LOGIN */
.login-box {
    background: #fff;
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    border-top: 6px solid #f07c00;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    text-align: center;
    position: relative;
}

.update-alert {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 9999;

    display: flex;

    justify-content: center;

    padding: 10px;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 5px;
}

input {
    padding: 10px;
    border: none;
    border-radius: 6px;
    margin-bottom: 15px;
}

input:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* BOTÓN */
button {
    background: white;
    color: var(--blue);
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background: #eee;
}

/* LINK */
.link-forgot {
    text-align: right;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: 15px;
}

/* ALERT TRACK */
.alert-track {

    min-width: 300px;

    max-width: 600px;

    text-align: center;

    padding: 10px;

    border-radius: 6px;

    font-weight: 600;
}

.alert-box {
    padding: 10px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
}

/* BOTÓN HEALTH */
#healthBtn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
}

/* ✅ ANIMACIONES LIMPIAS */
.login-left {
    animation: fadeVideo 3s ease forwards;
}

.login-box {
    animation: slideIn 1s ease forwards;
}

@keyframes fadeVideo {
    from {opacity:0;}
    to {opacity:1;}
}

@keyframes slideIn {
    from {
        opacity:0;
        transform:translateY(40px);
    }
    to {
        opacity:1;
        transform:translateY(0);
    }
}

.login-box img{
    max-width:95px;
    margin-bottom:15px;
}

.login-box input {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
}

.login-box button {
    background: var(--blue);
    color: white;
}

.login-box button:hover {
    background: var(--orange);
}

.alert-box{

    background:#f07c00;

    padding:12px;

    font-weight:bold;

    animation:
    parpadeo 2s infinite;

    }
    @keyframes parpadeo{

    50%{

    opacity:.6;

    }

}

.health-panel{
    display:none;
    width:100%;
    margin-top:10px;
    background:#eaf7ef;
    border:1px solid #b8e4c7;
    border-radius:10px;
    padding:0;
    overflow:hidden;
    font-size:13px;
    animation:
    expandPanel .35s ease;
    text-align:left;
}

.health-title{

    padding:12px;
    font-weight:bold;
    color:#0f7b45;
    background:#dff3e6;
    border-bottom:
    1px solid #cde7d5;
    font-size:14px;
    display:flex;
    align-items:center;
    gap:8px;
    justify-content:flex-start;
}

.health-detail{
    padding:12px;
    line-height:1.5;
    color:#333;

}

.health-detail small{
    display:block;
    margin-top:8px;
    color:#666;
}

@keyframes expandPanel{

    from{
    opacity:0;
    transform:translateY(-8px);
    }
    to{
    opacity:1;
    transform:translateY(0);
    }

}

.video-bg{
    position:absolute;
    top:0;
    left: 0;
    width:100%;
    height:100%;
    object-fit:cover;
}

/*ALERTA ACTUALIZACION*/
.update-alert {
    margin-top: 10px;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.alert-track {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    font-size: 0.95rem;
    font-weight: 600;
    animation: moverAlerta 25s linear infinite;
}

@keyframes moverAlerta {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/*BOTÓN MICROSOFT AZURE*/

.btn-microsoft {
    width: 100%;
    height: 48px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    background: #ffffff;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow:
        0 4px 12px rgba(0,0,0,.08);

}

.btn-microsoft:hover {
    transform: translateY(-2px);
    background: #f7f7f7;
    box-shadow:
        0 8px 20px rgba(0,0,0,.15);

}

.btn-microsoft:active {
    transform: scale(.98);

}

.btn-microsoft span {
    letter-spacing: .3px;

}