/* ==========================================================================
   PT Business Directory — Branded Login Page (Medium Theme)
   Replaces default WordPress login styling with the plugin's Medium palette.
   ========================================================================== */

:root {
    --pt-login-bg-color: #eeeeee;
    --pt-login-bg-image: none;
    --pt-login-surface: #f5f5f5;
    --pt-login-surface-2: #e8e8e8;
    --pt-login-text: #1a1a1a;
    --pt-login-text-muted: #6e6e6e;
    --pt-login-border: #cccccc;
    --pt-login-border-focus: #444444;
    --pt-login-accent: #2a2a2a;
    --pt-login-accent-hover: #1a1a1a;
    --pt-login-radius: 10px;
    --pt-login-radius-lg: 16px;
    --pt-login-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --pt-login-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --pt-login-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --pt-login-transition: 0.18s ease;
}

/* --------------------------------------------------------------------------
   Background
   -------------------------------------------------------------------------- */
body.login.pt-bd-branded-login {
    background-color: var(--pt-login-bg-color) !important;
    background-image: var(--pt-login-bg-image) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    font-family: var(--pt-login-font) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Logo / Branding Area
   -------------------------------------------------------------------------- */
body.login.pt-bd-branded-login #login h1 a {
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: var(--pt-login-text) !important;
    text-indent: 0 !important;
    letter-spacing: -0.03em;
    line-height: 1.2;
    padding-bottom: 12px;
    margin-bottom: 0;
}

body.login.pt-bd-branded-login #login h1 {
    margin-bottom: 8px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Login Form Container
   -------------------------------------------------------------------------- */
body.login.pt-bd-branded-login #loginform,
body.login.pt-bd-branded-login #registerform,
body.login.pt-bd-branded-login #lostpasswordform {
    background: var(--pt-login-surface) !important;
    border: 1px solid var(--pt-login-border) !important;
    border-radius: var(--pt-login-radius-lg) !important;
    box-shadow: var(--pt-login-shadow-lg) !important;
    padding: 30px 28px !important;
    margin-top: 8px !important;
}

/* --------------------------------------------------------------------------
   Form Labels
   -------------------------------------------------------------------------- */
body.login.pt-bd-branded-login #loginform label,
body.login.pt-bd-branded-login #registerform label,
body.login.pt-bd-branded-login #lostpasswordform label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--pt-login-text) !important;
    letter-spacing: 0;
}

body.login.pt-bd-branded-login #loginform label[for="rememberme"],
body.login.pt-bd-branded-login .forgetmenot label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--pt-login-text-muted) !important;
}

/* --------------------------------------------------------------------------
   Input Fields
   -------------------------------------------------------------------------- */
body.login.pt-bd-branded-login #loginform input[type="text"],
body.login.pt-bd-branded-login #loginform input[type="password"],
body.login.pt-bd-branded-login #registerform input[type="text"],
body.login.pt-bd-branded-login #registerform input[type="email"],
body.login.pt-bd-branded-login #lostpasswordform input[type="text"] {
    background: #ffffff !important;
    border: 1.5px solid var(--pt-login-border) !important;
    border-radius: var(--pt-login-radius) !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: var(--pt-login-text) !important;
    height: auto !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    transition: border-color var(--pt-login-transition), box-shadow var(--pt-login-transition) !important;
    width: 100% !important;
    margin-top: 4px !important;
}

body.login.pt-bd-branded-login #loginform input[type="text"]:focus,
body.login.pt-bd-branded-login #loginform input[type="password"]:focus,
body.login.pt-bd-branded-login #registerform input[type="text"]:focus,
body.login.pt-bd-branded-login #registerform input[type="email"]:focus,
body.login.pt-bd-branded-login #lostpasswordform input[type="text"]:focus {
    border-color: var(--pt-login-border-focus) !important;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08) !important;
    outline: none !important;
}

/* --------------------------------------------------------------------------
   Password Visibility Toggle
   -------------------------------------------------------------------------- */
body.login.pt-bd-branded-login .wp-pwd .button.wp-hide-pw {
    background: transparent !important;
    border: none !important;
    color: var(--pt-login-text-muted) !important;
    box-shadow: none !important;
    height: auto !important;
    padding: 6px 10px !important;
    min-height: unset !important;
}

body.login.pt-bd-branded-login .wp-pwd .button.wp-hide-pw:hover {
    color: var(--pt-login-text) !important;
}

body.login.pt-bd-branded-login .wp-pwd {
    position: relative;
}

/* --------------------------------------------------------------------------
   Remember Me Checkbox
   -------------------------------------------------------------------------- */
body.login.pt-bd-branded-login .forgetmenot {
    margin-top: 12px !important;
}

