/* Stili di base per l'intera pagina */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Contenitore principale per centrare il contenuto */
.main-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

/* Stile per i box (es. form o card) */
.form-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Stile per i titoli */
h1 {
    font-size: 2.2rem;
    color: #003366;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Stile per i campi di input e le label */
.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

/* Stile per il pulsante */
button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Stile per i messaggi (successo/errore) */
.message {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Media Queries per la responsività --- */
@media (max-width: 768px) {
    .form-card {
        padding: 30px;
    }
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 20px;
        border-radius: 5px;
    }
    h1 {
        font-size: 1.5rem;
    }
}