/* Stile generale */
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra il form verticalmente */
    background-image: url('.././style/rullino/vetrina.jpg'); /* Immagine di sfondo */
    background-size: cover;  
    background-position: center; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    width: 100vw; 
}

/* Contenitore logo */
.logo-container {
    top: 20px;
    display: block;
    margin: 0 auto;
    width: 80%;
    max-width: 150px;
    margin-bottom: 20px;
}

.logo-container img {
    width: auto;
    max-width: 140px;
    height: auto;
    justify-content: center;
}

/* Contenitore principale del form */
.container {
     margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 50px;
}

/* Titolo */
h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Testo descrittivo */
p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

/* Stili per etichette e input */
label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-weight: normal;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: #f5f5f5;
    box-sizing: border-box;
}

/* Bottone principale */
button {
    width: 100%;
    padding: 12px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

button:hover {
    background-color: #333;
}

/* Bottone di riprova */
#retryButton {
    display: none;
    width: 100%;
    padding: 12px;
    background-color: #666;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
}

#retryButton:hover {
    background-color: #888;
}

/* Messaggio di errore/successo */
#message {
    display: none;
    margin-top: 15px;
    font-weight: bold;
}

.form-container {
    width: 350px; /* Imposta la larghezza desiderata per il contenitore */
    margin: 0 auto; /* Centra orizzontalmente */
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    top: 50%;
     margin-top: 50px;
}



.form-container input,
.form-container select  {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: #f5f5f5;
}

/* Bottone allineato alla grafica originale */
.form-container button {
    width: 100%;
    padding: 12px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

/* Bottone in stato hover */
.form-container button:hover {
    background-color: #333;
}

.buttons_select {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.img_sceltacapelli {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    cursor: pointer;
    transition: border 0.3s ease, transform 0.3s ease;
}

/* Nasconde i radio button */
input[type="radio"] {
    display: none;
}

/* Evidenziazione immagine selezionata */
input[type="radio"]:checked + label .img_sceltacapelli {
    border: 3px solid black;
    transform: scale(1.1);
}

/* Stili per il contenitore delle immagini cliccabili */
.img_label {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #333; /* Cambia il colore se vuoi */
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
    color: #000; /* Colore più scuro al passaggio del mouse */
}
