/* =========================
   LOGIN - INDEX.HTML
========================= */

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Degradado sutil entre tus dos tonos dorados */
    background: linear-gradient(135deg, #A27F45, #C9A86A);
    padding: var(--padding-general);
    margin: 0;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-wrapper h2 {
    font-size: 1.8rem;
    color: white; /* Blanco para resaltar sobre el fondo dorado */
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 300;
    letter-spacing: 1px;
}

form {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-suave);
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--color-texto);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input {
    padding: 0.85rem;
    border: 1px solid var(--color-input-border);
    background-color: var(--color-input-bg);
    color: var(--color-texto);
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--color-primario);
    box-shadow: 0 0 0 3px rgba(162, 127, 69, 0.2);
}

button {
    margin-top: 2rem;
    padding: 1rem;
    border: none;
    background-color: var(--color-primario);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background-color: #8c6d3a; /* Un tono más oscuro del primario */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

button:active {
    transform: translateY(0);
}

#mensaje {
    text-align: center;
    margin-top: 1.2rem;
    color: #b91c1c; /* Rojo para errores */
    font-size: 0.9rem;
}

/* ══════════════════════════════════════════
   RESPONSIVE — LOGIN
══════════════════════════════════════════ */

/* ─── Tablet (< 768px) ───────────────────── */
@media (max-width: 768px) {
    .login-wrapper {
        max-width: 360px;
    }

    .login-wrapper h2 {
        font-size: 1.5rem;
    }

    form {
        padding: 2rem;
    }
}

/* ─── Móvil (< 480px) ────────────────────── */
@media (max-width: 480px) {
    body {
        align-items: flex-start;
        padding: 2rem 1rem;
    }

    .login-wrapper {
        max-width: 100%;
    }

    .login-wrapper h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    form {
        padding: 1.5rem;
        border-radius: 8px;
    }

    input {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    button {
        margin-top: 1.5rem;
        padding: 0.85rem;
        font-size: 0.95rem;
    }
}