/* =========================================
   GLOBAL JOURNALS AUTHENTICATION STYLES
   ========================================= */

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

:root {
    --gj-primary: #1849c7;
    --gj-primary-dark: #123694;
    --gj-text-main: #0f172a;
    --gj-text-muted: #64748b;
    --gj-border: #e2e8f0;
    --gj-bg-light: #f8fafc;
    --gj-white: #ffffff;
    --gj-error: #ef4444;
    --gj-success: #10b981;
    --gj-radius: 12px;
}

/* Disable scroll on body and html when auth page / split-layout is active */
html.gj-auth-active,
body.gj-auth-active,
html:has(.gj-split-layout),
body:has(.gj-split-layout),
body.gj-auth-page {
    height: 100% !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force hide all WordPress theme header/footer elements & floating widgets on auth pages */
body.gj-auth-active #qodef-page-header,
body.gj-auth-active #qodef-page-footer,
body.gj-auth-active .qodef-page-footer,
body.gj-auth-active #qodef-page-mobile-header,
body.gj-auth-active #qodef-back-to-top,
body.gj-auth-page #qodef-page-header,
body.gj-auth-page #qodef-page-footer,
body.gj-auth-page .qodef-page-footer,
body.gj-auth-page #qodef-page-mobile-header,
body.gj-auth-page #qodef-back-to-top,
body:has(.gj-split-layout) #qodef-page-header,
body:has(.gj-split-layout) #qodef-page-footer,
body:has(.gj-split-layout) .qodef-page-footer,
body:has(.gj-split-layout) #qodef-page-mobile-header,
body:has(.gj-split-layout) #qodef-back-to-top,
body:has(.gj-split-layout) #masthead,
body:has(.gj-split-layout) header,
body:has(.gj-split-layout) footer,
body:has(.gj-split-layout) .floating-wpp,
body:has(.gj-split-layout) #whatsapp-chat,
body:has(.gj-split-layout) .whatsapp-widget,
body:has(.gj-split-layout) [class*="floating-wpp"],
body:has(.gj-split-layout) #WAButton,
body:has(.gj-split-layout) #myButton {
    display: none !important;
    visibility: hidden !important;
}

/* =========================================
   SPLIT LAYOUT (Fullscreen Overlay)
   ========================================= */
.gj-split-layout {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 99999;
    display: flex;
    background-color: var(--gj-primary);
    background:
        linear-gradient(90deg,
            #1849c7 0%,
            #1849c7 35%,
            rgba(24, 73, 199, 0.85) 60%,
            rgba(24, 73, 199, 0.4) 100%),
        url('https://images.globaljournals.org/login-scaled.jpg') no-repeat right center / cover;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gj-split-layout::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.create-new-password header#qodef-page-header,
.create-new-password footer#qodef-page-footer {
    display: none !important;
}

.page-restore-password #qodef-page-content {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Admin Bar Adjustment */
body.admin-bar .gj-split-layout {
    top: 32px;
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
}

/* Left Side - Form Card */
.gj-layout-left {
    flex: 0 0 45%;
    height: 100%;
    max-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    z-index: 20;
    background: transparent;
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gj-layout-left::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Right Side - Hero Text */
.gj-layout-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px;
    color: #ffffff;
    z-index: 10;
    position: relative;
    box-sizing: border-box;
}

.gj-hero-content {
    max-width: 700px;
}

.gj-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gj-hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    max-width: 550px;
}

