/* Reset di base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif; /* Font moderno e leggibile */
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); /* Sfondo sfumato elegante */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenitore principale */
.login-wrapper {
    width: 100%;
    padding: 20px;
}

/* La scheda del login */
.login-card {
    background: white;
    width: 100%;
    max-width: 420px; /* Larghezza ottimale per la lettura */
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px; /* Angoli più arrotondati */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Ombra morbida e profonda */
    text-align: center;
}

/* Stile del Logo */
.logo-container {
    margin-bottom: 20px;
}

.site-logo {
    max-width: 150px; /* Dimensione massima del logo */
    height: auto;
    display: block;
    margin: 0 auto; /* Centra il logo */
}

/* Titoli e testi */
.login-card h2 {
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Campi di Input */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease; /* Transizione fluida */
    background-color: #f9f9f9;
}

/* Effetto quando clicchi sull'input (Focus) */
.input-group input:focus {
    border-color: #0056b3; /* Colore professionale (blu scuro) */
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1); /* Alone blu leggero */
}

/* Bottone */
.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #0056b3; /* Blu aziendale */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: #004494; /* Blu più scuro al passaggio del mouse */
    transform: translateY(-1px); /* Leggero sollevamento */
}

/* Footer (link in basso) */
.login-footer {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #666;
}

.login-footer p {
    margin: 8px 0;
}

.login-footer a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

.back-link {
    color: #888 !important; /* Colore più discreto per "Torna alla home" */
    font-weight: 400 !important;
}