/* LOGIN - ESTRUCTURA PRINCIPAL */

.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    min-height: 100vh;
    background-color: #f8f9f9;
}

.login-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40vw;
    padding: 40px;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.login-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* BOTONES */

.btnIngresar {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Playwrite DE Grund", cursive;
    font-size: large;
    color: #fff;
    background-color: #6ee7b7;
    text-transform: none;
    width: 50%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05), 
                0 0 0 1px rgba(0, 0, 0, 0.08);
}

.btnIngresar:hover {
    background-color: #eafaf1;
    color: #6ee7b7;
}

   .btnIniciar {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-family: 'Inter', sans-serif;
        font-size: 1rem;
        font-weight: 500;
        color: #2c3e50;
        background-color: #ffffff;
        padding: 0.75rem 2rem;
        border: none;
        border-radius: 0.75rem;
        cursor: pointer;
        text-decoration: none;
        transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
        box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    }

    .btnIniciar:hover {
        background-color: #e3e3e3;
        box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    }

    .login-container{
        display: flex;
        flex-direction: column;
        justify-content:space-between;
        align-items: center;
        padding: 5px;
    }

    .btnIniciar i {
        transition: transform 0.3s ease;
    }

    .btnIniciar:hover i {
        transform: translateX(-4px);
    }

/* ENLACE DE CONTRASEÑA OLVIDADA */

.forgot-password {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.forgot-password a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* FORMULARIO */

.login-label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    font-size: 14px;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #6ee7b7;
    outline: none;
}

/* CHECKBOX Y MOSTRAR CONTRASEÑA */

.form-group {
    position: flex;
}

input[type="checkbox"] {
    transform: scale(1.1);
    margin-right: 6px;
    cursor: pointer;
}

/* MENSAJES Y VALIDACIONES */

.alert-success {
    border: 2px solid #5cb85c;
    border-radius: 5px;
    background-color: rgba(15, 255, 255, 0.15);
    padding: 12px;
    text-align: center;
}

.alert-success .alert-link {
    color: #000;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 16px;
}

.error-span {
    font-size: 13px;
    color: #a94442;
    margin-top: 5px;
    padding: 6px 12px;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    border-radius: 4px;
}

/* LINK DE REGISTRO */

.register-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.register-link:hover {
    text-decoration: underline;
}

/* ICONO DE CHECK (VALIDACIÓN OPCIONAL) */

.checkmark {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #5cb85c;
}

.checkmark.red {
    color: red;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .login-card {
        width: 90vw;
        padding: 30px;
    }

    .btnIngresar {
        width: 100%;
    }

       /* LOGIN */
    .login-section {
        min-height: 100vh;
        background-color: #f8f9f9;
    }

    .login-card{
        width: 100vw;
        padding: 5px;
        border-radius: 0;
        box-shadow: none !important;
        background-color: #f8f9f9; 
    }

    .login-body {
        width: 100vw;
        padding: 20px;
    }

    .btnIngresar{
        font-size: large;
        width: 80vw;
        border-radius: 10px;

    }

    .login-footer{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 5px;
        padding-bottom: 5px;
    }

}

/* INPUTS base */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.3s, background-color 0.3s;
}

/* Cuando el valor del input es válido (HTML5 validation) */
input[type="email"]:valid,
input[type="password"]:valid {
    /*border-color: #28a745;*/         /* verde oscuro */
    background-color: #eaffea;     /* verde claro */
}