body.login.pt-bd-branded-login .forgetmenot input[type="checkbox"] {
    border-radius: 4px !important;
    border-color: var(--pt-login-border) !important;
    width: 16px !important;
    height: 16px !important;
}

body.login.pt-bd-branded-login .forgetmenot input[type="checkbox"]:checked {
    background-color: var(--pt-login-accent) !important;
    border-color: var(--pt-login-accent) !important;
}

/* --------------------------------------------------------------------------
   Login Button
   -------------------------------------------------------------------------- */
body.login.pt-bd-branded-login #wp-submit,
body.login.pt-bd-branded-login .submit .button-primary {
    background: var(--pt-login-accent) !important;
    border: none !important;
    border-radius: var(--pt-login-radius) !important;
    color: #f5f5f5 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    width: 100% !important;
    text-shadow: none !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 8px rgba(0,0,0,0.10) !important;
    height: auto !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    transition: background var(--pt-login-transition), box-shadow var(--pt-login-transition), transform var(--pt-login-transition) !important;
    margin-top: 16px !important;
    float: none !important;
    display: block !important;
}

body.login.pt-bd-branded-login #wp-submit:hover,
body.login.pt-bd-branded-login .submit .button-primary:hover {
    background: var(--pt-login-accent-hover) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 16px rgba(0,0,0,0.15) !important;
    transform: translateY(-1px);
}

body.login.pt-bd-branded-login #wp-submit:active,
body.login.pt-bd-branded-login .submit .button-primary:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.18) !important;
}

body.login.pt-bd-branded-login .submit {
    float: none !important;
    clear: both !important;
}

/* --------------------------------------------------------------------------
   Links Below Form
   -------------------------------------------------------------------------- */
body.login.pt-bd-branded-login #nav,
body.login.pt-bd-branded-login #backtoblog {
    text-align: center !important;
    padding: 0 !important;
    margin-top: 12px !important;
}

body.login.pt-bd-branded-login #nav a,
body.login.pt-bd-branded-login #backtoblog a {
    color: var(--pt-login-text-muted) !important;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: color var(--pt-login-transition) !important;
}

body.login.pt-bd-branded-login #nav a:hover,
body.login.pt-bd-branded-login #backtoblog a:hover {
    color: var(--pt-login-text) !important;
}

/* --------------------------------------------------------------------------
   Messages / Notices
   -------------------------------------------------------------------------- */
body.login.pt-bd-branded-login .message,
body.login.pt-bd-branded-login #login_error {
    border-radius: var(--pt-login-radius) !important;
    border-left: 4px solid var(--pt-login-accent) !important;
    background: var(--pt-login-surface) !important;
    color: var(--pt-login-text) !important;
    box-shadow: var(--pt-login-shadow) !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
    margin-bottom: 16px !important;
}

body.login.pt-bd-branded-login #login_error {
    border-left-color: #555555 !important;
}

body.login.pt-bd-branded-login .message a,
body.login.pt-bd-branded-login #login_error a {
    color: var(--pt-login-accent) !important;
    font-weight: 600 !important;
}

/* --------------------------------------------------------------------------
   Privacy Policy Link
   -------------------------------------------------------------------------- */
body.login.pt-bd-branded-login .privacy-policy-page-link {
    text-align: center;
    margin-top: 16px;
}

body.login.pt-bd-branded-login .privacy-policy-page-link a {
    color: var(--pt-login-text-muted) !important;
    font-size: 12px !important;
}

/* --------------------------------------------------------------------------
   Two-Factor / Interim Login
   -------------------------------------------------------------------------- */
body.login.pt-bd-branded-login .interim-login #loginform {
    margin-top: 0 !important;
}

/* --------------------------------------------------------------------------
   Login Container Width
   -------------------------------------------------------------------------- */
body.login.pt-bd-branded-login #login {
    width: 380px !important;
    max-width: 90vw !important;
    padding: 0 16px !important;
}

/* --------------------------------------------------------------------------
   Language Switcher
   -------------------------------------------------------------------------- */
body.login.pt-bd-branded-login .language-switcher {
    text-align: center !important;
    margin-top: 12px !important;
}

body.login.pt-bd-branded-login .language-switcher .button {
    background: var(--pt-login-surface-2) !important;
    border: 1px solid var(--pt-login-border) !important;
    border-radius: var(--pt-login-radius) !important;
    color: var(--pt-login-text) !important;
    box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    body.login.pt-bd-branded-login #login {
        width: 100% !important;
    }
    body.login.pt-bd-branded-login #loginform,
    body.login.pt-bd-branded-login #registerform,
    body.login.pt-bd-branded-login #lostpasswordform {
        padding: 24px 20px !important;
    }
}
