# Yuga Login Form

Modern WordPress login/registration plugin with a customizable frontend form, Gutenberg block, and rich admin options.

## Features
- **Customizable login & registration form** via `[yuga-login-form]` shortcode and Gutenberg block with tabbed UI (Login/Register/Forgot) and AJAX submit.
- **Redirect & replacement logic**: configurable after login/logout/registration; optional replacement that hides `wp-login.php` and `wp-admin` from guests (404) and uses your custom login URL.
- **Language selection**: Auto (WP locale) or explicit EN/IT/FR/ES/DE for the form.
- **Styling/graphics**: colors, shapes (square/soft/rounded), alignment, container shadow, hover inversion; logo upload/alignment/size with live preview for both default form and WP-login replacement; custom background image/color/size for WP-login page.
- **reCAPTCHA v2/v3** with key masking and version selector.
- **Coming Soon / Maintenance mode**: redirect visitors to a chosen page; optional exclusion of the login page.
- **Registered users list**: admin page with name/surname/email/roles/registration date and CSV/XLS export (filename based on site slug); optional role filter.
- **Advanced admin options**: limit wp-admin to selected roles with custom redirect; show/hide registration tab when using WP-login replacement; per-role access control; inline reset buttons per tab.
- **Admin UI**: tabbed sections (Settings, Style, reCAPTCHA, WordPress Login, Coming Soon) with sidebar navigation and shortcode helper.
- **Misc**: password strength meter, color pickers, media picker.

## Shortcode
```
[yuga-login-form]
```
Place it in pages/posts/widgets or use the Gutenberg block “Yuga Login Form”.

## Admin Pages
- **Settings**: logo, registration fields (first/last name), redirects, language, visibility.
- **Style**: button colors/text, container styles, alignment, shapes, shadow.
- **reCAPTCHA**: v2/v3 keys, version selector.
- **Login WordPress**: replace `wp-login.php`, custom login URL, dedicated redirects, login logo/background/language, registration toggle, wp-admin role restriction with custom redirect.
- **Coming Soon**: enable/disable, target URL, exclude login page.
- **User list**: table + export (CSV/XLS), optional role filter.

## Notes
- When replacing `wp-login.php`, set a valid “URL personalizzato login” pointing to a page containing `[yuga-login-form]`; without it the replacement is disabled to avoid lockout.
- The replacement hides `wp-login.php` and guest access to `wp-admin` (404) and uses the custom login URL for all flows.
- Admins are always allowed into wp-admin; other roles follow the configured restriction list/redirect.
- After enabling Coming Soon, unauthenticated visitors are redirected to the chosen URL; optionally allow the login page.

## Minimum Requirements
- WordPress 5.8+
- PHP 7.4+