/* Mobile Responsive Layout */
@media (max-width: 1024px) {
    .gj-split-layout {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        flex-direction: column !important;
        /* Same blue + photo background as desktop (only the hero text on the right is hidden on mobile) */
        background:
            linear-gradient(90deg,
                #1849c7 0%,
                #1849c7 35%,
                rgba(24, 73, 199, 0.85) 60%,
                rgba(24, 73, 199, 0.4) 100%),
            url('https://images.globaljournals.org/login-scaled.jpg') no-repeat right center / cover !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Completely hide the huge blue marketing hero on mobile so the user is directly on the auth form */
    .gj-layout-right {
        display: none !important;
    }

    .gj-layout-left {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100% !important;
        min-height: 100dvh !important;
        flex: 1 0 auto !important;
        background: transparent !important;
        padding: 24px 16px 36px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    .gj-auth-container {
        width: 100% !important;
        max-width: 420px !important;
        margin: 0 auto !important;
    }

    .gj-auth-card {
        padding: 28px 20px !important;
        border-radius: 20px !important;
        box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
        border: 1px solid #e2e8f0 !important;
        width: 100% !important;
        max-width: 420px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .gj-layout-left {
        padding: 16px 12px 24px !important;
    }

    .gj-auth-card {
        padding: 24px 16px !important;
        border-radius: 16px !important;
    }

    .gj-auth-title {
        font-size: 24px !important;
    }

    .gj-auth-subtitle {
        font-size: 14px !important;
    }
}

/* =========================================
   AUTH CARD CONTAINER (Floating White Card)
   ========================================= */
.gj-auth-container {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
}

.gj-auth-card {
    background: #ffffff;
    padding: 48px;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

/* =========================================
   TYPOGRAPHY & HEADERS
   ========================================= */
.gj-auth-header {
    margin-bottom: 36px;
}

/* Hide auth icon if present in markup but redundant with design */
.gj-auth-icon {
    display: none;
}

.gj-auth-logo {
    margin-bottom: 24px;
    display: block;
}

.gj-auth-title {
    font-size: 30px;
    font-weight: 600;
    /* Semi Bold */
    color: var(--gj-text-main);
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
}

.gj-auth-subtitle {
    font-size: 15px;
    color: var(--gj-text-muted);
    font-weight: 500;
    margin: 0;
}

/* =========================================
   FORMS & INPUTS
   ========================================= */
.gj-auth-form {
    display: flex;
    flex-direction: column !important;
    gap: 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.gj-auth-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.gj-auth-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-left: 2px;
}

.gj-auth-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.gj-auth-input {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 42px 0 14px !important;
    font-size: 15px;
    color: var(--gj-text-main);
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    transition: all 0.2s ease;
    outline: none !important;
    font-family: inherit;
    font-weight: 500;
    box-sizing: border-box !important;
}

.gj-auth-input:focus {
    border-color: #000000;
    /* Black border focuses */
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.gj-auth-input::placeholder {
    color: #94a3b8;
}

/* Validation */
.gj-auth-input.is-invalid {
    border-color: var(--gj-error);
    background-color: #fff9f9;
}

.gj-auth-field-error {
    font-size: 13px;
    color: var(--gj-error);
    margin-top: 4px;
    font-weight: 500;
}

/* Password Toggle */
html body .gj-auth-password-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 24px !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s !important;
}

html body .gj-auth-password-toggle:hover {
    color: #0f172a !important;
    background: transparent !important;
}

html body .gj-auth-password-toggle .gj-eye-closed,
html body .gj-auth-password-toggle .eye-closed {
    display: none !important;
}

html body .gj-auth-password-toggle .gj-eye-open,
html body .gj-auth-password-toggle .eye-open {
    display: block !important;
}

html body .gj-auth-password-toggle.active .gj-eye-closed,
html body .gj-auth-password-toggle.active .eye-closed {
    display: block !important;
}

html body .gj-auth-password-toggle.active .gj-eye-open,
html body .gj-auth-password-toggle.active .eye-open {
    display: none !important;
}

html body .gj-auth-password-toggle svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    stroke: currentColor !important;
    pointer-events: none !important;
}

#gj-signup-password-hint {
    font-size: 12px !important;
    color: #64748b !important;
    margin-top: 6px !important;
    line-height: 1.4 !important;
}

#gj-signup-terms-wrapper {
    margin-top: 4px !important;
    margin-bottom: 6px !important;
}

#gj-signup-terms-wrapper .gj-auth-link {
    color: #0f172a !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

/* =========================================
   BUTTONS (Pitch Black)
   ========================================= */
html body .gj-auth-card .gj-auth-btn,
html body .gj-auth-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid transparent !important;
    outline: none !important;
    text-transform: none !important;
}

/* PRIMARY: Solid Dark Navy */
html body .gj-auth-card .gj-auth-btn-primary,
html body .gj-auth-btn-primary {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12) !important;
}

html body .gj-auth-card .gj-auth-btn-primary:hover,
html body .gj-auth-btn-primary:hover {
    background: #1e293b !important;
    color: #ffffff !important;
    border-color: #1e293b !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18) !important;
    transform: none !important;
}

