* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;

    /* FONDO REPETIDO */
    background-image: url("imagenes/fondo.jpg");
    background-repeat: repeat;
    background-size: auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    padding: 30px 28px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(16,31,47,0.25);
    text-align: center;
}

.login-box img {
    max-width: 180px;
    margin-bottom: 20px;
}

.login-box label {
    display: block;
    text-align: left;
    font-size: 13px;
    color: #101F2F;
    margin-bottom: 5px;
}

.login-box label span {
    color: #F9BE16;
}

.login-box input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.login-box input:focus {
    outline: none;
    border-color: #101F2F;
}

.login-box button {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 6px;
    background: #eaeaea;
    color: #999;
    font-size: 14px;
    cursor: not-allowed;
}

/* Botón activo */
.login-box button.activo {
    background: #101F2F;
    color: #fff;
    cursor: pointer;
}

.login-box button.activo:hover {
    background: #F9BE16;
    color: #101F2F;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        margin: 15px;
        padding: 25px 20px;
    }

    .login-box img {
        max-width: 150px;
    }
}

/* Contenedor contraseña */
.password-box {
    position: relative;
    margin-bottom: 15px;
}

.password-box input {
    width: 100%;
    padding-right: 40px;
}

/* Ícono ojo */
.password-box span {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #101F2F;
}

.password-box span:hover {
    color: #F9BE16;
}

.toggle-text {
    cursor: pointer;
    font-size: 13px;
    color: #101F2F;
    margin-left: 8px;
}

.toggle-text:hover {
    color: #F9BE16;
}

/* Footer */
.footer-text {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.footer-text a {
    color: #101F2F;
    text-decoration: none;
    font-weight: bold;
}

.footer-text a:hover {
    color: #F9BE16;
    text-decoration: underline;
}

/* Estado normal del botón cuando está habilitado */
#btnLogin {
    background-color: #101F2F; /* Tu azul oscuro */
    color: white;
    cursor: pointer;
    transition: all 0.3s ease; /* Para que el cambio sea suave */
    border: none;
    opacity: 1;
}

/* Estado Base del Botón */
#btnLogin {
    background-color: #ccc; /* Empieza gris */
    color: #666;
    cursor: not-allowed;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease; /* Esto hace que el hover sea suave */
}

/* Estado ACTIVO (Cuando ya escribieron datos) */
#btnLogin.btn-ready {
    background-color: #101F2F; /* Tu color oscuro */
    color: white;
    cursor: pointer;
}

/* EL HOVER QUE QUIERES: Solo funciona cuando tiene la clase btn-ready */
#btnLogin.btn-ready:hover {
    background-color: #F9BE16 !important; /* Amarillo */
    color: #101F2F !important;
    transform: translateY(-2px); /* Pequeño salto */
    box-shadow: 0 4px 12px rgba(249, 190, 22, 0.4);
}