/* ==========================================================================
   DATAQU Modern Symmetrical Split-Screen Custom Login
   Symmetrical 50:50 balance, vertical & horizontal centering,
   Cloudflare-style perfection with DATAQU Emerald Green & Gold brand identity.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root Reset & Base Viewport
   -------------------------------------------------------------------------- */
html, body.login {
    height: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    overflow-x: hidden !important;
}

body.login {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    width: 100vw !important;
    position: relative !important;
}

/* --------------------------------------------------------------------------
   2. Left Panel Container (#login) - Perfectly Symmetrical Three-Tier Layout
   -------------------------------------------------------------------------- */
#login {
    flex: 1 1 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    min-height: 100vh !important;
    padding: 36px 56px !important;
    margin: 0 !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Left Top Bar (Header Utilities: Back to Home + Language Switcher) */
.dataqu-left-top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
}

.dataqu-left-back-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    text-decoration: none !important;
    padding: 7px 14px !important;
    border-radius: 9999px !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
}

.dataqu-left-back-link:hover {
    color: #059669 !important;
    background-color: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    transform: translateX(-2px) !important;
}

.dataqu-left-top-right {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Language Switcher Styling */
.language-switcher,
#login .language-switcher {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
}

.language-switcher form {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.language-switcher label {
    display: none !important;
}

.language-switcher select {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 6px 12px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    background-color: #f8fafc !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.language-switcher select:focus,
.language-switcher select:hover {
    border-color: #059669 !important;
    background-color: #ffffff !important;
}

.language-switcher .button {
    border-radius: 8px !important;
    font-size: 12px !important;
    padding: 5px 10px !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    cursor: pointer !important;
}

/* Center Card - Perfect Vertical & Horizontal Centering */
.dataqu-login-center-card {
    width: 100% !important;
    max-width: 440px !important;
    margin: auto !important;
    padding: 24px 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Left Footer */
.dataqu-left-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 32px !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    text-align: center !important;
}

/* --------------------------------------------------------------------------
   3. Brand Logo (Centered inside Center Card)
   -------------------------------------------------------------------------- */
body.login h1 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 24px 0 !important;
    text-align: left !important;
}

body.login h1 a {
    width: 290px !important;
    max-width: 100% !important;
    height: 70px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: -9999px !important;
    display: block !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

body.login h1 a:hover {
    opacity: 0.92 !important;
    transform: translateY(-1px) !important;
}

/* --------------------------------------------------------------------------
   4. Form Intro (Title & Subtitle)
   -------------------------------------------------------------------------- */
.dataqu-form-intro {
    width: 100% !important;
    margin: 0 0 22px 0 !important;
}

.dataqu-form-title {
    font-size: 25px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.25 !important;
}

.dataqu-form-desc {
    font-size: 13.5px !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* --------------------------------------------------------------------------
   5. Form Inputs & Elements Styling
   -------------------------------------------------------------------------- */
body.login form {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.login form p {
    margin-bottom: 16px !important;
}

/* Input Fields Labels */
body.login form label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 7px !important;
    display: block !important;
}

/* Text & Password Input Fields */
body.login form input[type="text"],
body.login form input[type="password"] {
    width: 100% !important;
    height: 48px !important;
    padding: 10px 16px !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease-in-out !important;
    box-sizing: border-box !important;
}

body.login form input[type="text"]:focus,
body.login form input[type="password"]:focus {
    background-color: #ffffff !important;
    border-color: #059669 !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15) !important;
}

/* Password Visibility Button */
.wp-pwd {
    position: relative !important;
    margin-bottom: 0 !important;
}

.wp-pwd .button.wp-hide-pw {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #64748b !important;
    cursor: pointer !important;
    padding: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wp-pwd .button.wp-hide-pw:hover {
    color: #059669 !important;
}

/* Remember Me Checkbox */
.login .forgetmenot {
    float: none !important;
    display: block !important;
    margin-top: 6px !important;
    margin-bottom: 20px !important;
}

.login .forgetmenot label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    cursor: pointer !important;
    user-select: none !important;
}

.login .forgetmenot input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 5px !important;
    accent-color: #059669 !important;
    cursor: pointer !important;
    vertical-align: middle !important;
}

/* Submit Button - Full Width Primary Button */
.login .submit {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 18px !important;
}

body.login form input[type="submit"]#wp-submit {
    width: 100% !important;
    height: 48px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28) !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    letter-spacing: 0.01em !important;
    text-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.login form input[type="submit"]#wp-submit:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.38) !important;
    transform: translateY(-1px) !important;
}

body.login form input[type="submit"]#wp-submit:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.24) !important;
}

/* --------------------------------------------------------------------------
   6. Modern "Or Continue With" Separator & Social Login
   -------------------------------------------------------------------------- */