html body .gj-auth-card .gj-auth-btn-primary:active,
html body .gj-auth-btn-primary:active {
    transform: none !important;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1) !important;
}

html body .gj-auth-card .gj-auth-btn-primary .btn-text,
html body .gj-auth-btn-primary .btn-text {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.gj-auth-btn-primary svg {
    stroke: currentColor;
    transition: stroke 0.2s;
}

/* Ensure anchor buttons work correctly */
a.gj-auth-btn-primary {
    text-decoration: none;
    font-family: inherit;
    box-sizing: border-box;
}

html body a.gj-auth-btn-primary:hover {
    background: transparent !important;
    color: #0e202a !important;
    border: 1px solid #0e202a !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Loaders */
.btn-loader {
    display: inline-flex;
    animation: spin 1s linear infinite;
}

.spinner {
    width: 22px;
    height: 22px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* =========================================
   UTILITIES
   ========================================= */
.gj-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -8px;
    margin-bottom: 0 !important;
    font-size: 13px;
}

.gj-auth-link {
    color: var(--gj-primary);
    text-decoration: none;
    font-weight: 500;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.gj-auth-link:hover {
    text-decoration: underline;
}

.gj-auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 400;
    color: var(--gj-text-muted);
}

.gj-auth-footer .gj-auth-link {
    font-weight: 400;
}

.gj-auth-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.gj-auth-checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.gj-auth-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
}

.gj-auth-checkbox:checked+.gj-auth-checkbox-custom {
    background: #000000;
    border-color: #000000;
}

.gj-auth-checkbox:checked+.gj-auth-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* User Badge */
html body .gj-auth-user-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 5px 12px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--gj-text-main) !important;
    margin-top: 10px !important;
    margin-bottom: 4px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

html body .gj-auth-user-badge .gj-auth-edit-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    line-height: 1 !important;
    transition: all 0.15s ease !important;
}

html body .gj-auth-user-badge .gj-auth-edit-btn:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

/* Alerts */
.gj-auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.gj-auth-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

.gj-auth-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #d1fae5;
}

/* =========================================
   PASSWORD REQUIREMENTS
   ========================================= */
.gj-reg-password-requirements {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gj-req-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #64748b;
    transition: all 0.2s ease;
}

.gj-req-item svg {
    opacity: 0;
    color: #1769ff;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gj-req-item.met {
    color: #1769ff;
}

.gj-req-item.met svg {
    opacity: 1;
    transform: scale(1);
}

/* =========================================
   GOOGLE SIGN-IN & EMAIL CODE (OTP)
   ========================================= */
.gj-auth-google-block {
    margin-bottom: 24px;
}

.gj-google-btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.gj-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--gj-text-muted);
    font-size: 13px;
    font-weight: 500;
    margin: 20px 0;
}

.gj-auth-divider::before,
.gj-auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gj-border);
}

.gj-auth-divider span {
    padding: 0 12px;
}

/* One wide OTP box, not six separate digit inputs - easier to read, and
   pasting a code from an email doesn't break. */
.gj-otp-input {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5em;
    padding-left: 0.5em;
    /* nudge the digits back toward center against the letter-spacing */
}

/* Animations */
.gj-auth-slide-in {
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
 * Turnstile's math-question fallback (only shown when the real Turnstile
 * widget can't load - e.g. no site key on a local/dev environment) injects
 * a bare <label>+<input> with its own inline `margin: 15px 0` right before
 * whichever submit button it's guarding (softinator-universal-turnstile's
 * frontend.js). .gj-auth-form is already a column flex, so it never breaks
 * into an odd two-column row here the way it can in registration-style.css,
 * but left unstyled it still reads as a stray, unstyled line dropped
 * between the form and its button. This matches it to the rest of the
 * form's inputs instead.
 */
.sut-captcha-container {
    margin: 8px 0 16px 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 65px;
}

.sut-captcha-container .sut-captcha {
    display: flex;
    justify-content: center;
    width: 100%;
}

.sut-captcha-container iframe {
    border-radius: 8px !important;
    max-width: 100% !important;
}

.sut-captcha label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gj-text-muted);
}

.sut-captcha .sut-math-answer {
    width: 100%;
    max-width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    color: var(--gj-text-main);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    -moz-appearance: textfield;
}

