@import url('https://fonts.googleapis.com/css2?family=Boldonse&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --colorPrincipal: #110957;
}

body {
    background: url("../images/fondo.webp");
    font-family: 'Boldonse';
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgb(0, 0, 0, 0.62);
}

.login-section {
    position: relative;
    z-index: 1;
    color: white;
    text-align: left;
}

.login-form h2,
.input-group label {
    color: #110957;
}   

.extras {
    text-decoration: none;
    display: flex;
    font-family: 'Boldonse';
    flex-direction: column;
    align-items: center;
}

.extras a {
    color: #bfbfbf;
    font-family: 'Boldonse';
    text-decoration:underline;
}

.extra a:hover {
    text-decoration: underline;
}

/* ✅ Fondo para móvil/tablet */
.bg-img {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    display: block;
}

/* Ocultamos imagen lateral por defecto */
.login-imagen {
    display: none;
}

.login-form h2 {
    color: var(--BotonIngresar, rgb(17, 9, 87));
    text-align: center;
    font-family: 'Boldonse';
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.login-form {
    width: 100%;
    max-width: 100%;
    /* padding: 5px; */
}

.perfil-imagen {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.perfil-imagen img {
    width: 157px;
    height: 151px;
    border-radius: 500px;
    object-fit: cover;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    color: #110957;
    font-family: 'Boldonse';
    font-size: 14px;
    font-weight: 600;
    line-height: 250%;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 5px;
}

.input-group input {
    width: 90%;
    padding: 12px;
    border: 1px solid #000000;
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.pass-group {
    position: relative;
}

.eyes-password {
    position: absolute;
    right: 20px;
    top: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #000000;
}

.btn {
    width: 100%;
    padding: 12px;
    background-color: #110957;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 15px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px #110957;
}

/* --- MEDIA QUERIES --- */
@media (min-width: 834px) {

    .login-imagen,
    .overlay {
        display: block;
    }
}

@media (min-width: 1024px) {
    .overlay {
        display: none;
    }

    body {
        background-image: none;
    }

    .login-imagen {
        display: block;
    }

    .login-section {
        display: flex;
        height: 100vh;
        width: 100vw;
    }

    /* Columna izq con imagen escritorio */
    .login-imagen {
        flex: 1;
        background-color: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .login-imagen img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .login-form {
        flex: 1;
        background-color: #ffffff;
        padding: 40px;
        display: flex;
        justify-content: center;
        flex-direction: column;
        border-radius: 0 15px 15px 0;
        max-width: 15%;
    }

    .menu-form {
        color: #110957;
        font-family: 'Boldonse';
    }

    .extras {
        margin-top: -8px;
        font-size: 14px;
        font-family: 'Boldonse';
        text-align: center;
    }

    .extras a {
        color: #110957;
        font-family: 'Boldonse';
        text-decoration: none;
    }

    .extra a:hover {
        text-decoration: underline;
    }
}