.dataqu-login-separator {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin: 18px 0 16px 0 !important;
}

.dataqu-separator-line {
    flex: 1 !important;
    height: 1px !important;
    background-color: #e2e8f0 !important;
}

.dataqu-separator-text {
    padding: 0 12px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: #94a3b8 !important;
}

/* Social Buttons Container (Nextend / SSO) */
.nsl-container,
.login-action-login .nsl-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

.nsl-container-buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
}

.nsl-button {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.nsl-button:hover {
    transform: translateY(-2px) !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
}

/* --------------------------------------------------------------------------
   7. Navigation Links (Lupa Sandi)
   -------------------------------------------------------------------------- */
#nav {
    width: 100% !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 13.5px !important;
}

#nav a {
    color: #059669 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.15s ease !important;
}

#nav a:hover {
    color: #047857 !important;
    text-decoration: underline !important;
}

/* Back to Blog hide as it's already integrated in left-top-bar */
#backtoblog {
    display: none !important;
}

/* --------------------------------------------------------------------------
   8. Modern Notices & Error Messages
   -------------------------------------------------------------------------- */
body.login #login_error,
body.login .message,
body.login .success {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

body.login #login_error {
    border-left: 4px solid #ef4444 !important;
    background-color: #fef2f2 !important;
    color: #991b1b !important;
}

body.login #login_error a {
    color: #dc2626 !important;
    font-weight: 600 !important;
}

body.login .message {
    border-left: 4px solid #059669 !important;
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
}

/* --------------------------------------------------------------------------
   9. Right Showcase Panel - Cloudflare-Style Modern Symmetry
   -------------------------------------------------------------------------- */
.dataqu-login-right-panel {
    flex: 1 1 50% !important;
    width: 50% !important;
    min-height: 100vh !important;
    background: linear-gradient(145deg, #064e3b 0%, #043d2e 50%, #022c22 100%) !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    padding: 36px 56px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    color: #ffffff !important;
}

/* Ambient Radial Glow & Dot Pattern */
.dataqu-pattern-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    opacity: 0.4;
    pointer-events: none;
}

.dataqu-radial-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    right: -100px;
    top: -100px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(6, 78, 59, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

/* Symmetrical Right Top Bar */
.dataqu-right-top-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
}

.dataqu-back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #a7f3d0;
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.dataqu-back-home-link:hover {
    background-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transform: translateX(-3px);
}

.dataqu-top-ppdb-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.22);
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 6px 16px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dataqu-top-ppdb-badge:hover {
    background: rgba(245, 158, 11, 0.35);
    color: #ffffff;
}

.dataqu-ping-dot {
    width: 7px;
    height: 7px;
    background-color: #fbbf24;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    animation: pulseGold 1.8s infinite;
}

@keyframes pulseGold {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(251, 191, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

/* Center Showcase Content (Perfect Symmetrical Positioning) */
.dataqu-showcase-center {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin: auto;
    width: 100%;
    padding: 24px 0;
    box-sizing: border-box;
}

.dataqu-showcase-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    margin-bottom: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

.dataqu-showcase-icon-wrapper.has-image {
    background: #ffffff !important;
    padding: 6px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
}

.dataqu-showcase-icon-wrapper img.dataqu-showcase-brand-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    display: block !important;
}

.dataqu-arabic-calligraphy {
    font-family: 'Amiri', serif;
    font-size: 24px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dataqu-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

.dataqu-showcase-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0 0 14px 0;
}

.dataqu-showcase-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0 0 26px 0;
}

/* Stats Pill (3-column grid) */
.dataqu-showcase-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-pill strong {
    font-size: 14px;
    font-weight: 800;
    color: #34d399;
}

.stat-pill span {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
}

/* Showcase Action Buttons */
.dataqu-showcase-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-dataqu-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: #064e3b;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.btn-dataqu-primary:hover {
    background-color: #ecfdf5;
    color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn-dataqu-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.btn-dataqu-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

/* Right Footer */
.dataqu-right-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 32px;
    font-size: 12px;
    color: #6ee7b7;
    opacity: 0.85;
}

.dataqu-right-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a7f3d0;
}

/* --------------------------------------------------------------------------
   10. Responsive Media Queries (Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    body.login {
        flex-direction: column !important;
    }

    #login {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 24px 20px !important;
        min-height: 100vh !important;
    }

    .dataqu-login-right-panel {
        display: none !important;
    }

    .dataqu-login-center-card {
        max-width: 400px !important;
        padding: 16px 0 !important;
    }
}

@media (max-width: 480px) {
    #login {
        padding: 20px 16px !important;
    }

    .dataqu-form-title {
        font-size: 22px !important;
    }

    body.login h1 a {
        width: 240px !important;
        height: 54px !important;
    }

    .dataqu-left-top-bar {
        margin-bottom: 12px !important;
    }
}
