=== WPNordic Login Designer ===
Contributors: 		wpnordic
Donate link: 		https://wpnordic.com/plugins/login-designer/
Tags: 				custom login, login page, login designer, recaptcha, redirect
Requires at least: 	6.4
Tested up to: 		7.0
Stable tag: 		3.0.0
Requires PHP:		8.0.0
License: 			GPLv2 or later
License URI: 		http://www.gnu.org/licenses/gpl-2.0.html

Customize your WordPress login page with themes, backgrounds, branding, role-based redirects, and reCAPTCHA protection.

== Description ==

WPNordic Login Designer gives you control over your WordPress login page. Customize the design, add your own branding, set up role-based redirects, and protect your login with Google reCAPTCHA - all from an intuitive admin interface.

= Features =

* **Custom login page design** - Choose between dark and light themes with single or two-column layouts.
* **Background images** - Upload a custom background image using the WordPress media uploader.
* **Custom branding** - Add your own logo to the login page and optionally remove the default WPNordic branding.
* **Role-based redirects** - Redirect users to specific pages after login based on their user role (administrator, editor, author, contributor, subscriber, shop_manager, customer, and custom roles).
* **Logout redirect** - Set a custom redirect URL for when users log out.
* **Google reCAPTCHA** - Protect your login page with reCAPTCHA v2 (checkbox or invisible) or reCAPTCHA v3.
* **2FA compatible** - Works seamlessly with two-factor authentication plugins such as Wordfence.
* **Responsive design** - The login page looks great on all screen sizes.
* **Multisite support** - Fully compatible with WordPress multisite installations.

= Requirements =

* WordPress 6.4 or higher
* PHP 8.0 or higher

== Installation ==

= Automatic installation =

1. Log in to your WordPress admin panel and go to **Plugins > Add New**.
2. Search for **WPNordic Login Designer**.
3. Click **Install Now** and then **Activate**.

= Manual installation =

1. Download the plugin ZIP file.
2. Log in to your WordPress admin panel and go to **Plugins > Add New > Upload Plugin**.
3. Upload the ZIP file and click **Install Now**.
4. Activate the plugin.

= Setup guide =

After activation, follow these steps to configure the plugin:

