:root {
    --gold: #D4AF37;
    --dark-bg: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-light: #f5f5f5;
}

body {
    background-color: var(--dark-bg);
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: var(--text-light);
}

.login-container {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 400px;
    border: 1px solid #444;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.coin-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

h2 { margin: 0; color: var(--gold); letter-spacing: 1px; }
p { margin: 5px 0 0; color: #888; font-size: 0.9rem; }

.input-group { margin-bottom: 1.2rem; }

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

input {
    width: 100%;
    padding: 12px;
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 6px;
    color: white;
    box-sizing: border-box; /* Importante para el padding */
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--gold);
    outline: none;
}

button {
    width: 100%;
    padding: 12px;
    background: var(--gold);
    color: var(--dark-bg);
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.3s;
}

button:hover { opacity: 0.9; }
button:active { transform: scale(0.98); }

.message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
}
.error { color: #ff6b6b; }
.success { color: #51cf66; }

.links a {
    transition: color 0.3s;
}
.links a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* --- NUEVO CÓDIGO PARA MÓVILES --- */
@media (max-width: 480px) {
    body {
        /* Evita problemas de scroll en algunos navegadores móviles */
        height: 100dvh; 
    }

    .login-container {
        height: 100%;            /* Ocupa todo el alto disponible */
        max-width: 100%;         /* Quita la restricción de 400px */
        border-radius: 0;        /* Quita los bordes redondos */
        border: none;            /* Quita el borde gris */
        box-shadow: none;        /* Quita la sombra (ya no "flota") */
        
        /* Opcional: centra el contenido verticalmente dentro del full height */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
