@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/*Estilos generales */

body {
    background: url('/wp-content/uploads/2025/03/bi-bg-login.jpg') no-repeat center center/cover;
    font-family: "Open Sans", sans-serif;
    margin: 0;
    padding: 0;
}

/* Contenedor principal */
.login-container {
    display: flex;
    justify-content: right;
    align-items: center;
    height: 100vh;
    padding: 0px 10% 0px 0px;
}

.bi-header{
    width: 100%;
    height: auto;
    background-color: #F99215;
    position: absolute;
}

/*Logo */
.logo {
    width: 200px;
    margin: 10px;
}

/*Tarjeta del formulario */
.login-card {
    background: white;
    padding: 30px;
    border-radius: 25px;
    width: 400px;
    float: right;
    margin-top: 5%;
}

/*Encabezado */
h1 {
    font-size: 1.5em;
    color: #000000;
    font-weight: 800;
    text-align: center;
    margin-bottom: -10px;
}

h2 {
    font-size: 1.5em;
    color: #F99215;
    font-weight: bold;
    text-align: center;
    margin-top: 0px;
}

h3 {
    font-size: 1em;
    color: #000000;
    font-weight: bold;
    text-align: center;
}


/*Inputs */
label{
    font-size: 0.8em;
    color: #4D4D4D;
    text-align: left;
}

input[type=text], input[type=password] {
    width: 90%;
    height: 30px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin: 20px 0px 20px 0px;
}

/* Contenedor de la contraseña con icono */
.password-container {
    position: relative;
    width: 90%;
}

.password-container input {
    width: 90%;
    padding-right: 45px;
}

/* Icono de ojo */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.toggle-password img {
    width: 20px;
    height: 20px;
}

/* Contenedor del captcha */
.captcha-box {
    display: flex;
    justify-content: left;
    align-items: center;
}

.captcha-box span {
    width: 15%;
    height: 32px;
    padding: 18px 10px 0px 10px;
    border-radius: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    text-align: center;
    color: #757575;
    font-size: 0.8em;
    vertical-align: middle;
}

.captcha-box input {
    width: 67%;
}


/*Botón de login */
button {
    width: 75%;
    height: 45px;
    padding: 12px;
    display: block;
    margin: 0 auto;
    background: linear-gradient(90deg, #f57c00, #ffa726);
    border: none;
    color: white;
    font-size: 0.8em;
    border-radius: 25px;
    cursor: pointer;
}

button:hover {
    background: linear-gradient(90deg, #ef6c00, #ff9800);
}

/*Enlace de recuperación */
a {
    width: 75%;
    padding: 12px 0px;
    display: block;
    margin: 10px auto;
    border: 1px solid #F99215;
    display: block;
    color: #F99215;
    font-size: 0.8em;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

a:hover {
    text-decoration: none;
}

/*Mensajes de error */
.error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

/*MEDIA QUERIES PARA RESPONSIVE */

/*Para móviles (máx. 480px) */
@media (max-width: 480px) {
    .login-container {
        flex-direction: column
    }
    .bi-header{
         position: relative;
    }
    .login-container{
        padding: 0% 5% 0% 5%;
    }
    .login-card {
        width: 90%;
        height: 78vh;
        padding: 5%;
        margin-top: 5%;
    }
    h1 {
        font-size: 1.2em;
    }
    h2 {
        font-size: 1.2em;
    }
    h3 {
        font-size: 0.7em;
    }
    input[type=text], input[type=password] {
        margin: 5px 0px 20px 0px;
    }
    .captcha-box span {
        margin-top: 5px;
        padding: 15px 10px 5px 10px
    }
    .captcha-box input[type=text] {
       margin: 5px 0px 0px 0px;
    }
    button {
        margin-top: 20px;
        font-size: 0.8em;
    }
    a {
        margin: 10px auto;
        font-size: 0.8em;
    }
    .toggle-password {
        right: -10px;
        top: 45%;
        transform: translateY(-50%);
        cursor: pointer;
    }
}

/*Para tablets pequeñas (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .login-card {
        width: 80%;
    }
    h2 {
        font-size: 22px;
    }
}

/*Para tablets grandes / iPads (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .login-card {
        width: 450px;
    }
}

/*Para pantallas de escritorio estándar (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .login-card {
        width: 500px;
    }
}

/*Para monitores grandes (1441px - 1920px) */
@media (min-width: 1441px) and (max-width: 1920px) {
    .login-card {
        width: 400px;
    }
}

/* Para pantallas de iMac y monitores ultra anchos (más de 1920px) */
@media (min-width: 1921px) {
    .login-card {
        width: 600px;
    }
}