/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* ─── Base Page Reset ─── */
html {
    background-color: #070b14 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.login {
    background-color: #070b14 !important;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, #0a0f1d 0%, #070b14 100%) !important;
    background-attachment: fixed !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #f8fafc !important;
    min-height: 100vh !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-text-size-adjust: 100%;
}

/* ─── 2-Column Viewport & Container ─── */
.sf-auth-viewport {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    box-sizing: border-box;
}

.sf-auth-container {
    display: grid !important;
    grid-template-columns: 440px minmax(380px, 620px) !important;
    max-width: 1120px !important;
    width: 100% !important;
    gap: 32px !important;
    align-items: stretch !important;
    justify-content: center !important;
    margin: auto !important;
}

/* ─── Left Column (Login Card) ─── */
.sf-auth-left {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
}

#login {
    width: 100% !important;
    max-width: 100% !important;
    padding: 38px 34px !important;
    margin: 0 auto !important;
    background: rgba(19, 27, 46, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}

#login h1 {
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: normal !important;
}

#login h1 a {
    display: none !important;
}

/* Brand Logo in Left Card */
.sf-brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.sf-brand-logo-only {
    display: block;
    margin-bottom: 20px;
}

.sf-brand-logo-img {
    max-height: 44px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.sf-brand-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.sf-brand-icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.sf-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #131d33, #0b1120);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: var(--sf-primary, #6366f1);
}

.sf-brand-text {
    display: flex;
    flex-direction: column;
}

.sf-brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.sf-brand-sub {
    font-size: 9px;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 3px;
}

.sf-welcome-block {
    margin-bottom: 22px;
    text-align: left;
}

.sf-welcome-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.25 !important;
    text-align: left !important;
}

.sf-welcome-desc {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.45;
}

