/* ==========================================================================
   TNS Theme Compatibility - Complete Login Landing Page CSS & Layout Fixes
   v1.1.0 — Optimized Split Screen + Premium Polish
   ========================================================================== */

/* ---- Google Fonts: Inter ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. CORE WORDPRESS FORM RESET & FORCE SHOW ALL INPUT FIELDS
   -------------------------------------------------------------------------- */
html body.login {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

html body.login #login {
    width: 100% !important;
    max-width: 440px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Force show form and all its child elements (Username, Password, Remember Me, Submit) */
html body.login #loginform,
html body.login #registerform,
html body.login #lostpasswordform {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 20px 0 !important;
    float: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force Password Field Wrapper to always be visible */
html body.login #loginform p,
html body.login #loginform div,
html body.login #loginform .user-pass-wrap,
html body.login #loginform .wp-pwd {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    margin-bottom: 16px !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
}

html body.login #loginform label,
html body.tns-template-split-screen #loginform label {
    display: block !important;
    width: 100% !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    margin-bottom: 6px !important;
    visibility: visible !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
    overflow: visible !important;
    padding-left: 6px !important;
    text-indent: 0 !important;
    margin-left: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    clip: auto !important;
    clip-path: none !important;
}

html body.login #loginform input[type="text"],
html body.login #loginform input[type="password"],
html body.login #registerform input[type="text"],
html body.login #registerform input[type="email"],
html body.login #lostpasswordform input[type="text"],
html body.login #lostpasswordform input[type="email"],
html body.login #user_login,
html body.login #user_email,
html body.login #user_pass,
html body.login input[type="text"],
html body.login input[type="email"],
html body.login input[type="password"] {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 46px !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

html body.login input[type="text"]:focus,
html body.login input[type="email"]:focus,
html body.login input[type="password"]:focus {
    border-color: #38bdf8 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

/* ---- Eye Icon & Caps Lock Removal ---- */
/* Completely remove & hide Eye Icon on both sites as requested by user */
html body.login .wp-hide-pw,
html body.login #loginform .wp-hide-pw,
html body.login button.wp-hide-pw,
html body.login .user-pass-wrap .wp-hide-pw,
html body.login .user-pass-wrap > button.wp-hide-pw {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Completely remove & hide Caps Lock warning */
html body.login .caps-warning,
html body.login #loginform .caps-warning,
html body.login .wp-pwd .caps-warning,
html body.login .wp-pwd:hover .caps-warning,
html body.login .login-action-login .caps-warning {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    overflow: hidden !important;
}

/* Clearfix for form row containing Remember Me (left) and Submit (right) */
html body.login #loginform::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* ==========================================================================
   WORDFENCE 2FA PAGE FIXES — Isolated Dark Theme Prompt Card
   ========================================================================== */
#wfls-prompt-overlay,
#wfls-prompt-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin: 10px 0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#wfls-prompt-wrapper p,
#wfls-prompt-wrapper label,
#wfls-prompt-wrapper input {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

#wfls-prompt-wrapper label[for="wfls-token"] {
    color: #38bdf8 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

#wfls-prompt-wrapper input#wfls-token {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    color: #f8fafc !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    height: 46px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    caret-color: #f8fafc !important;
}

#wfls-prompt-wrapper input#wfls-token:focus {
    border-color: #38bdf8 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

#wfls-prompt-wrapper .wfls-remember-device-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 16px 0 !important;
}

#wfls-prompt-wrapper .wfls-remember-device-wrapper label {
    display: inline-block !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    margin: 0 !important;
}

#wfls-prompt-wrapper input#wfls-remember-device {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    accent-color: #38bdf8 !important;
}

#wfls-prompt-wrapper p.submit {
    display: block !important;
    margin-top: 20px !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
}

#wfls-prompt-wrapper input#wfls-token-submit {
    display: inline-block !important;
    width: 100% !important;
    height: 44px !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4) !important;
}

