/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Fondo tipo wallpaper */
body {
    height: 100vh;
    background-image: url('../img/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Capa oscura ligera para mejorar contraste */
body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    top: 0;
    left: 0;
    z-index: 0;
}

/* Contenedor centrado */
.login-container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Cuadro de login */
.login-box {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
}

/* Título */
.login-box h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

/* Input */
.login-box input {
    width: 100%;
    padding: 12px;
    margin: 15px 0 25px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}

/* Botón */
.login-box button {
    width: 100%;
    padding: 12px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.login-box button:hover {
    background-color: #1976D2;
}

/* 📱 Ajustes específicos para pantallas pequeñas */
@media (max-width: 480px) {

    body {
        background-color: #1976D2;
    }

    .login-box {
        padding: 30px 20px;
        border-radius: 10px;
        max-width: none;
    }

    .login-box h2 {
        font-size: 20px;
    }

    .login-box input,
    .login-box button {
        font-size: 15px;
        padding: 11px;
    }

}