/* WordPress Form Overrides */
.login form {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.login form .input, 
.login input[type=text], 
.login input[type=password] {
    background-color: #0b1120 !important;
    border: 1px solid #1e293b !important;
    border-radius: 12px !important;
    color: #f8fafc !important;
    padding: 12px 16px 12px 42px !important;
    font-size: 15px !important;
    height: 48px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    margin-bottom: 16px !important;
}

.login input[type=text]:focus, 
.login input[type=password]:focus {
    border-color: var(--sf-primary, #6366f1) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
    outline: none !important;
    background-color: #0d1527 !important;
}

/* SVG Icons in inputs */
.sf-input-email {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: 14px center !important;
}

.sf-input-lock {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: 14px center !important;
}

.sf-pw-toggle {
    position: absolute;
    right: 12px;
    top: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Labels */
.login label {
    color: #cbd5e1 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.login .user-pass-wrap > label,
.login .wp-pwd > label,
.login label[for="user_pass"] {
    display: none !important;
}

.sf-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sf-pass-label {
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 500;
}

.sf-forgot-link {
    color: #94a3b8 !important;
    font-size: 12.5px !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.sf-forgot-link:hover {
    color: #a5b4fc !important;
}

/* Checkbox & Security Row */
.login .forgetmenot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 4px 0 22px 0 !important;
    float: none !important;
    width: 100% !important;
}

.login .forgetmenot label {
    color: #94a3b8 !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.login input[type=checkbox] {
    border-radius: 6px !important;
    background: #0b1120 !important;
    border: 1px solid #334155 !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
}

.login input[type=checkbox]:checked {
    background-color: var(--sf-primary, #6366f1) !important;
    border-color: var(--sf-primary, #6366f1) !important;
}

.sf-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

.sf-dot-green {
    color: #10b981;
    font-size: 14px;
}

/* Submit Button */
.wp-core-ui .button-primary {
    background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 100%) !important;
    border: none !important;
    color: #0b1120 !important;
    text-shadow: none !important;
    border-radius: 12px !important;
    height: 48px !important;
    width: 100% !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.25s ease !important;
    box-shadow: 0 8px 24px rgba(165, 180, 252, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    letter-spacing: -0.01em !important;
    float: none !important;
}

.wp-core-ui .button-primary:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.05) !important;
    box-shadow: 0 12px 28px rgba(165, 180, 252, 0.4) !important;
}

.wp-core-ui .button-primary:active {
    transform: translateY(0) !important;
}

/* Error messages */
.login #login_error, 
.login .message, 
.login .success {
    background: #1e1b4b !important;
    border: 1px solid #4338ca !important;
    border-left: 4px solid #6366f1 !important;
    border-radius: 12px !important;
    color: #f8fafc !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4) !important;
    margin-bottom: 20px !important;
    padding: 12px 16px !important;
}

.login #login_error {
    background: #450a0a !important;
    border: 1px solid #7f1d1d !important;
    border-left-color: #ef4444 !important;
}

/* ─── Right Column (Showcase Hero Card) ─── */
.sf-auth-right {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.sf-hero-card {
    background: rgba(17, 24, 39, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    padding: 38px 36px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Top Badges */
.sf-hero-top-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sf-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.sf-badge-green {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.sf-badge-realtime {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.sf-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: sfPulse 2s infinite;
}

@keyframes sfPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.sf-hero-category {
    font-size: 11.5px;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sf-hero-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 12px 0;
}

.sf-hero-desc {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0 0 22px 0;
}

/* Stats Grid */
.sf-hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.sf-stat-box {
    background: rgba(12, 19, 34, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.sf-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sf-stat-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.sf-stat-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-stat-icon-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.sf-stat-icon-indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
}

.sf-stat-val-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.sf-stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.sf-stat-tag {
    font-size: 11.5px;
    font-weight: 600;
    color: #10b981;
}

.sf-sparkline-wrap {
    margin-top: 8px;
    height: 38px;
    width: 100%;
}

.sf-sparkline-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sf-stat-detail {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.45;
    margin: 6px 0 0 0;
}

.sf-stat-detail strong {
    color: #f8fafc;
}

/* Testimonial Quote Card */
.sf-testimonial-card {
    background: rgba(12, 19, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.sf-testimonial-avatar {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(99, 102, 241, 0.4) !important;
    flex-shrink: 0 !important;
}

.sf-testimonial-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sf-testimonial-stars {
    color: #10b981;
    font-size: 12px;
    letter-spacing: 2px;
}

.sf-testimonial-quote {
    font-size: 12px;
    font-style: italic;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.35;
}

.sf-testimonial-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.sf-testimonial-meta strong {
    color: #f8fafc;
}

/* Trust Footer */
.sf-trust-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sf-trust-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sf-trust-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sf-trust-info {
    display: flex;
    flex-direction: column;
}

.sf-trust-title {
    font-size: 11.5px;
    font-weight: 600;
    color: #f8fafc;
}

.sf-trust-sub {
    font-size: 10.5px;
    color: #94a3b8;
}

.sf-trust-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #94a3b8;
}

/* Strictly hide WP language switcher, nav, back to blog, privacy policy */
.language-switcher,
#language-switcher,
.login .language-switcher,
#nav,
#backtoblog,
.privacy-policy-page-link,
.wp-hide-pw {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ─── RESPONSIVENESS & MOBILE-FIRST ADJUSTMENTS ─── */
@media (max-width: 1024px) {
    .sf-auth-viewport {
        padding: 24px 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        box-sizing: border-box !important;
    }

    .sf-auth-container {
        grid-template-columns: 100% !important;
        max-width: 440px !important;
        width: 100% !important;
        margin: auto !important;
        gap: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .sf-auth-left {
        width: 100% !important;
        max-width: 100% !important;
        margin: auto !important;
    }

    .sf-auth-right {
        display: none !important; /* Hide marketing showcase on tablet/mobile */
    }

    #login {
        padding: 32px 24px !important;
        border-radius: 22px !important;
        min-height: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: auto !important;
    }
}

@media (max-width: 480px) {
    .sf-auth-viewport {
        padding: 20px 16px !important;
    }

    #login {
        padding: 28px 20px !important;
        border-radius: 20px !important;
    }

    .sf-welcome-title {
        font-size: 21px !important;
    }

    .sf-brand-name {
        font-size: 19px !important;
    }

    .sf-brand-logo-img {
        max-height: 40px !important;
    }

    .login form .input, 
    .login input[type=text], 
    .login input[type=password] {
        font-size: 16px !important; /* Prevents auto-zoom in mobile Safari */
        height: 48px !important;
    }
}
