=== Effortless Personalized Login Logo ===
Contributors: domclic
Tags: login, logo, admin, customization, media
Requires at least: 5.5
Tested up to: 6.9
Requires PHP: 7.2
Stable tag: 1.0.12
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Easily customize the WordPress login logo by selecting an image from your media library. Lightweight and multisite compatible.

== Description ==

This plugin allows you to change the default WordPress login screen logo with your own logo, selected from the media library. No coding required.

= Features =
* Choose a logo from the WordPress media library
* Automatically applies the correct size and styling
* Works with WordPress 6.5+ markup
* Keeps the login screen clean and branded
* Compatible with multisite

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`.
2. Activate the plugin through the "Plugins" menu in WordPress.
3. Set your Site Logo:
   * **Classic themes:** Go to Appearance → Customize → Site Identity.
   * **Block themes (e.g. Twenty Twenty-Five):** The Customizer is no longer reachable via the menu. Go directly to `/wp-admin/customize.php`, then open Site Identity.
4. Your logo will automatically appear on the login screen.

== Frequently Asked Questions ==

= What size should the logo be? =
A horizontal logo around 320px wide and 100px tall works best, but any image will be resized to fit.

= I am using a block theme and cannot find Appearance → Customize. How do I set the logo? =
With block themes (such as Twenty Twenty-Five), WordPress removes the Customize menu item from the UI — this applies to both single-site and multisite installations. The Customizer itself is still functional: navigate directly to `/wp-admin/customize.php` in your browser, open the Site Identity panel, and upload your Site Logo there. The plugin will pick it up automatically.

= Does this plugin affect the admin dashboard logo? =
No, it only changes the logo on the `/wp-login.php` and logout screens.

= Will it break with future WordPress updates? =
It is compatible with the latest login screen markup (as of WP 6.5), and fallback CSS can be added for older versions.

== Changelog ==

= 1.0.12 =
* Fixed: Logo CSS now overrides all relevant WordPress core login styles (`background-size`, `background-repeat`, `background-position`, `width`, `height`) with `!important` so our styles win in every theme and WP version.
* Fixed: Added `width: 320px !important` and `max-width: 100% !important` to prevent wide logos from overflowing the login box on narrow viewports.
* Docs: FAQ block-theme entry now explicitly notes the Customizer menu absence applies to multisite installations as well.
* Code: Added inline comment explaining priority 99 on `login_enqueue_scripts`.

= 1.0.11 =
* Docs: Clarified installation instructions and added FAQ entry for block themes (e.g. Twenty Twenty-Five), where Appearance → Customize is not accessible via the menu — users can reach it directly at `/wp-admin/customize.php`.

= 1.0.10 =
* Improved: Enqueue login CSS via `wp_add_inline_style()` and login-prompt JS via `wp_add_inline_script()` instead of emitting raw `<style>` / `<script>` tags (WordPress best practice)
* Improved: Login-prompt notice now builds DOM nodes via `createElement` / `textContent` instead of `innerHTML` for safer output
* Added: `EFFOPELO_VERSION` constant used for asset cache-busting

= 1.0.9 =
* Fixed: Updated installation instructions to reflect zero-config approach (no settings page since 1.0.7)
* Fixed: Code formatting to comply with WordPress coding standards

= 1.0.8 =
* Added: Subtle prompt on login page to set site logo if none is configured

= 1.0.7 =
* Changed: Now automatically uses the Site Logo from Appearance → Customize → Site Identity (no settings needed)

= 1.0.6 =
* Fixed: Replaced ABSPATH with WP_UNINSTALL_PLUGIN constant in uninstall.php

= 1.0.5 =
* Fixed: Removed redundant delete_option() from uninstall script

= 1.0.4 =
* Added: uninstall.php to properly clean up settings on plugin deletion

= 1.0.3 =
* Added: ABSPATH direct access protection
* Updated: Tested up to WordPress 6.9

= 1.0.2 =
* Improved: Removed redundant trim() call and simplified conditional logic
* Improved: Simplified attachment_id logic (no longer needs ternary)

= 1.0.1 =
* Security: Added CSRF protection to settings form
* Improved: Better CSS specificity (removed unnecessary !important rules)
* Improved: Logo height now scales properly with max-height constraint
* Added: i18n support for translations

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.12 =
CSS fix: logo now reliably overrides WordPress core styles and is constrained to 320px wide on desktop, responsive on mobile. Recommended upgrade.

= 1.0.11 =
Documentation update for block theme users: clarifies how to set the Site Logo when Appearance → Customize is not available in the menu.

= 1.0.10 =
Refactor to properly enqueue login CSS and JS via WordPress core APIs. No user-facing changes.

= 1.0.9 =
Documentation and code formatting fixes. No functional changes.

= 1.0.8 =
Subtle prompt added to login page when no site logo is set.

= 1.0.7 =
Now auto-uses Site Logo from Customizer — no configuration needed.

= 1.0.6 =
Fixed uninstall.php to use WP_UNINSTALL_PLUGIN constant.

= 1.0.5 =
Cleanup of uninstall script.

= 1.0.4 =
Proper cleanup of settings on plugin deletion.

= 1.0.3 =
ABSPATH protection added and tested up to WP 6.9.

= 1.0.2 =
Code cleanup and minor logic simplifications.

= 1.0.1 =
Security and i18n improvements. Upgrade recommended.

= 1.0.0 =
First stable version. Compatible with WordPress 6.5 login layout.
