/* Estilos generales */
* { box-sizing: border-box; }

body {
    margin: 0;
    background: #ffffff;
    font-family: 'Delius', cursive;
    color: #2f663c;
}

#login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Contenedor */
#login-page .container {
    width: 450px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-radius: 14px;
    background: #ffffff;
    padding: 40px;
}

/* Formulario */
#login-page .form-box h2 {
    font-size: 28px;
    margin: 0 0 10px 0;
    text-align: center;
}

/* Inputs */
#login-page .input-box {
    position: relative;
    width: 100%;
    height: 52px;
    margin-top: 20px;
}

#login-page .input-box input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #d4edda;
    padding-right: 26px;
    background: transparent;
}

#login-page .input-box input:focus,
#login-page .input-box input:valid {
    border-bottom-color: #2f663c;
}

#login-page .input-box label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 15px;
    color: #2f663c;
    transition: .3s;
    pointer-events: none;
}

#login-page .input-box input:focus ~ label,
#login-page .input-box input:valid ~ label {
    top: -6px;
    font-size: 13px;
    color: #2f663c;
}

#login-page .input-box box-icon {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

/* Botones */
#login-page .btn {
    width: 100%;
    height: 50px;
    margin-top: 20px;
    border-radius: 40px;
    border: 2px solid #d4edda;
    background: transparent;
    font-size: 16px;
    font-weight: 400;/*  negrita */
    color: #012710;              /*  color de texto */
    text-align: center;          /*  centrar horizontal */
    font-family: 'Delius', cursive; /* misma fuente */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#login-page .btn::before {
    content: "";
    position: absolute;
    height: 300%;
    width: 100%;
    background: linear-gradient(#a9e69a, #066b44, #d4edda, #066b44);
    top: -100%;
    left: 0;
    z-index: -1;
    transition: .5s;
}

#login-page .btn:hover::before { top: 0; }

#login-page .btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;/* Tres columnas iguales */
    gap: 12px;
}

/* Mensajes */
.mensaje {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

.mensaje.error { color: #ec0000; }
.mensaje.ok { color: #066b44; }

/* ===================== */
/*   RESPONSIVE CELULAR  */
/* ===================== */
@media (max-width: 600px) {
    #login-page .container {
        width: 100% !important;
        height: 100vh !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        padding: 30px 20px !important;
    }

    #login-page .form-box h2 {
        font-size: 34px !important;
    }

    #login-page .input-box input {
        font-size: 20px !important;
        height: 60px !important;
    }

    #login-page .input-box label {
        font-size: 18px !important;
    }

    #login-page .btn {
        height: 38px !important;
        font-size: 14px !important;
    }

    #login-page .btn-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