.sut-captcha .sut-math-answer::-webkit-outer-spin-button,
.sut-captcha .sut-math-answer::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sut-captcha .sut-math-answer:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.gj-auth-otp-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-weight: 400;
}

.gj-auth-otp-footer .gj-auth-link {
    font-weight: 400;
    white-space: nowrap;
}

.gj-auth-divider-dot {
    color: var(--gj-border-color);
    font-size: 14px;
    line-height: 1;
    user-select: none;
}

/* =========================================
   LOGIN METHOD TABS (Compact & Modern)
   ========================================= */
.gj-auth-login-tabs {
    display: flex !important;
    background: #f1f5f9 !important;
    padding: 3px !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
    border: 1px solid #e2e8f0 !important;
    gap: 4px !important;
    position: relative !important;
    user-select: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

html body .gj-auth-card .gj-auth-login-tabs .gj-auth-login-tab,
html body .gj-auth-login-tabs .gj-auth-login-tab {
    flex: 1 1 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 7px 12px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: transparent !important;
    border: none !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: inherit !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    margin: 0 !important;
    text-transform: none !important;
}

html body .gj-auth-card .gj-auth-login-tabs .gj-auth-login-tab svg,
html body .gj-auth-login-tabs .gj-auth-login-tab svg {
    flex-shrink: 0 !important;
    width: 15px !important;
    height: 15px !important;
    stroke: currentColor !important;
    transition: transform 0.2s ease, stroke 0.2s ease !important;
}

html body .gj-auth-card .gj-auth-login-tabs .gj-auth-login-tab:hover:not(.active),
html body .gj-auth-login-tabs .gj-auth-login-tab:hover:not(.active) {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

html body .gj-auth-card .gj-auth-login-tabs .gj-auth-login-tab.active,
html body .gj-auth-login-tabs .gj-auth-login-tab.active {
    background: #ffffff !important;
    color: #1849c7 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

html body .gj-auth-card .gj-auth-login-tabs .gj-auth-login-tab.active svg,
html body .gj-auth-login-tabs .gj-auth-login-tab.active svg {
    stroke: #1849c7 !important;
}

html body .gj-auth-tab-panel {
    display: flex;
    flex-direction: column !important;
    width: 100% !important;
    gap: 18px !important;
    box-sizing: border-box !important;
    animation: gjTabFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gj-panel-slide-right {
    animation: gjTabSlideFromRight 0.32s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.gj-panel-slide-left {
    animation: gjTabSlideFromLeft 0.32s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@keyframes gjTabSlideFromRight {
    0% {
        opacity: 0;
        transform: translateX(18px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes gjTabSlideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-18px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

html body .gj-auth-tab-panel[style*="display:none"],
html body .gj-auth-tab-panel[style*="display: none"],
html body .gj-auth-form[style*="display:none"],
html body .gj-auth-form[style*="display: none"],
html body .gj-auth-card [style*="display:none"],
html body .gj-auth-card [style*="display: none"],
html body .gj-auth-tab-panel.gj-panel-hidden,
html body .gj-auth-form.gj-panel-hidden,
html body .gj-hidden,
html body [hidden] {
    display: none !important;
}

@keyframes gjTabFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gj-auth-otp-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

html body .gj-auth-otp-meta .gj-auth-resend-btn,
html body .gj-auth-resend-btn {
    font-size: 13px !important;
    color: var(--gj-primary, #1849c7) !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    text-underline-offset: 2px !important;
    transition: opacity 0.2s !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
}

html body .gj-auth-otp-meta .gj-auth-resend-btn:hover {
    opacity: 0.8 !important;
    background: transparent !important;
    color: var(--gj-primary, #1849c7) !important;
}

html body .gj-auth-otp-meta .gj-auth-resend-btn:disabled {
    color: #94a3b8 !important;
    text-decoration: none !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.gj-auth-otp-hint {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 12px !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.gj-auth-otp-hint svg {
    flex-shrink: 0 !important;
    color: #64748b !important;
}

.gj-auth-otp-hint strong {
    color: #0f172a !important;
    font-weight: 600 !important;
}

.gj-auth-otp-input {
    letter-spacing: 0.25em !important;
    font-size: 20px !important;
    text-align: center !important;
    font-weight: 600 !important;
    padding: 0 12px !important;
}