/* Hide background login form elements when 2FA active */
html body.tns-2fa-active #loginform > p:has(#user_login),
html body.tns-2fa-active #loginform > p:has(#user_pass),
html body.tns-2fa-active #loginform .user-pass-wrap,
html body.tns-2fa-active #loginform .wp-pwd,
html body.tns-2fa-active #loginform input#user_login,
html body.tns-2fa-active #loginform input#user_pass,
html body.tns-2fa-active #loginform label[for="user_login"],
html body.tns-2fa-active #loginform label[for="user_pass"],
html body.tns-2fa-active #loginform p.forgetmenot:not(.wfls-remember-device-wrapper),
html body.tns-2fa-active #loginform > p.submit:not(:has(#wfls-token-submit)),
html body.tns-2fa-active #loginform .tns-sso-wrapper {
    display: none !important;
}

/* ==========================================================================
   CHECKBOX & REMEMBER ME INLINE ALIGNMENT
   ========================================================================== */
html body.login #loginform p.forgetmenot,
html body.login #loginform .forgetmenot,
html body.login #loginform .wfls-remember-device,
html body.login #loginform div[class*="remember"] {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 12px 0 32px 0 !important;
    padding: 0 !important;
    clear: left !important;
    float: left !important;
    width: auto !important;
    visibility: visible !important;
}

html body.login #loginform p.forgetmenot label,
html body.login #loginform .forgetmenot label,
html body.login #loginform .wfls-remember-device label,
html body.login #loginform label[for="rememberme"],
html body.login #loginform label[for="wfls-remember-device"] {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    text-transform: none !important;
}

html body.login #loginform input[type="checkbox"],
html body.login #loginform input#rememberme,
html body.login #loginform input#wfls-remember-device {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    accent-color: #38bdf8 !important;
}

/* Submit Button Row & Spacing (clear gap above SSO divider) */
html body.login #loginform p.submit {
    display: inline-block !important;
    float: right !important;
    margin: 6px 0 20px 0 !important;
    padding: 0 !important;
    width: auto !important;
    visibility: visible !important;
}

html body.login #loginform #wp-submit,
html body.login #loginform .button-primary {
    display: inline-block !important;
    height: 44px !important;
    padding: 0 26px !important;
    line-height: 44px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin: 0 !important;
    transition: all 0.25s ease !important;
}


/* --------------------------------------------------------------------------
   2. POPUP MODAL & GLOBAL BUTTON SPACING FIX (Jannah Theme / Popup Forms)
   -------------------------------------------------------------------------- */
/* Ensure Buttons Never Touch in Popups or Inline Forms */
.tie-popup .tns-sso-btn,
.tie-popup a.button.button-large,
.tie-popup form .button,
.tie-popup form input[type="submit"],
#tie-popup-login form input[type="submit"],
.login-form .tns-sso-btn,
.login-form a.button.button-large,
.tns-sso-btn,
a.button.button-large {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
    border-radius: 8px !important;
}


/* --------------------------------------------------------------------------
   3. SSO BUTTONS & DIVIDER STYLING ON /wp-login.php
   -------------------------------------------------------------------------- */
.tns-sso-wrapper {
    clear: both !important;
    margin-top: 28px !important;
    padding-top: 24px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    display: block !important;
    visibility: visible !important;
}

.tns-sso-divider {
    display: flex !important;
    align-items: center !important;
    text-align: center !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin: 0 0 16px 0 !important;
}

.tns-sso-divider::before,
.tns-sso-divider::after {
    content: '' !important;
    flex: 1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.tns-sso-divider:not(:empty)::before { margin-right: .8em !important; }
.tns-sso-divider:not(:empty)::after { margin-left: .8em !important; }

.tns-sso-buttons-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
}

.tns-sso-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 44px !important;
    padding: 0 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.tns-sso-btn svg {
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
}

/* TNS Button — Primary CTA */
.tns-sso-btn-tns {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
}

.tns-sso-btn-tns:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5) !important;
    transform: translateY(-1px) !important;
}

