/* ===========================
   Reset e base
   =========================== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background-color: #fafafa;   /* Cambia colore sfondo pagina */
    font-family: 'Arial', sans-serif; /* Cambia font base */
}

/* ===========================
   Logo animato in alto a destra
   =========================== */
#headerLogo {
    position: absolute;
    top: 20px;                     
    right: 20px;                   
    font-size: clamp(80px, 10vw, 128px); 
    font-weight: bold;
    white-space: nowrap;
    z-index: 10;
}

/* ===========================
   Login wrapper (box centrale)
   =========================== */
.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    max-width: 400px;              
    margin: auto;
    padding: 40px;                 
    text-align: center;
    background-color: #fff;        
    border-radius: 12px;           
    box-shadow: none; /* <-- rimosso effetto "mockup cellulare" */
}

/* Titolo login */
.login-wrapper h1 {
    font-family: 'Arial'; 
    font-size: clamp(36px, 6vw, 56px); 
    margin-bottom: 40px;             
}

/* Form */
.login-wrapper form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Rimuove il bordo e l'ombra di default */
.login-wrapper input {
    border: 1px solid #ccc;      
    box-shadow: none;             
    outline: none;                
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Effetto focus elegante */
.login-wrapper input:focus {
    border-color: #007bff;       
    box-shadow: 0 0 5px rgba(0,123,255,0.5); 
}

/* Input */
.login-wrapper input[type="text"],
.login-wrapper input[type="password"] {
    width: 100%;
    padding: 14px;                  
    font-size: clamp(16px, 2.5vw, 20px); 
    margin-bottom: 20px;             
    border-radius: 8px;              
    border: 1px solid #ccc;          
    box-sizing: border-box;
}

/* Checkbox label */
.login-wrapper label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 2vw, 16px); 
    margin-bottom: 30px;                
}

.login-wrapper label input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

/* Bottone login */
.login-wrapper button#accedi {
    width: min(260px, 80%);
    padding: 14px 0;                  
    font-weight: 700;
    font-size: clamp(16px, 2.4vw, 22px); 
    border: none;
    border-radius: 10px;              
    background-color: #333;           
    color: #fff;                      
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
    margin-bottom: 20px;              
}

.login-wrapper button#accedi:hover {
    background-color: #555;           
    transform: scale(1.03);
}

/* Link password dimenticata */
.login-wrapper .forgot-password {
    font-size: clamp(14px, 1.6vw, 16px); 
    text-decoration: none;
    color: #333;                         
    display: block;
}

.login-wrapper .forgot-password:hover {
    text-decoration: underline;
}

/* Messaggio di errore */
.login-error {
    color: red;                        
    font-size: clamp(14px, 2vw, 16px); 
    margin-bottom: 20px;               
}

/* ===========================
   Responsive / Mobile
   =========================== */
@media only screen and (max-width: 480px) {
    #headerLogo {
        font-size: 48px;               
    }
    .login-wrapper {
        padding: 20px;                 
        max-width: 90%;                
    }
    .login-wrapper h1 {
        font-size: 36px;               
        margin-bottom: 30px;           
    }
    .login-wrapper input,
    .login-wrapper button#accedi {
        font-size: 18px;               
        padding: 12px;                 
    }
    .login-wrapper label {
        font-size: 16px;               
        margin-bottom: 25px;           
    }
}

