/* =============================================
   TrackStar — Branded WP Login Page
   Page background inherits from active theme.
   Box uses TrackStar Style Color, button uses
   TrackStar Button Color (injected as CSS vars).
   h1 + form styled as one seamless box.
   ============================================= */

/* Remove all default spacing between h1 and form */
.login h1 {
    margin: 0 auto !important;
    padding: 0 !important;
    max-width: 320px;
}

.login h1 a {
    background-image: none !important;
    background-color: var(--ts-login-bg-color, #2563eb) !important;
    text-indent: 0 !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    color: #ffffff !important;
    letter-spacing: 1px;
    text-decoration: none !important;
    pointer-events: none;
    padding: 24px 24px 16px !important;
    margin: 0 !important;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Login form container — dark WP admin tone, seamless with h1 above */
.login form {
    background: var(--ts-login-form-color, #1d2327) !important;
    border: none !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3) !important;
    padding: 16px 24px 26px !important;
    margin-top: 0 !important;
}

/* Labels */
.login label {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px !important;
}

/* Input fields */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    transition: border-color 0.3s ease !important;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
    outline: none !important;
}

/* Submit button — uses TrackStar Button Color */
.login .button-primary {
    background: var(--ts-login-button-color, #2563eb) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 8px 20px !important;
    text-shadow: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.login .button-primary:hover,
.login .button-primary:focus {
    filter: brightness(1.15) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Remember me checkbox label */
.login .forgetmenot label {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Show/hide password toggle */
.login .wp-hide-pw {
    color: rgba(255, 255, 255, 0.7) !important;
}

.login .wp-hide-pw .dashicons {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Caps lock warning */
.login .caps-warning svg {
    fill: rgba(255, 255, 255, 0.5) !important;
    stroke: rgba(255, 255, 255, 0.5) !important;
}

/* Links below form */
.login #nav,
.login #backtoblog {
    text-align: center !important;
}

.login #nav a,
.login #backtoblog a {
    color: var(--ts-login-bg-color, #2563eb) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    filter: brightness(1.3) !important;
}

/* Messages (errors, success) */
.login .message,
.login .success {
    background: rgba(0, 0, 0, 0.05) !important;
    border-left-color: var(--ts-login-bg-color, #2563eb) !important;
    border-radius: 8px !important;
}

.login #login_error {
    background: rgba(220, 20, 60, 0.08) !important;
    border-left-color: #dc143c !important;
    color: #dc143c !important;
    border-radius: 8px !important;
}

/* Blend .notice.message into themed box on all wp-login.php pages.
   WP 6.4+ uses wp_get_admin_notice() → <div class="notice notice-info message"><p>...</p></div>.
   Appears on lostpassword, rp/resetpass between h1 and form. */
.login .notice.message {
    background: var(--ts-login-form-color, #1d2327) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 auto !important;
    padding: 12px 24px !important;
    box-shadow: none !important;
    max-width: 320px;
}

.login .notice.message p {
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 !important;
}

/* Remove h1 bottom border on pages with a message between header and form */
.login-action-rp h1 a,
.login-action-resetpass h1 a,
.login-action-lostpassword h1 a {
    border-bottom: none !important;
}

/* Password strength meter area */
.login .pw-weak label {
    color: #666666 !important;
}

/* Language switcher (if present) */
.language-switcher {
    display: none !important;
}

/* Privacy policy link */
.login .privacy-policy-page-link a {
    color: #666666 !important;
}
