/* ==============================
   STILE GENERALE DELLA PAGINA LOGIN
   ============================== */

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #ffecd2, #fcb69f); /* Gradiente di sfondo */
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* Animazione per lo sfondo */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==============================
   CONTENITORE PRINCIPALE DEL LOGIN
   ============================== */

.login-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box;
}

/* Logo */
.logo img {
    max-width: 100px;
    margin-bottom: 15px;
}

/* Titolo della pagina */
.page-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

/* Messaggio di errore */
.error-message {
    color: #ff4d4d;
    font-weight: bold;
    background-color: #ffe6e6;
    border: 1px solid #ffcccc;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

/* ==============================
   STILI FORM DI LOGIN
   ============================== */

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

/* Label */
.form-group label {
    font-size: 14px;
    font-weight: bold;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

/* Campi input */
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease-in-out;
}

/* Focus sugli input */
.form-group input:focus {
    border-color: #007bff;
    outline: none;
}

/* ==============================
   SEZIONE PASSWORD CON OCCHIO VISUALIZZA/NASCONDI
   ============================== */

/* Contenitore campo password */
.password-container {
    display: flex;
    align-items: center;
    position: relative;
}

/* Input password */
.password-container input {
    width: 100%;
    padding-right: 40px;
}

/* Icona occhio */
.password-container .toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

/* ==============================
   STILE PULSANTE LOGIN
   ============================== */

.btn-login {
    background-color: #007bff;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

.btn-login:hover {
    background-color: #0056b3;
}

/* ==============================
   RECAPTCHA
   ============================== */

.recaptcha-container {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

/* ==============================
   RESPONSIVE DESIGN
   ============================== */

@media (max-width: 480px) {
    .login-container {
        padding: 20px;
    }

    .btn-login {
        font-size: 14px;
        padding: 10px;
    }

    .page-title {
        font-size: 18px;
    }
}