/* Hide legacy injected single button if present inside loginform */
body.login #loginform > p:has(> a.button-large),
body.login #loginform > p > a.button-large {
    display: none !important;
}

/* Also hide duplicate SSO container from tns-sso-auth login_form hook */
body.login #loginform > .tns-sso-login-container {
    display: none !important;
}


/* ==========================================================================
   4. TEMPLATES DEFINITION
   ========================================================================== */

/* --- TEMPLATE 1: Modern Academic Glassmorphism --- */
body.tns-template-glassmorphism {
    background: radial-gradient(circle at 10% 20%, #1e1b4b 0%, #0f172a 90%) !important;
    color: #f1f5f9 !important;
}
body.tns-template-glassmorphism #loginform {
    background: rgba(30, 41, 59, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
    padding: 32px 28px !important;
}

/* --- TEMPLATE 2: Data Matrix & Econometric Grid --- */
body.tns-template-data-grid {
    background-color: #0b0f19 !important;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.07) 1px, transparent 1px) !important;
    background-size: 32px 32px !important;
    color: #e2e8f0 !important;
}
body.tns-template-data-grid #loginform {
    background: #111827 !important;
    border: 1px solid rgba(14, 165, 233, 0.3) !important;
    border-radius: 14px !important;
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.15), 0 20px 25px -5px rgba(0, 0, 0, 0.5) !important;
    padding: 32px 28px !important;
}

/* --- TEMPLATE 3: Luxury Knowledge Vault --- */
body.tns-template-luxury-gold {
    background: linear-gradient(135deg, #18181b 0%, #09090b 100%) !important;
    color: #f4f4f5 !important;
}
body.tns-template-luxury-gold #loginform {
    background: #18181b !important;
    border: 1px solid rgba(217, 119, 6, 0.35) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(217, 119, 6, 0.15) !important;
    padding: 32px 28px !important;
}
body.tns-template-luxury-gold .button-primary {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4) !important;
}

/* --- TEMPLATE 4: Split Screen Showcase (2-Column) — DEFAULT, OPTIMIZED --- */
html body.tns-template-split-screen {
    background: #0b0f19 !important;
    padding: 20px !important;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.04) 0%, transparent 40%) !important;
}

/* Animated accent line at top */
html body.tns-template-split-screen::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0b0f19, #0ea5e9, #6366f1, #0ea5e9, #0b0f19);
    background-size: 200% 100%;
    animation: tns-accent-shimmer 4s ease infinite;
    z-index: 100;
}

@keyframes tns-accent-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

html body.tns-template-split-screen #login {
    width: 920px !important;
    max-width: 92vw !important;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(14, 165, 233, 0.08) !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    animation: tns-card-appear 0.5s ease-out;
}

