/* ===== Reset o impostazioni di base (opzionali) ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== Body ===== */
body {
    font-family: Arial, sans-serif;
    background-color: #f3f4f6;
    /* Centra verticalmente e orizzontalmente la pagina di login */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* ===== Contenitore login ===== */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* ===== Box principale login ===== */
.login-box {
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 30px;
    width: 100%;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333333;
}

/* ===== Messaggi di errore generici ===== */
.alert {
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-error {
    background-color: #fadbd8; /* colore di sfondo per errore */
    color: #c0392b; /* testo rosso */
}

/* ===== Form e campi ===== */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555555;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 4px rgba(74, 144, 226, 0.3);
}

.error {
    color: red;
    font-size: 12px;
    display: inline-block;
    margin-top: 5px;
}

/* ===== Pulsante principale (Accedi) ===== */
.btn {
    background-color: #4a90e2;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    margin-top: 5px;
}

.btn:hover {
    background-color: #357abd;
}

/* ===== Social Login ===== */
.social-login {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.social-login p {
    color: #666;
    margin: 15px 0;
    font-size: 14px;
    position: relative;
    display: inline-block;
    background: white; /* Per "staccare" dalla linea */
    padding: 0 15px;
}

.social-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: -1;
}

/* Bottone di login con Google */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #4285f4;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    transition: background-color 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-google:hover {
    background: #357ABD;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-google i {
    font-size: 20px;
}

/* ===== Link aggiuntivi (auth-links) ===== */
.auth-links {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
}

.auth-links div {
    margin: 8px 0;
}

.auth-link {
    color: #4a90e2;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}
