/* --- STILE PAGINA LOGIN ADMIN --- */

body {
    /* Immagine di sfondo emozionale (Auto sportiva scura) */
    /* Puoi cambiare l'URL con una tua foto locale es: url('../img/login-bg.jpg'); */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), 
                      url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?q=80&w=1920&auto=format&fit=crop');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* La Scheda (Card) */
.card {
    /* Effetto Vetro (Glassmorphism) */
    background: rgba(255, 255, 255, 0.95) !important; /* Bianco quasi solido */
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important; /* Ombra profonda */
    overflow: hidden;
    position: relative;
}

/* Linea colorata decorativa in alto alla card */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #007bff, #00d4ff); /* Gradiente Blu Tech */
    /* Se preferisci rosso sportivo usa: background: linear-gradient(90deg, #d31027, #ea384d); */
}

/* Titolo "Area Riservata" */
.card h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    margin-top: 10px;
}

/* Etichette (Email, Password) */
.card label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
}

/* Campi di Input */
.form-control {
    background-color: #f0f2f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: #fff;
    border-color: #007bff; /* Colore bordo al click */
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1); /* Alone leggero */
}

/* Bottone Accedi */
.btn-primary {
    background: #007bff; /* Blu scuro */
    /* background: #d31027; <--- Usa questo se vuoi il ROSSO */
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background: #0056b3; /* Blu più scuro al passaggio */
    /* background: #a50b1d; <--- Rosso scuro */
    transform: translateY(-2px); /* Si alza leggermente */
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Link "Torna alla Home" */
.card a {
    text-decoration: none;
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.card a:hover {
    color: #007bff; /* Diventa blu */
}

/* Messaggio di Errore */
.alert-danger {
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: #fdf2f2;
    border-color: #f8d7da;
    color: #842029;
}