﻿body {
    font-family: "Poppins", 'Segoe UI', sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    background-color: #f8f9fa;
}

#form1 {
    width: 100%;
}

h2, h3 {
    font-variant: normal;
}

/* Estructura principal */
.login-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Lado izquierdo */
.login-left {
    background: url('../images/INTRANET.jpg') no-repeat center center;
    background-size: cover;
    width: 50%; /* Fijamos 50% exacto */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    position: relative;
    text-align: center
}

/* Lado derecho */
.login-right {
    width: 50%; /*También 50% exacto */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
}

.login-box {
    width: 80%;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.login-left .logo {
    position: absolute;
    top: 40px;
    left: 40px;
    font-weight: bold;
    font-size: 22px;
}

.login-left h2 {
    font-size: 28px;
    margin-bottom: 50px;
    color: #fff;
    margin-bottom:0;
}
.login-left h3 {
    color: #fff;
    font-weight:600;
    margin-bottom:0;
    margin-top:0;
    font-size:24px;
}

.login-left h3 span {
    color: #ffb20e;
}

.login-left p {
    font-size: 16px;
    margin-bottom: 25px;
}

.login-left .btn-video {
    background-color: white;
    color: #002A49;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 500;
    box-shadow: none;
    font-family: "Poppins"
}



.login-box h3 {
    margin-bottom: 25px;
    color: #002A49;
    text-align: left;
    font-weight: 500;
    font-size: 24px;
}

.login-box p{
    text-align:left;
    font-size:14px;
    font-weight:600;
}

.login-box input[type=text],
.login-box input[type=password] {
    width: 100%;
    padding: 0px 10px 10px 0px;
    margin-bottom: 15px;
    border: none;
    border-bottom: 1px solid #ccc;
    box-shadow: none;
    border-radius: 0;
    outline: none;
}

    .login-box input[type=text]:focus,
    .login-box input[type=password]:focus {
        border-color: #002A49;
    }

.login-box .btn-primary {
    width: 100%;
    border-radius: 30px;
    background-color: #0089ED;
    border: none;
    padding: 10px;
    box-shadow: none;
    font-weight: 500;
}

    .login-box .btn-primary:hover {
        background-color: #0b5ed7;
    }

.login-box a {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    text-decoration: none;
    font-size: 12px;
}

    .login-box a:hover {
        text-decoration: underline;
    }

/* Mensajes */
.isa_error, .isa_warning {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    text-align: left;
    font-size: 14px;
}

.isa_error {
    background-color: #f8d7da;
    color: #842029;
}

.isa_warning {
    background-color: #fff3cd;
    color: #664d03;
}

.oculta {
    display: none;
}

.recovery {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 25px;
}

    .recovery label {
        font-size: 12px;
        font-weight: normal;
        margin-top: 5px;
        margin-bottom: 0px;
    }

.recovery-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-info {
    font-size: 13px;
    color: #6c757d;
    margin: 15px 0;
    text-align: center;
}

    .contact-info a {
        color: #6c757d;
        text-decoration: none;
        margin: 0;
    }

        .contact-info a:hover {
            text-decoration: underline
        }

.data-info {
    display: flex;
    gap: 2rem;
    flex-direction: row;
    margin: 0 0 40px 0;
    align-items: center;
    justify-content: center;
}

    .data-info span {
        white-space: nowrap;
    }

        .data-info span i {
            font-family: 'FontAwesome';
            color: #124571;
            font-style: normal;
            font-size: 15px;
        }

    .font-primary-color {
        color: #124571
    }

.fa-chevron-right {
    border-radius: 50%;
    border: 1px solid #0089ed;
    width: 14px;
    height: 14px;
    display: inline-block;
    line-height: 10.5px;
    margin-left: 5px;
}

    .fa-chevron-right:before {
        font-family: 'FontAwesome';
        font-style: normal;
        color: #0089ED;
        font-size: 8px;
    }

.btn-video:hover {
    background-color: #ffb20e;
    color: #fff;
}

    .btn-video:hover .fa-chevron-right {
        border: 1px solid #fff;
    }

        .btn-video:hover .fa-chevron-right:before {
            color: #fff;
        }

/* Tablets y pantallas menores a 1090px */
@media (max-width: 1200px) {
    .login-wrapper {
        flex-direction: column; /* Apila verticalmente */
        height: auto; /* Ya no usamos 100vh */
    }

    .login-left {
        width: 100%;
        height: 300px;
        background-position: center;
        padding: 20px;
    }

        .login-left h2 {
            font-size: 22px;
        }

        .login-left h3{
            font-size:19px;
        }

        .login-left p {
            font-size: 14px;
        }

    .login-right {
        width: 100%;
        box-shadow: none;
        padding: 30px 20px;
        height: auto;
    }

    .login-box {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        justify-content: flex-start;
    }

    .contact-info {
        margin-bottom: 30px;
    }
}

/* Celulares (pantallas menores a 768px) */
@media (max-width: 768px) {
    body {
        background-color: white;
    }

    .login-left {
        display: none; /*Ocultamos el panel izquierdo */
    }

    .login-right {
        width: 100%;
        height: auto;
        box-shadow: none;
        justify-content: center;
        align-items: center;
        padding: 40px 20px;
    }

    .login-box {
        width: 100%;
        max-width: 350px;
        margin: auto;
        height: auto;
    }

        .login-box h3 {
            text-align: center;
        }

    .recovery {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .data-info {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }

        .data-info span,
        .data-info a {
            display: block;
            white-space: nowrap;
        }
}
