/* stile_form.css - per login e registrazione */
body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #222;
    line-height: 1.7;
    margin: 20px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

form {
    max-width: 400px;
    margin: 0 auto;
    padding: 25px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

    form label {
        display: block;
        margin-bottom: 6px;
        font-weight: bold;
    }

    form input[type="text"],
    form input[type="email"],
    form input[type="password"] {
        width: 100%;
        padding: 10px 12px;
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
        font-size: 14px;
    }

    form input[type="checkbox"] {
        margin-right: 8px;
    }

    form button {
        width: 100%;
        padding: 12px;
        background-color: #007bff;
        color: #fff;
        font-size: 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        form button:hover {
            background-color: #0056b3;
        }

.errore {
    color: #b00020;
    background-color: #fdd;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #b00020;
    border-radius: 4px;
}

.flash-success {
    color: #155724;
    background-color: #d4edda;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

a {
    color: #007bff;
    text-decoration: underline;
}

    a:hover {
        color: #0056b3;
    }

.form-footer {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
}

    .form-footer a {
        color: #007bff;
        text-decoration: underline;
    }

        .form-footer a:hover {
            color: #0056b3;
        }

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    background: #f5f7fa;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

    .login-box h2 {
        margin-bottom: 20px;
        text-align: center;
    }

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 14px;
        margin-bottom: 5px;
    }

    .form-group input {
        width: 100%;
        padding: 12px;
        border-radius: 8px;
        border: 1px solid #ddd;
        font-size: 15px;
    }

        .form-group input:focus {
            border-color: #2c3e50;
            outline: none;
        }

.password-wrapper {
    position: relative;
}

    .password-wrapper .toggle {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        font-size: 14px;
    }

.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #2c3e50;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

    .btn-login:hover {
        background: #1a252f;
    }

.errore {
    background: #ffe5e5;
    color: #c0392b;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.form-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

    .form-footer a {
        color: #2c3e50;
        text-decoration: none;
        font-weight: bold;
    }

.login-page {
    min-height: 70vh; /* meno alto, rimpicciolisce lo sfondo verticale */
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
}

.login-card {
    background: white;
    padding: 10px 10px;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

    .login-header img {
        height: 50px;
        margin-bottom: 10px;
    }

    .login-header h2 {
        margin: 5px 0;
        font-size: 22px;
    }

    .login-header p {
        color: #666;
        font-size: 14px;
    }

.form-group {
    margin-bottom: 15px;
}

    .form-group input {
        width: 100%;
        padding: 14px;
        border-radius: 10px;
        border: 1px solid #ddd;
        font-size: 15px;
        transition: 0.2s;
    }

        .form-group input:focus {
            border-color: #4ca1af;
            box-shadow: 0 0 0 2px rgba(76,161,175,0.2);
            outline: none;
        }

.password-wrapper {
    position: relative;
}

    .password-wrapper span {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        opacity: 0.6;
    }

.btn-main {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4ca1af, #2c3e50);
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

    .btn-main:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

.errore {
    background: #ffe5e5;
    color: #c0392b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

.links {
    margin-top: 15px;
    text-align: center;
}

    .links a {
        color: #2c3e50;
        text-decoration: none;
        font-weight: 500;
    }

    .links.small {
        font-size: 13px;
        color: #777;
    }
.form-group .checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-inline input {
    width: auto;
    margin: 0;
}