@keyframes tns-card-appear {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Left Showcase Column (44%) */
.tns-split-showcase-col {
    flex: 0 0 44% !important;
    width: 44% !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%) !important;
    padding: 48px 36px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern for showcase */
.tns-split-showcase-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(30deg, rgba(99, 102, 241, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(99, 102, 241, 0.04) 87.5%),
        linear-gradient(150deg, rgba(99, 102, 241, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(99, 102, 241, 0.04) 87.5%);
    background-size: 60px 104px;
    pointer-events: none;
    z-index: 0;
}

.tns-split-showcase-col > * {
    position: relative;
    z-index: 1;
}

.tns-split-showcase-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 14px !important;
    line-height: 1.3 !important;
    letter-spacing: -0.3px !important;
}

.tns-split-showcase-desc {
    font-size: 14px !important;
    color: #94a3b8 !important;
    line-height: 1.7 !important;
    margin-bottom: 28px !important;
}

.tns-split-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tns-split-features li {
    display: flex !important;
    align-items: flex-start !important;
    color: #cbd5e1 !important;
    font-size: 13px !important;
    margin-bottom: 14px !important;
    line-height: 1.5 !important;
}

.tns-split-features li::before {
    content: '✓' !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    margin-right: 12px !important;
    margin-top: 1px !important;
    background: rgba(14, 165, 233, 0.15) !important;
    color: #38bdf8 !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    font-weight: bold !important;
    flex-shrink: 0 !important;
}

/* Right Form Column (56%) */
.tns-split-form-col {
    flex: 0 0 56% !important;
    width: 56% !important;
    box-sizing: border-box !important;
    padding: 40px 44px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: visible !important;
}

html body.tns-template-split-screen #loginform,
html body.tns-template-split-screen #registerform,
html body.tns-template-split-screen #lostpasswordform {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ---- SPLIT SCREEN: Force-show password, submit, SSO (only when NOT 2FA) ---- */
html body.login.tns-template-split-screen:not(.tns-2fa-active) #loginform .user-pass-wrap,
html body.login.tns-template-split-screen:not(.tns-2fa-active) #loginform .wp-pwd,
html body.login.tns-template-split-screen:not(.tns-2fa-active) #loginform input[type="password"],
html body.login.tns-template-split-screen:not(.tns-2fa-active) #loginform p.forgetmenot,
html body.login.tns-template-split-screen:not(.tns-2fa-active) #loginform p.submit,
html body.login.tns-template-split-screen:not(.tns-2fa-active) #loginform #wp-submit,
html body.login.tns-template-split-screen:not(.tns-2fa-active) #loginform .tns-sso-wrapper,
html body.login.tns-template-split-screen #registerform,
html body.login.tns-template-split-screen #lostpasswordform {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    position: static !important;
    clip: auto !important;
    clip-path: none !important;
    max-height: none !important;
    transform: none !important;
}

/* Register & Lost Password submit buttons */
html body.login.tns-template-split-screen #registerform p.submit,
html body.login.tns-template-split-screen #lostpasswordform p.submit {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-top: 16px !important;
}

html body.login.tns-template-split-screen #registerform p.submit input,
html body.login.tns-template-split-screen #lostpasswordform p.submit input {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4) !important;
}

#reg_passmail {
    color: #94a3b8 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 12px 0 16px 0 !important;
}

/* Fix forgetmenot inline with submit (single row) */
html body.login.tns-template-split-screen #loginform p.forgetmenot {
    display: inline-block !important;
    float: left !important;
    margin: 10px 0 !important;
    width: auto !important;
    clear: both !important;
}

html body.login.tns-template-split-screen #loginform p.submit {
    display: inline-block !important;
    float: right !important;
    margin: 6px 0 8px 0 !important;
    width: auto !important;
}

/* SSO wrapper: clear all floats and separate from forgetmenot/submit */
html body.login.tns-template-split-screen #loginform .tns-sso-wrapper {
    clear: both !important;
    float: none !important;
    margin-top: 32px !important;
    margin-bottom: 8px !important;
    padding-top: 24px !important;
    width: 100% !important;
}

html body.tns-template-split-screen #login h1 {
    margin-bottom: 24px !important;
}

html body.tns-template-split-screen #login h1 a {
    width: 88px !important;
    height: 88px !important;
    border-radius: 10px !important;
    background-size: 85% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Wordfence 2FA: ensure logo remains fully visible when 2FA is active */
html body.tns-2fa-active #login h1 a {
    border-radius: 8px !important;
    background-size: 85% !important;
    display: block !important;
    visibility: visible !important;
}

/* Split Screen SSO button enhancement */
html body.tns-template-split-screen .tns-sso-btn-tns {
    height: 48px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4) !important;
}

html body.tns-template-split-screen .tns-sso-btn-tns:hover {
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.55) !important;
    transform: translateY(-2px) !important;
}

/* Split Screen nav links */
html body.tns-template-split-screen #nav,
html body.tns-template-split-screen #backtoblog {
    text-align: center !important;
    padding: 0 !important;
}

html body.tns-template-split-screen .language-switcher {
    text-align: center !important;
}

