=== EnLogin Variants ===
Contributors: dllister
Tags: login page, login customizer, login design, branding, captcha
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Design your login page: 5 layouts with a live preview of your real page, your brand and CAPTCHA, without replacing wp-login.php.

== Description ==

EnLogin Variants is a visual designer for the WordPress login page. Pick a layout, add your brand and see every change on your real login page while you edit. It restyles the standard page instead of replacing it, so registration, lost password and two-factor plugins keep working.

**5 login designs**

* Card – centered form on a soft background or your image.
* Split screen – brand panel with title and text, form on the side.
* Glass – frosted-glass form over a full-screen image.
* Sidebar – full-height form column next to a large image.
* Dark – dark interface with your accent color.

Customize colors, background image (with darkening), logo and its size, font, rounded corners, title, subtitle, panel texts and footer. Every change is shown instantly in a live preview of your real login page. The same design is used for registration, lost password and reset password pages. One switch turns the design on or off.

**CAPTCHA**

Protect the login, registration and lost password forms with Cloudflare Turnstile, Google reCAPTCHA v2 (checkbox) or Google reCAPTCHA v3 (invisible). Tokens are verified on your server. Nothing is enforced until both keys are saved, and one line in wp-config.php disables it in an emergency.

**Optional: custom login URL**

If you want, move the login page to an address only you know (for example `/my-access/`). Visitors who are not logged in get a 404 page (or the home page) at wp-login.php and wp-admin. All login, logout, lost password and email links are updated automatically. If you forget the address, one line in wp-config.php disables the feature.

**Works with WordPress, not against it**

The standard login page is restyled, not replaced: registration, lost password, error messages, the language selector and two-factor authentication plugins keep working.

* No fonts or styles loaded from external servers.
* Translation ready: translate it on translate.wordpress.org or with Loco Translate.

== External services ==

This plugin only connects to the services below, and only when you enable them in its settings.

**Cloudflare Turnstile** (when selected as CAPTCHA)
Used to tell humans and bots apart on the login, registration and lost password forms. The login page loads Cloudflare's script, which collects browser signals in the visitor's browser; when the form is sent, your server sends the resulting token, your secret key and the visitor's IP address to Cloudflare to verify it.
Terms: https://www.cloudflare.com/website-terms/ – Privacy: https://www.cloudflare.com/privacypolicy/

**Google reCAPTCHA** (when reCAPTCHA v2 or v3 is selected as CAPTCHA)
Same purpose and flow as above, with Google's script and verification service.
Terms: https://policies.google.com/terms – Privacy: https://policies.google.com/privacy

== Installation ==

1. Upload the `enlogin-variants` folder to `/wp-content/plugins/` or install it from Plugins › Add New.
2. Activate the plugin.
3. Go to **EnLogin Variants › Design** to choose your design.

== Frequently Asked Questions ==

= I forgot my custom login URL =

Add `define( 'LOGINVARIANTS_DISABLE_HIDE_LOGIN', true );` to wp-config.php, log in at /wp-login.php, check the address in EnLogin Variants › Security and remove the line. Renaming the plugin folder also works.

= The CAPTCHA locked me out =

Add `define( 'LOGINVARIANTS_DISABLE_CAPTCHA', true );` to wp-config.php, log in, fix the keys in EnLogin Variants › Security and remove the line.

= Does it work with two-factor authentication plugins? =

Yes, because the native login form is kept.

= Can I translate the plugin? =

Yes. All texts are translatable. Translations are managed on translate.wordpress.org, and you can also use Loco Translate with the template in `languages/enlogin-variants.pot`.

== Screenshots ==

1. Design settings with live preview.
2. The five login designs.
3. Security: custom login URL and CAPTCHA.

== Changelog ==

= 2.1.0 =
* The admin header and footer are now cards as wide as the content.
* Social login moved to the Enwebs Suite Pro add-on. Its settings and connected accounts carry over when the add-on is installed.
* Developer hooks: loginvariants_styles and loginvariants_admin_pages filters, public CAPTCHA helpers for forms shown outside wp-login.php.
* A saved design that is no longer available falls back to Card.
* The design picker shows 6 designs and scrolls for the rest.
* Menu entries that present the optional Enwebs Suite Pro add-on.

= 2.0.0 =
* Complete rewrite, renamed to EnLogin Variants.
* 5 modern designs with live preview and full customization, also on registration and password pages.
* On/off switch for the custom design.
* Secure social login for Google, Facebook, GitHub, Microsoft and LinkedIn.
* CAPTCHA with Cloudflare Turnstile or Google reCAPTCHA v2/v3.
* Custom login URL that hides wp-login.php and wp-admin.
* New admin interface and Help page.
* Translation ready (translate.wordpress.org / Loco Translate).

== Upgrade Notice ==

= 2.1.0 =
Social login is no longer part of this plugin. If you use it, install the Enwebs Suite Pro add-on before updating; your settings carry over.

= 2.0.0 =
Complete rewrite. Review your design, social login and security settings after updating.
