/* Stile delle pagine di accesso (login, password dimenticata, reimposta).
   Ricalca quello scritto dentro index.php: se si cambia il look del login,
   cambiare anche qui. */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #012169 0%, #0A3A7F 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 90%;
    max-width: 420px;
}

.login-header { background: #012169; padding: 40px 30px; text-align: center; }
.login-header img { max-width: 280px; height: auto; }

.login-body { padding: 40px 30px; }

.login-title {
    color: #012169;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.login-subtitle {
    color: #5C7A94;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    color: #012169;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E7EF;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus { outline: none; border-color: #012169; }

.form-hint { color: #5C7A94; font-size: 12px; margin-top: 6px; }

.error-message {
    background: #FFE5E5;
    color: #D32F2F;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #D32F2F;
    line-height: 1.5;
}

.success-message {
    background: #E6F4EA;
    color: #1E7B34;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #1E7B34;
    line-height: 1.5;
}

.login-button {
    width: 100%;
    background: #012169;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: #0A3A7F;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 33, 105, 0.3);
}

.login-button:active { transform: translateY(0); }

.login-links { text-align: center; margin-top: 18px; }

.login-links a {
    color: #012169;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

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

.login-footer {
    text-align: center;
    padding: 20px;
    background: #F8F9FA;
    color: #5C7A94;
    font-size: 12px;
}

@media (max-width: 768px) {
    body { padding: 10px; }
    .login-container { max-width: 100%; }
    .login-header { padding: 30px 20px; }
    .login-header img { max-width: 220px; }
    .login-body { padding: 30px 20px; }
    .login-title { font-size: 22px; }
    .login-subtitle { font-size: 13px; }
}

@media (max-width: 480px) {
    .login-header { padding: 24px 16px; }
    .login-header img { max-width: 180px; }
    .login-body { padding: 24px 16px; }
    .login-title { font-size: 20px; }
    .form-group input { padding: 10px 12px; font-size: 14px; }
    .login-button { padding: 12px; font-size: 15px; }
}