/* ==========================================================================
   JANNAH HEADER MENU LOGIN POPUP MODAL (#tie-popup-login)
   ========================================================================== */
/* ==========================================================================
   JANNAH HEADER MENU LOGIN POPUP MODAL (#tie-popup-login)
   ========================================================================== */
#tie-popup-login,
.tie-popup {
    background: rgba(11, 15, 25, 0.75) !important;
    backdrop-filter: blur(10px) !important;
}

#tie-popup-login .tie-popup-container,
.tie-popup .tie-popup-container {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(14, 165, 233, 0.2) !important;
    padding: 32px !important;
    box-sizing: border-box !important;
    max-width: 440px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Reset all nested children backgrounds so no white or black inner boxes exist */
#tie-popup-login .tie-popup-block,
#tie-popup-login .login-form,
#tie-popup-login form,
#tie-popup-login .login-header,
#tie-popup-login [class*="title"],
#tie-popup-login .login-title,
.tie-popup .tie-popup-block,
.tie-popup .login-form,
.tie-popup form,
.tie-popup .login-header,
.tie-popup [class*="title"],
.tie-popup .login-title,
html body #tie-popup-login .login-header,
html body .tie-popup .login-header,
html body #tie-popup-login .login-title,
html body .tie-popup .login-title,
html body div.login-header,
html body .login-title,
html body span.login-title,
html body div.login-header * {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Title header */
#tie-popup-login h3,
.tie-popup h3,
#tie-popup-login .tie-popup-title,
#tie-popup-login .login-title,
.tie-popup .login-title,
.tie-popup .login-header-title {
    color: #38bdf8 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 14px !important;
    margin-bottom: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Inputs */
#tie-popup-login input[type="text"],
#tie-popup-login input[type="password"],
.tie-popup input[type="text"],
.tie-popup input[type="password"],
.tie-popup input.input-text {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    height: 46px !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#tie-popup-login input[type="text"]:focus,
#tie-popup-login input[type="password"]:focus,
.tie-popup input[type="text"]:focus,
.tie-popup input[type="password"]:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
    outline: none !important;
}

/* Pure white high-contrast Remember me text & checkbox */
#tie-popup-login label,
.tie-popup label,
#tie-popup-login label[for="rememberme"],
#tie-popup-login p.forgetmenot,
#tie-popup-login p.forgetmenot label,
.tie-popup p.forgetmenot label,
.tie-popup label.forgetmenot,
.tie-popup .remember-me label,
.tie-popup label[for="rememberme"] {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

#tie-popup-login input[type="checkbox"],
.tie-popup input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: #0ea5e9 !important;
    margin-right: 8px !important;
    cursor: pointer !important;
    vertical-align: middle !important;
}

/* Vertically centered Log In submit button */
#tie-popup-login input[type="submit"],
.tie-popup input[type="submit"],
.tie-popup button[type="submit"],
.tie-popup .button-primary,
#tie-popup-login #wp-submit {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    height: 46px !important;
    line-height: 1 !important;
    font-size: 15px !important;
    width: 100% !important;
    margin-top: 16px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 !important;
}

/* SSO Divider & Button */
#tie-popup-login .tns-sso-wrapper,
.tie-popup .tns-sso-wrapper {
    margin: 20px 0 16px 0 !important;
    padding: 0 !important;
    border-top: none !important;
}

#tie-popup-login .tns-sso-divider,
.tie-popup .tns-sso-divider,
#tie-popup-login .tns-sso-divider span,
.tie-popup .tns-sso-divider span {
    color: #cbd5e1 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

#tie-popup-login .tns-sso-btn,
.tie-popup .tns-sso-btn {
    height: 44px !important;
    line-height: 44px !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

/* ==========================================================================
   WOOCOMMERCE FRONTEND LOST PASSWORD FORM (.woocommerce-ResetPassword)
   ========================================================================== */
.woocommerce-account .woocommerce-ResetPassword,
form.woocommerce-ResetPassword,
form.lost_reset_password,
.woocommerce-LostPassword,
.woocommerce-account form.login,
.woocommerce-account form.register {
    max-width: 520px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 40px auto !important;
    padding: 36px 32px !important;
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(14, 165, 233, 0.12) !important;
    color: #f8fafc !important;
}

.woocommerce-account .woocommerce-ResetPassword p,
form.woocommerce-ResetPassword p,
.woocommerce-LostPassword p {
    color: #94a3b8 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-account .woocommerce-ResetPassword label,
form.woocommerce-ResetPassword label,
.woocommerce-LostPassword label {
    color: #38bdf8 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.woocommerce-account .woocommerce-ResetPassword input[type="text"],
.woocommerce-account .woocommerce-ResetPassword input[type="email"],
form.woocommerce-ResetPassword input[type="text"],
form.woocommerce-ResetPassword input[type="email"],
form.woocommerce-ResetPassword .woocommerce-Input,
.woocommerce-account input.input-text {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    color: #f8fafc !important;
    height: 46px !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-account .woocommerce-ResetPassword input[type="text"]:focus,
.woocommerce-account .woocommerce-ResetPassword input[type="email"]:focus,
form.woocommerce-ResetPassword input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
    outline: none !important;
}

/* Reset password button: exact width as input field and vertically centered text */
.woocommerce-account .woocommerce-ResetPassword input[type="submit"],
.woocommerce-account .woocommerce-ResetPassword button[type="submit"],
form.woocommerce-ResetPassword .woocommerce-Button,
form.woocommerce-ResetPassword button,
.woocommerce-LostPassword button,
#lostpasswordform p.submit input {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    height: 46px !important;
    line-height: 1 !important;
    font-size: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 16px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 !important;
}


/* --- TEMPLATE 5: Cyber Neon Academic Minimal --- */
body.tns-template-cyber-minimal {
    background: #030712 !important;
    color: #f9fafb !important;
}
body.tns-template-cyber-minimal #loginform {
    background: #090d16 !important;
    border: 1px solid #1f2937 !important;
    border-radius: 14px !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.25) !important;
    padding: 32px 28px !important;
    transition: box-shadow 0.3s ease !important;
}
body.tns-template-cyber-minimal #loginform:hover {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.45) !important;
}
body.tns-template-cyber-minimal .button-primary {
    background: #06b6d4 !important;
    color: #030712 !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.6) !important;
}


/* ==========================================================================
   5. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet: 769px – 1024px */
@media (max-width: 1024px) and (min-width: 769px) {
    html body.tns-template-split-screen #login {
        width: 800px !important;
        max-width: 95vw !important;
    }
    .tns-split-showcase-col {
        flex: 0 0 40% !important;
        width: 40% !important;
        padding: 36px 28px !important;
    }
    .tns-split-showcase-title {
        font-size: 22px !important;
    }
    .tns-split-form-col {
        flex: 0 0 60% !important;
        width: 60% !important;
        padding: 32px 28px !important;
    }
}

/* Mobile: ≤768px */
@media (max-width: 768px) {
    /* Prevent horizontal scroll on mobile */
    html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    html body.login {
        padding: 16px !important;
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    /* Force #login container to fit viewport */
    html body.login #login {
        width: auto !important;
        max-width: calc(100vw - 32px) !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* Template 4 Fallback to Single Column on Mobile */
    html body.tns-template-split-screen #login {
        flex-direction: column !important;
        width: auto !important;
        max-width: calc(100vw - 32px) !important;
        min-width: 0 !important;
        border-radius: 18px !important;
    }

    .tns-split-showcase-col {
        display: none !important;
    }

    .tns-split-form-col {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 100% !important;
        padding: 24px 20px !important;
        box-sizing: border-box !important;
    }

    /* Forms: ensure no overflow */
    html body.login #loginform,
    html body.login #registerform,
    html body.login #lostpasswordform {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /* Stack checkbox and submit button vertically on mobile (no float) */
    html body.login #loginform p.forgetmenot,
    html body.login.tns-template-split-screen #loginform p.forgetmenot {
        float: none !important;
        display: flex !important;
        width: 100% !important;
        margin: 12px 0 16px 0 !important;
        clear: both !important;
    }

    html body.login #loginform p.submit,
    html body.login.tns-template-split-screen #loginform p.submit {
        float: none !important;
        display: block !important;
        width: 100% !important;
        margin: 0 0 16px 0 !important;
        clear: both !important;
    }

    /* Submit button: full-width on mobile */
    html body.login #loginform #wp-submit,
    html body.login #loginform .button-primary {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* SSO button: allow text wrapping on narrow screens */
    html body.login .tns-sso-btn {
        white-space: normal !important;
        height: auto !important;
        min-height: 44px !important;
        padding: 10px 16px !important;
        box-sizing: border-box !important;
    }

    /* SSO wrapper spacing on mobile */
    html body.login #loginform .tns-sso-wrapper,
    html body.login.tns-template-split-screen #loginform .tns-sso-wrapper {
        margin-top: 24px !important;
        padding-top: 20px !important;
    }

    /* Logo: slightly smaller on mobile */
    html body.login #login h1 a,
    html body.tns-template-split-screen #login h1 a {
        width: 72px !important;
        height: 72px !important;
        border-radius: 8px !important;
        background-size: 85% !important;
    }

    /* Reduce split-screen SSO button enhancement for mobile */
    html body.tns-template-split-screen .tns-sso-btn-tns {
        height: auto !important;
        min-height: 44px !important;
        font-size: 14px !important;
    }

    /* Register & Lost Password submit: full-width on mobile */
    html body.login #registerform p.submit,
    html body.login #lostpasswordform p.submit {
        float: none !important;
        display: block !important;
        width: 100% !important;
        clear: both !important;
    }

    html body.login #registerform p.submit input,
    html body.login #lostpasswordform p.submit input {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Inputs: ensure no overflow */
    html body.login input[type="text"],
    html body.login input[type="email"],
    html body.login input[type="password"] {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Nav links: fit within card */
    html body.login #nav,
    html body.login #backtoblog {
        text-align: center !important;
        word-break: break-word !important;
    }
}

