=== LevelNetwork Custom Login Protector ===
Contributors: sonofgod80
Tags: security, login, hide login, custom login, protect wp-admin
Requires at least: 5.4
Tested up to: 7.0
Requires PHP: 7.2
Stable tag: 1.2.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Protects your website by changing the login URL, blocking default access, and allowing login page customization with pre-defined layouts.

== Description ==

**LevelNetwork Custom Login Protector** is a lightweight yet powerful security and customization plugin for WordPress. It secures your website by hiding the default `wp-login.php` and `wp-admin` pages from unauthorized access, brute-force attacks, and malicious bots. In addition to security, it allows you to completely rebrand your login screen to match your identity.

= Key Features =
* **Hide Default Login:** Change the default WordPress login URL to a custom, secret slug of your choice.
* **Block Unauthorized Access:** Automatically redirect any direct attempts to access `wp-login.php` or the `wp-admin` directory (for non-logged-in users) to a specific URL (e.g., your 404 page or homepage).
* **Login Page Customization:** Choose from 11 pre-designed layouts (e.g., Cyberpunk, Neumorphic, Frosted Glass, Geometric, Minimalist).
* **Custom Logo:** Easily upload or select a custom logo to replace the default WordPress branding.
* **Custom CSS:** Add your own CSS rules to further tweak the design and background images of the login page.
* **Lightweight:** Optimized for performance, ensuring your site speed remains completely unaffected.

== Installation ==

1. Upload the `levelnetwork-custom-login-protector` directory to your `/wp-content/plugins/` directory, or install it directly through the WordPress plugins screen.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to **Settings > Login Protector** in your WordPress admin dashboard.
4. Set your new Custom Login URL, choose your redirect slug for blocked attempts, and select your favorite layout.
5. Save the settings.
6. **Important:** Remember to bookmark your new login URL!

== Frequently Asked Questions ==

= What happens if I forget my custom login URL and get locked out? =
If you forget your custom login URL, you can easily regain access via FTP or your hosting control panel's File Manager. Navigate to the `wp-content/plugins/` directory and rename the folder `levelnetwork-custom-login-protector` to something else (e.g., `levelnetwork-custom-login-protector-disabled`). This will instantly deactivate the plugin and restore the default `wp-login.php` URL.

= Do I need to update my permalinks after saving? =
Yes. After setting a new login URL or changing an existing one, it is highly recommended to go to **Settings > Permalinks** and simply click the "Save Changes" button to safely flush the WordPress rewrite rules.

= Is this plugin compatible with caching plugins? =
Absolutely. However, to prevent login loops or cached nonces, you must ensure your new custom login URL slug is excluded from being cached in your caching plugin's settings (e.g., WP Rocket, LiteSpeed Cache, W3 Total Cache).

== Screenshots ==

1. The main settings panel for URL configuration and Redirection.
2. The customization panel where you can select out of 11 distinct login layouts.
3. Example layout: Cyberpunk.
4. Example layout: Animated Gradient.
5. Example layout: Minimalist.

== Changelog ==

= 1.2.4 =
* UI/UX: Completely redesigned the Admin Settings page with a modern, responsive two-column layout.
* UI/UX: Improved the Layout Selector with a better visual grid and clearer active states.
* Enhancement: Added a new sidebar with quick links to Documentation, Developer resources, and community support.
* Enhancement: Moved admin inline styles to a dedicated CSS file (`lnclp-admin-settings.css`) for better performance and cleaner code.
* Maintenance: Renamed the main plugin file and the `.pot` translation file to strictly align with WordPress.org directory slug requirements.

= 1.2.3 =
* Enhancement: Rebranded to "LevelNetwork Custom Login Protector" to comply with WordPress.org directory guidelines.
* Enhancement: Updated text domains to `levelnetwork-custom-login-protector` and all internal prefixes to `LNCLP_`.
* Enhancement: Removed deprecated `load_plugin_textdomain` logic, leveraging native WordPress translation loading.
* Fix: Addressed PHP_CodeSniffer (WPCS) warnings regarding nonce verification on whitelisted actions.
* Fix: Corrected translator comments formatting for localized strings containing placeholders.

= 1.2.2 =
* Minor bug fixes and performance improvements.

= 1.2.1 =
* Initial public release with core URL protection and 11 premium layouts.