@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    background-color: #FFFFFF;
}

.login-container {
    display: flex;
    height: 100%;
}

.login-formulario {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    height: 100%;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
    max-height: 100%;
    overflow-y: auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
    margin: auto 0;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.form-wrapper::-webkit-scrollbar {
    width: 6px; 
}

.form-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(34, 3, 192, 0.338);
    border-radius: 3px;
}

.bienvenida {
    color: #17319B;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0;
    margin-bottom: 0.3rem;
}

.titulo {
    font-size: 2rem;
    font-weight: 500;
    color: #1d1d1d;
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
}


.etiqueta {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #333;
}

.etiqueta span {
    color: red;
    margin-left: 0.2rem;
}

.campo {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #E3E3E3;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #F9F9F9;
}

.campo::placeholder {
    color: #999999;
    opacity: 1;
    font-size: 0.9rem;
}

.campo-password {
    position: relative;
}

.input-password {
    padding-right: 3rem;
}

.icono-ojo {
    position: absolute;
    top: 32%;
    right: 1rem;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.1rem;
    color: #666;
    display: none;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-clear-button,
input[type="password"]::-webkit-reveal-button {
    display: none !important;
    -webkit-appearance: none;
}

.opciones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.recordarme {
    color: #333;
}

.olvide {
    color: #2D59F3;
    text-decoration: none;
}

.boton-entrar {
    width: 100%;
    padding: 0.75rem;
    background-color: #17319B;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.regresar-login {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.boton-entrar:hover {
    background-color: #2D59F3;
}

.alerta-exito {
    background-color: #deffe1;
    color: #06b300;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alerta-error {
    background-color: #ffdede;
    color: #b30000;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alerta-error-all {
    background-color: #ffdede;
    color: #b30000;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    list-style: none;
}

.alerta-error-all ul {
    padding-left: 1rem;
}

.alerta-error-all li {
    margin-bottom: 0.5rem;
}

.login-imagen {
    width: 60%;
    background: linear-gradient(135deg, #17319B, #2D59F3);
    background-size: cover;
    background-position: center;
    background-image: url('/images/login.png');
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        min-height: 100vh;
    }

    .login-imagen {
        width: 100%;
        flex: 0 0 250px;
        order: 1;
        background-size: cover;
        background-position: top center;
        background-repeat: no-repeat;
    }

    .login-formulario {
        flex: 1;
        width: 100%;
        padding: 1.5rem 1.5rem;
        order: 2;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .form-wrapper {
        padding: 0;
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
        margin-top: 0.2rem;
    }

    .login-logo img {
        display: none;
    }

    .bienvenida {
        font-size: 1.2rem;
        text-align: center;
    }

    .titulo {
        font-size: 1.5rem;
        text-align: center;
    }

    .opciones {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .boton-entrar {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-imagen {
        height: 150px;
    }

    .login-formulario {
        padding-top: 0.5rem;
    }

    .bienvenida {
        font-size: 1rem;
    }

    .titulo {
        font-size: 1.3rem;
    }

    .campo {
        font-size: 0.9rem;
    }
}