/**
 * SkyAdmin Login Page Styles
 *
 * Custom styling for WordPress login page when SkyAdmin is active.
 * Provides a branded, modern login experience.
 *
 * @package SkyBooking
 * @subpackage SkyAdmin
 * @since 1.1.0
 */

/* Base styling is applied inline via PHP for dynamic colors */
/* This file provides additional enhancements */

body.login {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Center the login form vertically */
body.login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

/* Login box styling */
.login #login {
    padding: 20px 0;
}

.login form {
    padding: 26px 24px;
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 
        0 4px 6px -1px rgb(0 0 0 / 0.1), 
        0 2px 4px -2px rgb(0 0 0 / 0.1),
        0 0 0 1px rgb(0 0 0 / 0.05);
}

/* Logo area */
.login h1 a {
    background-position: center center;
    margin-bottom: 20px;
}

/* Form labels */
.login form .forgetmenot label {
    font-size: 14px;
}

/* Input fields */
.login input[type="text"],
.login input[type="password"] {
    font-size: 16px;
    padding: 10px 12px;
    height: auto;
    margin-top: 8px;
}

/* Submit button */
.login .button-primary {
    width: 100%;
    height: auto;
    padding: 12px 20px;
    font-size: 16px;
    margin-top: 10px;
    transition: all 0.2s ease;
}

/* Links styling */
.login #nav,
.login #backtoblog {
    margin: 16px 0;
    padding: 0;
    font-size: 14px;
}

.login #nav a,
.login #backtoblog a {
    transition: color 0.2s ease;
}

/* Error/info messages */
.login .message,
.login .success,
.login #login_error {
    border-radius: 8px;
    border-left-width: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.login .message {
    background: #f0f9ff;
    border-left-color: #0284c7;
}

.login .success {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.login #login_error {
    background: #fef2f2;
    border-left-color: #ef4444;
}

/* Remember me checkbox */
.login .forgetmenot {
    margin-bottom: 8px;
}

/* Password strength meter */
.login .pw-weak,
.login .pw-bad {
    background-color: #fef2f2;
}

.login .pw-good,
.login .pw-strong {
    background-color: #f0fdf4;
}

/* Mobile responsive */
@media screen and (max-width: 480px) {
    .login #login {
        padding: 10px 15px;
    }
    
    .login form {
        padding: 20px;
    }
    
    .login h1 a {
        width: 150px;
    }
}

/* Privacy policy link */
.login .privacy-policy-page-link {
    text-align: center;
    margin-top: 16px;
}

.login .privacy-policy-page-link a {
    font-size: 13px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.login .privacy-policy-page-link a:hover {
    opacity: 1;
}

/* Language switcher */
.login .language-switcher {
    text-align: center;
    margin-top: 10px;
}

/* Shake animation for errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.login #login_error {
    animation: shake 0.5s ease-in-out;
}

/* Loading state */
.login .button-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Focus states for accessibility */
.login input:focus,
.login .button:focus {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0284c7;
}
