/**
 * Custom Login Page Styles - Specific to Login/Register/Lost Password Forms
 * File: assets/css/login-style.css
 */

/* Default #login container adjustments (Only keep styles specific to #login itself) */
#login {
    width: 100%; /* Take full width of the form column */
    max-width: 360px; /* Limit max width for better readability */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margins */
    background: transparent; /* Make transparent */
    border: none; /* Remove default border */
    box-shadow: none; /* Remove default shadow */
    position: relative; /* Ensure it's above background */
    z-index: 1;
}

/* Hide the default logo/header link if present */
#login h1,
#login h1 a {
    display: none; /* Hide the default logo area */
}

/* Form Styling - Apply to all forms within #login */
#login form { /* Generalize from #loginform */
    margin: 0;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    border-radius: var(--aibookgen-border-radius, 4px);
    padding: 30px;
}

/* Label Styling - Apply to all forms */
#login form label {
    color: rgba(255, 255, 255, 0.7); /* Light text for dark background */
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Input Field Styling - Apply to all forms */
#login form input[type="text"],
#login form input[type="password"],
#login form input[type="email"],
#login form input[type="number"],
#login form input[type="url"],
#login form input[type="search"],
#login form input[type="tel"] {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: var(--aibookgen-border-radius, 4px);
    width: 100%;
    box-sizing: border-box;
    /* Ensure WP core styles for padding/margin/height apply */
}

#login form input[type="text"]:focus,
#login form input[type="password"]:focus,
#login form input[type="email"]:focus,
#login form input[type="number"]:focus,
#login form input[type="url"]:focus,
#login form input[type="search"]:focus,
#login form input[type="tel"]:focus {
    border-color: var(--aibookgen-color-primary, #007cba); /* Use a theme color for focus */
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 1px var(--aibookgen-color-primary, #007cba); /* WP default focus style */
    outline: none;
}

/* Style message paragraphs within forms (e.g., lost password instructions) */
#login form p.message {
     color: rgba(255, 255, 255, 0.8);
     border-left-color: var(--aibookgen-color-primary, #007cba); /* Match WP style */
     margin-bottom: 16px;
}

/* Style registration-specific elements */
#registerform p.message {
     margin-bottom: 16px;
}

/* Style the password visibility toggle */
.wp-pwd .button.wp-hide-pw {
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    margin-left: 4px;
}
.wp-pwd .button.wp-hide-pw:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}
.wp-pwd .button.wp-hide-pw .dashicons {
    color: rgba(255, 255, 255, 0.7);
}

/* Remember Me Checkbox (Login specific, keep selector) */
.forgetmenot label {
    color: rgba(255, 255, 255, 0.7);
}
.forgetmenot input[type="checkbox"] {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}
.forgetmenot input[type="checkbox"]:checked::before {
    color: var(--aibookgen-color-primary, #007cba);
}

/* Submit Button - Target all submit buttons within login forms */
#login form .submit input[type="submit"],
#login form input[type="submit"],
#login form button[type="submit"] { /* Cover different button markup */
    width: auto; /* Allow button to size based on content + padding */
    background-color: var(--aibookgen-color-primary, #007cba);
    color: var(--aibookgen-color-white, #fff);
    border: none;
    border-radius: var(--aibookgen-border-radius, 3px); /* WP default is often 3px */
    text-shadow: none;
    box-shadow: none;
    transition: background-color 0.2s ease-in-out;
    /* Ensure other WP default button styles apply (padding, height, etc.) */
    /* We override only background, color, border, radius, shadows */
    cursor: pointer;
}

#login form .submit input[type="submit"]:hover,
#login form input[type="submit"]:hover,
#login form button[type="submit"]:hover {
    background-color: var(--aibookgen-color-primary-hover, #005a87);
}

/* Below Form Links (Lost Password, Back to Site) */
#nav,
#backtoblog {
    margin: 20px 0 0 0;
    padding: 0;
    text-align: center; /* Center links */
}

#nav a,
#backtoblog a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

#nav a:hover,
#backtoblog a:hover {
    color: #ffffff;
}

#backtoblog {
    padding-top: 15px; /* Add space above back to site link */
}

/* NOTE: Responsive styles for the layout itself were moved to split-layout.css */
/* Keep only responsive styles specific to #login form elements if needed */
@media (max-width: 782px) {
    #login {
        max-width: none; /* Allow form to take full width on mobile */
    }
} 