/* Importar fuente Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root {
    /* Negro profundo con matiz para el degradado */
    --bg-dark-top: #1a1a1a;
    --bg-dark-bottom: #000000;
    --card-bg: #191919;
    --primary-lime: #BED754;
    --text-white: #ffffff;
    --text-gray: #bbbbbb;
    --error-red: #E3651D;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;

    /* DEGRADADO NEGRO PROFUNDO */
    /* Opción A: Degradado Lineal de arriba a abajo */
    background: linear-gradient(180deg, var(--bg-dark-top) 0%, var(--bg-dark-bottom) 100%);

    /* Opción B (Opcional): Si prefieres un efecto de iluminación central, usa esta línea en su lugar:
    background: radial-gradient(circle, #1a1a1a 0%, #000000 100%); 
    */

    background-attachment: fixed;
    /* Mantiene el fondo quieto al hacer scroll */
    box-sizing: border-box;
}

.login-container {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid #333;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    /* Sombra más fuerte por el fondo negro */

    /* Responsive */
    width: calc(100% - 40px);
    max-width: 380px;

    box-sizing: border-box;
    text-align: center;
}

h2 {
    color: var(--primary-lime);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

input {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #222;
    color: var(--text-white);
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: var(--primary-lime);
    background-color: #2a2a2a;
}

button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-lime);
    border: none;
    color: #191919;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    margin-top: 15px;
    font-size: 16px;
    text-transform: uppercase;
}

button:hover {
    background-color: #a5bd45;
    transform: translateY(-2px);
}

.error {
    background-color: rgba(227, 101, 29, 0.15);
    color: var(--error-red);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid var(--error-red);
    text-align: left;
    font-size: 0.85em;
}

p {
    margin-top: 25px;
    font-size: 0.9em;
    color: var(--text-gray);
}

a {
    color: var(--primary-lime);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.5rem;
    }
}