:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #f9f9f9;
    --text-primary: #343a40;
    --text-secondary: #6c757d;
    --accent-black: #343a40;
    --accent-blue: #42a5f5;
    --accent-green: #81c784;
    --accent-yellow: #ffee58;
    --accent-red: #ef5350;
    --accent-gray: #b0bec5; 
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
/*    background: linear-gradient(135deg, #2c3e50, #4a69bd); /* Sfondo blu-grigio */
    background: var(--bg-primary); /* Sfondo blu-grigio */
    color: var(--text-primary);
    width: 100%;
}

h2 {
    font-family: 'Roboto', sans-serif; /* Oppure un altro font pulito */
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    width: 100%;
    position: relative;
}

.input-group input {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.15); /* Sfondo input più visibile */
    border: 1px solid #ccc; /* Bordo input leggero */
    border-radius: 5px;
    color: #454545; /* Colore testo input */
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #707070; /* Bordo bianco al focus */
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6); /* Colore label più tenue */
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: 0;
    left: 8px;
    font-size: 12px;
    padding: 0 4px;
    background: #2c3e50; /* Sfondo label scuro come il gradiente */
    border-radius: 4px;
    color: #ffffff; /* Label più chiara quando attiva */
}

.login-button {
    background: #3498db; /* Verde brillante per l'azione principale */
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.login-button:hover {
    background: #238dd3; /* Verde più scuro all'hover */
    transform: translateY(-2px);
}

.register-link {
    margin-top: 20px;
    font-size: 0.9em;
}

.register-link a {
    color: #79a4e4; /* Blu chiaro per il link */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #97bef9; /* Blu più chiaro all'hover */
}


/* Aggiungi questa classe per rendere lo stile riutilizzabile */
.card-container {
    background: var(--bg-secondary); /* Sfondo leggermente più scuro */
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); 
    border: 1px solid #e0e0e0;
    width: 90%;
    max-width: 400px;
}

/* Aggiungi questo in fondo al file */
.settings-page hr {
    background-color: rgba(255, 255, 255, 0.1);
    height: 1px;
    border: none;
}