1. **Open settings** - Navigate to **Login Designer** in the WordPress admin menu.
2. **Choose your layout** - Select between a single-column or two-column layout. For two-column layouts, you can adjust column sizes and order.
3. **Set a theme** - Choose between a dark or light color scheme.
4. **Upload a background image** - Click the image picker to upload or select an image from your media library.
5. **Add your branding** - Optionally upload a custom logo for the login page.
6. **Configure redirects** - Go to the **Redirects** submenu to set post-login redirect URLs for each user role, and optionally set a logout redirect URL.
7. **Enable reCAPTCHA** *(optional)* - Go to the **Integrations** submenu, choose reCAPTCHA v2 or v3, and enter your site key and secret key from [Google reCAPTCHA](https://www.google.com/recaptcha/admin).

== Frequently Asked Questions ==

= Where do I find the plugin settings? =

After activating the plugin, you will find a **Login Designer** menu item in the WordPress admin sidebar. The settings are divided into three pages: Layout, Redirects, and Integrations.

= How do I get reCAPTCHA keys? =

Visit [Google reCAPTCHA Admin](https://www.google.com/recaptcha/admin) and register your site. Choose either reCAPTCHA v2 or v3 depending on your preference, and copy the site key and secret key into the Integrations settings page.

= What is the difference between reCAPTCHA v2 and v3? =

reCAPTCHA v2 requires users to interact with a checkbox or complete a challenge. reCAPTCHA v3 works invisibly in the background and scores each login attempt without user interaction.

= Can I set different redirect URLs for different user roles? =

Yes. Go to the **Redirects** settings page and enter a custom URL for each user role. If no custom URL is set, the plugin uses sensible defaults (e.g., `/wp-admin` for administrators, `/my-account` for customers).

= Does the plugin work with two-factor authentication (2FA)? =

Yes. The plugin is designed to work alongside 2FA plugins such as Wordfence, Two-Factor and 2FA. reCAPTCHA verification is automatically skipped during the 2FA step.

= Is the plugin compatible with WooCommerce? =

Yes. The plugin includes built-in support for WooCommerce roles such as `shop_manager` and `customer` with appropriate default redirects.

== External Services ==

This plugin optionally connects to Google reCAPTCHA to protect the WordPress login form against bots and automated attacks.

= Google reCAPTCHA =

When reCAPTCHA is enabled in the plugin settings and a user submits the login form, the plugin sends the following data to Google's reCAPTCHA verification API (`https://www.google.com/recaptcha/api/siteverify`):

* The reCAPTCHA response token generated in the user's browser.
* The user's IP address.
* The plugin's secret key (never exposed to the frontend).

This data is only sent server-side when a login is attempted and reCAPTCHA is enabled with valid site key and secret key configured. No data is sent if reCAPTCHA is not enabled.

* [Google Terms of Service](https://policies.google.com/terms)
* [Google Privacy Policy](https://policies.google.com/privacy)

== Screenshots ==

== Changelog ==

= 3.0.0 - 2026-03-25 =
* Complete rebuild of the plugin with a modern React-based admin interface.
* Name changed from Custom Login, to Login Designer
* New responsive two-column login page layout option.
* Google reCAPTCHA v2 and v3 integration.
* Role-based login redirects with customizable URLs.
* Custom logout redirect support.
* Custom background image and branding options.
* Improved 2FA compatibility.

= 2.0.4 - 15/09/2025 =
* Added missing 'View details' link.
* Updated banner in the 'View details' modal.

= 2.0.3 - 11/12/2023 =
* Renamed a PHP function, that had a wrong name.

= 2.0.2 - 23/11/2023 =
* Limited admin notice only to this plugin setting page.

= 2.0.1 - 15/11/2023 =
* Changed the url of the login page to /login.
* Adjusted styling of info and errors boxes on the login page to fit the input fields.

= 2.0.0 - 11/11/2023 =
* Complete redesign of the login page.
  * Three possible themes to choose from - dark, light and light with transparency.
  * Possibility to select both logo and background image for the login page.
* Redesign of settings page.
  * Addition of tabbed contents makes the settings page easier to navigate.
  * Added option to select background image - based on the WordPress uploader.
  * Added option to select theme.
* Added relevant admin notices using add_settings_errors.
* Added show/hide functionality for password input including matching images.
* Adjusted background and box-shadow of loggedout message and error messages container to fit the new design.

= 1.4.0 - 31/10/2023 =
* Fixed link styling - removing underline.
* Updated an AJAX check to use wp_doing_ajax instead of using HTTP_X_REQUESTED_WITH.

= 1.3.2 - 14/09/2023 =
* Styling changes to the login page due to changed WPNordic logo.

= 1.3.1 - 14/09/2023 =
* Replaced old WPNordic logo.

= 1.3.0 - 14/09/2023 =
* Fixed multiple problems with the redirect handling.

= 1.2.0 - 14/09/2023 =
* Fixed a problem where logged in users would be redirected to the standard WordPress login page.

= 1.1.0 - 12/09/2023 =
* Eliminated top-page white space when logged in and the admin bar is hidden.
* Eliminated bottom-page white space on smaller screens.
* Implemented modifications for smaller screens to eliminate the need for scrolling.

= 1.0.1 - 15/05/2023 =
* Multiple minor fixes.
* Fixed problems with validation with fields were empty and there was nothing in the database.
* Added admin notices when errors occur when validating fields.
* Fixed text color for login/logout messages.

= 1.0.0 - 11/05/2023 =
* Initial release.

== Upgrade Notice ==

= 3.0.0 =
Complete rebuild with a modern admin interface, reCAPTCHA support, role-based redirects, and customizable login page design.
