/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* FONDO */
body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
background-image: url("/images/2.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    animation: fondoSuave 40s linear infinite;
    z-index: -1;
}

@keyframes fondoSuave {
    0% { background-position: center; }
    50% { background-position: top; }
    100% { background-position: center; }
}

/* CONTENEDOR DEL LOGIN */
.login-container {
    background: #ffffff; /* Blanco */
    padding: 45px;
    width: 100%;
    max-width: 430px;
    border-radius: 25px;
    box-shadow: 0 0 25px rgba(0,0,0,0.3);
    text-align: center;
    color: #222;
}

/* TÍTULO */
.login-container h2 {
    margin-bottom: 22px;
    color: #009929;
    font-weight: bold;
}

/* INPUTS */
.login-container input {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border-radius: 10px;
    border: 2px solid #ddd;
    outline: none;
    background: #f7f7f7;
    color: #333;
    font-size: 15px;
    transition: 0.3s;
}

.login-container input:focus {
    border-color: #009929;
    box-shadow: 0 0 8px rgba(0,153,41,0.3);
}

/* CONTENEDOR CONTRASEÑA */
.input-password {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background-image: url("../images/ojo.png");
    background-size: cover;
    cursor: pointer;
}

/* OPCIONES */
.opciones {
    display: flex;
    justify-content: flex-start;
    margin: 10px 0;
    font-size: 16px;
    color: #333;
}

.opciones input[type="checkbox"] {
    accent-color: #009929;
    width: 20px;
    height: 20px;
}

/* BOTÓN PRINCIPAL */
.btn-fondo {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    border: none;
    border-radius: 12px;
    background: #009929;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 0 10px rgba(0,153,41,0.5);
}

.btn-fondo:hover {
    transform: scale(1.05);
    background: #007a20;
}

/* EXTRA */
.extra a {
    color: #009929;
    text-decoration: none;
}

.extra a:hover {
    text-decoration: underline;
}

/* MENSAJE */
#mensaje {
    margin-top: 10px;
    font-size: 14px;
    color: #009929;
}

/* LOGO */
.logo-login {
    width: 230px;
    margin-bottom: 12px;
}

/* BOTÓN ADMIN */
.btn-admin {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    background: #009929;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0 0 10px rgba(0,153,41,0.5);
}

.btn-admin:hover {
    background: #007a20;
    transform: scale(1.05);
}

.icon-admin {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-image: url("../images/admin.png");
    background-size: cover;
    background-position: center;
}

/* ======================
   🔵 Estilo iPad / Tablet
   ====================== */
@media (max-width: 900px) {
    .login-container {
        width: 90%;
        padding: 35px;
        border-radius: 20px;
    }

    .logo-login {
        width: 200px;
    }

    .btn-fondo, .btn-admin {
        font-size: 16px;
    }
}


