/* CSS Document - Login CCA responsive */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background-image: url(../images/bgindexestudiantes.jpg?d=20190918) !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-color: #12417f;
}

/* Evita que padding y bordes aumenten el ancho real de los elementos */
body,
body * {
    box-sizing: border-box;
}

/* Contenedor exclusivo de la pantalla de acceso */
#contenedor {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 40px 7vw;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}

/* Tarjeta principal del login */
#contenedor > .box_white {
    width: 100%;
    max-width: 500px;
    margin: 0;
    padding: 14px;
    float: none;
    clear: none;
    background: rgba(250, 250, 250, 0.96);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

#contenedor > .box_white > .box_yellow {
    margin: 0 0 18px 0;
    padding: 14px 16px;
    border-radius: 7px;
}

#contenedor > .box_white > .box_yellow h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    text-align: center;
}

/* Caja interna del formulario */
#contenedor > .box_white > .box_white {
    width: 100%;
    margin: 0;
    padding: 8px 12px 12px;
    background: transparent;
}

#contenedor > .box_white p {
    width: 100%;
    margin: 10px 0 16px;
    padding: 0;
    text-align: left;
}

/* Filas usuario / contraseña */
#contenedor > .box_white label,
#contenedor > .box_white .req {
    width: 35%;
    min-height: 32px;
    height: auto;
    margin: 0;
    padding: 7px 10px 0 0;
    float: left;
    line-height: 1.2;
}

#contenedor > .box_white input[type="text"],
#contenedor > .box_white input[type="password"] {
    width: 65%;
    max-width: none;
    height: 36px;
    padding: 5px 9px;
}

/* Botón de ingreso */
#Btn_Siguiente {
    display: inline-block;
    width: auto;
    min-width: 190px;
    min-height: 38px;
    padding: 8px 18px;
    border: 1px solid #275faa;
    border-radius: 6px;
    background: #275faa;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    cursor: pointer;
}

#Btn_Siguiente:hover,
#Btn_Siguiente:focus {
    background: #12417f;
    color: #fff;
}

#Btn_Siguiente:disabled {
    cursor: default;
    opacity: 0.72;
}

/* Recuperación de contraseña */
#contenedor .box_blue {
    width: 100%;
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 6px;
}

#contenedor .box_blue h2 {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

#btn_recuperar_contrasena {
    display: block;
}

/* Tablets y portátiles pequeños */
@media screen and (max-width: 1024px) {
    #contenedor {
        padding: 32px 5vw;
    }

    #contenedor > .box_white {
        max-width: 460px;
    }
}

/* Tablets verticales y teléfonos */
@media screen and (max-width: 768px) {
    body {
        background-position: center top !important;
    }

    #contenedor {
        min-height: 100vh;
        padding: 24px 18px;
        justify-content: center;
        align-items: center;
    }

    #contenedor > .box_white {
        max-width: 520px;
        padding: 12px;
    }

    #contenedor > .box_white > .box_yellow h2 {
        font-size: 17px;
    }
}

/* Teléfonos */
@media screen and (max-width: 600px) {
    #contenedor {
        padding: 16px 12px;
    }

    #contenedor > .box_white {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        border-radius: 8px;
    }

    #contenedor > .box_white > .box_yellow {
        margin-bottom: 12px;
        padding: 12px;
    }

    #contenedor > .box_white > .box_yellow h2 {
        font-size: 16px;
        line-height: 1.35;
    }

    #contenedor > .box_white > .box_white {
        padding: 6px 4px 8px;
    }

    #contenedor > .box_white p {
        margin: 8px 0 14px;
        text-align: left;
    }

    #contenedor > .box_white label,
    #contenedor > .box_white .req {
        display: block;
        width: 100%;
        min-height: 0;
        margin: 0 0 5px;
        padding: 0;
        float: none;
    }

    #contenedor > .box_white input[type="text"],
    #contenedor > .box_white input[type="password"] {
        display: block;
        width: 100%;
        height: 42px;
        font-size: 16px;
    }

    #Btn_Siguiente {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        font-size: 16px;
    }

    #contenedor .box_blue {
        padding: 11px 8px;
    }

    #contenedor .box_blue h2 {
        font-size: 14px;
    }
}

/* Teléfonos muy pequeños */
@media screen and (max-width: 360px) {
    #contenedor {
        padding: 10px 8px;
    }

    #contenedor > .box_white > .box_yellow h2 {
        font-size: 15px;
    }

    #contenedor > .box_white p {
        font-size: 14px;
    }
}

/* Pantallas bajas, por ejemplo móvil horizontal */
@media screen and (max-height: 600px) and (orientation: landscape) {
    #contenedor {
        align-items: flex-start;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    #contenedor > .box_white {
        margin: 0;
    }
}