/* Extra Small Mobile: ≤400px (iPhone SE 375px, compact Android) */
@media (max-width: 400px) {
    html body.login {
        padding: 10px !important;
    }

    html body.login #login,
    html body.tns-template-split-screen #login {
        max-width: calc(100vw - 20px) !important;
        border-radius: 14px !important;
    }

    .tns-split-form-col {
        padding: 20px 16px !important;
    }

    /* Compact input fields */
    html body.login input[type="text"],
    html body.login input[type="email"],
    html body.login input[type="password"] {
        height: 42px !important;
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    /* Compact SSO button */
    html body.login .tns-sso-btn {
        font-size: 13px !important;
        min-height: 42px !important;
    }

    html body.login .tns-sso-btn svg {
        width: 18px !important;
        height: 18px !important;
        margin-right: 8px !important;
    }

    /* Compact submit button */
    html body.login #loginform #wp-submit,
    html body.login #loginform .button-primary {
        height: 42px !important;
        line-height: 42px !important;
        font-size: 13px !important;
    }

    /* Register/Lost Password submit on extra small */
    html body.login #registerform p.submit input,
    html body.login #lostpasswordform p.submit input {
        height: 42px !important;
        font-size: 13px !important;
    }

    /* Logo: even smaller on extra-small screens */
    html body.login #login h1 a,
    html body.tns-template-split-screen #login h1 a {
        width: 60px !important;
        height: 60px !important;
    }

    /* Tighter spacing */
    html body.login #loginform p,
    html body.login #loginform div,
    html body.login #loginform .user-pass-wrap {
        margin-bottom: 12px !important;
    }

    html body.tns-template-split-screen #login h1 {
        margin-bottom: 16px !important;
    }
}
