/* ==========================================================================
   Auth Pages — تصميم الدخول وإنشاء الحساب (شاشة مقسومة، RTL)
   --------------------------------------------------------------------------
   متناسق مع قالب qrmenu-landing:
   - الألوان: ink #171412 / muted #5E5750 / line #D9D2C8 / soft #F7F5F2 / accent #C2410C
   - الخط: خط القالب (Noto Sans Arabic) إن وُجد، وإلا Noto Kufi Arabic المرفق
   - الأشكال: حقول وأزرار بزوايا 12px وارتفاع 3rem
   - الهيكل: عمود النموذج + لوحة جانبية (≥1024px) فيها عبارة وجوال متحرك
   الاتجاه RTL، فعمود النموذج على اليمين واللوحة الجانبية على اليسار.
   ========================================================================== */

.authpg-auth-body,
.authpg-auth-shortcode {
    --authpg-ink: #171412;
    --authpg-ink-2: #3f3a35;
    --authpg-muted: #5e5750;
    --authpg-muted-2: #6b635b;
    --authpg-placeholder: #756d65;
    --authpg-line: #d9d2c8;
    --authpg-line-soft: #e8e3dc;
    --authpg-soft: #f7f5f2;
    --authpg-brand: #c2410c;
    --authpg-brand-d: #9a3412;
    --authpg-green: #1e5b47;
    --authpg-danger: #c62828;
    --authpg-danger-bg: rgba(198, 40, 40, .07);
    --authpg-success-bg: rgba(30, 91, 71, .08);
    --authpg-radius: .75rem;
    --authpg-font: var(--f-body, "Noto Sans Arabic", "Noto Kufi Arabic", "Noto Kufi Fallback", "Segoe UI", Tahoma, Arial, sans-serif);
    color: var(--authpg-ink);
    direction: rtl;
    font-family: var(--authpg-font);
    -webkit-font-smoothing: antialiased;
    line-height: 1.7;
    text-align: start;
}

/* لون الزر عند التحويم: أغمق بنحو 18% من لون الهوية، مع احتياطي للمتصفحات القديمة */
@supports (color: color-mix(in srgb, red, black)) {
    .authpg-auth-body,
    .authpg-auth-shortcode {
        --authpg-brand-d: color-mix(in srgb, var(--authpg-brand) 82%, #000);
    }
}

body.authpg-auth-body {
    margin: 0;
    background: #fff;
}

.authpg-auth-body *,
.authpg-auth-body *::before,
.authpg-auth-body *::after,
.authpg-auth-shortcode *,
.authpg-auth-shortcode *::before,
.authpg-auth-shortcode *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:where(.authpg-auth-body, .authpg-auth-shortcode) :where(h1, p) {
    margin: 0;
}

:where(.authpg-auth-body, .authpg-auth-shortcode) a {
    text-decoration: none;
}

/* ----- الهيكل العام ----- */
.authpg-auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
}

@media (min-width: 1024px) {
    .authpg-auth-page:not(.authpg-auth-page--solo) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(480px, 42%);
    }
}

.authpg-auth-pane {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: env(safe-area-inset-top, 0px) 1.5rem max(1.5rem, env(safe-area-inset-bottom, 0px));
}

@media (min-width: 640px) {
    .authpg-auth-pane {
        padding-inline: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .authpg-auth-pane {
        padding-bottom: 2.5rem;
    }
}

/* ----- الشريط العلوي: الشعار فقط ----- */
.authpg-auth-topbar {
    display: flex;
    flex: none;
    align-items: center;
    height: 4rem;
}

.authpg-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--authpg-ink);
    border-radius: .625rem;
}

.authpg-auth-brand:hover,
.authpg-auth-brand:focus-visible {
    color: var(--authpg-ink);
}

.authpg-auth-brand svg,
.authpg-auth-brand img {
    flex: none;
    display: block;
    height: 2rem;
    width: auto;
}

.authpg-auth-brand-name {
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1;
}

.authpg-auth-center {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0 2.5rem;
}

.authpg-auth-layout {
    width: 100%;
    max-width: 27.5rem;
}

.authpg-auth-card {
    width: 100%;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* ----- العناوين ----- */
.authpg-auth-title {
    margin: 0;
    color: var(--authpg-ink);
    font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    text-wrap: balance;
}

.authpg-auth-head {
    margin: 0;
}

.authpg-auth-description {
    margin: .75rem 0 0;
    color: var(--authpg-muted);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.75;
}

.authpg-auth-form {
    margin: 1.75rem 0 0;
}

.authpg-auth-notice + .authpg-auth-form,
.authpg-auth-social-wrap + .authpg-auth-form {
    margin-top: 0;
}

.authpg-auth-social-wrap {
    margin: 1.75rem 0 0;
}

/* ----- الحقول ----- */
.authpg-auth-field {
    margin: 0 0 1.25rem;
}

.authpg-auth-label {
    display: block;
    margin: 0 0 .5rem;
    color: var(--authpg-ink);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.5;
}

.authpg-auth-input {
    display: block;
    width: 100%;
    height: 3rem;
    min-width: 0;
    border: 1px solid var(--authpg-line);
    border-radius: var(--authpg-radius);
    background: #fff;
    color: var(--authpg-ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: normal;
    outline: none;
    padding: 0 1rem;
    text-align: start;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}

.authpg-auth-input::placeholder {
    color: var(--authpg-placeholder);
    opacity: 1;
}

.authpg-auth-input:focus {
    border-color: var(--authpg-ink);
    box-shadow: 0 0 0 3px rgba(23, 20, 18, .12);
}

.authpg-auth-field.is-error .authpg-auth-input {
    border-color: var(--authpg-danger);
}

.authpg-auth-field.is-error .authpg-auth-input:focus {
    box-shadow: 0 0 0 3px rgba(198, 40, 40, .14);
}

.authpg-auth-field-error {
    display: none;
    margin: .5rem 0 0;
    color: var(--authpg-danger);
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.6;
}

.authpg-auth-field.is-error .authpg-auth-field-error {
    display: block;
}

.authpg-auth-password {
    position: relative;
}

.authpg-auth-password .authpg-auth-input {
    padding-inline-end: 3rem;
}

.authpg-auth-password-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: .25rem;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 0;
    border-radius: .625rem;
    background: transparent;
    color: var(--authpg-muted);
    cursor: pointer;
    padding: 0;
    transform: translateY(-50%);
    transition: color .2s, background-color .2s;
}

.authpg-auth-password-toggle:hover,
.authpg-auth-password-toggle:focus-visible {
    color: var(--authpg-ink);
    background: rgba(23, 20, 18, .06);
    outline: none;
}

.authpg-auth-password-toggle span:not([hidden]) {
    display: grid;
    place-items: center;
}

.authpg-auth-password-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
}

/* ----- الروابط داخل النص ----- */
.authpg-auth-forgot-link,
.authpg-auth-more a,
.authpg-auth-checkbox-row a,
.authpg-auth-terms-note a,
.authpg-auth-social-note a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color .2s, text-decoration-color .2s;
}

.authpg-auth-forgot-link,
.authpg-auth-more a {
    color: var(--authpg-brand);
    font-weight: 600;
    text-decoration-color: color-mix(in srgb, var(--authpg-brand) 35%, transparent);
}

.authpg-auth-forgot-link:hover,
.authpg-auth-more a:hover {
    color: var(--authpg-brand-d);
    text-decoration-color: currentColor;
}

.authpg-auth-forgot-link {
    display: inline-block;
    margin-top: .625rem;
    font-size: .875rem;
}

/* ----- مربع الموافقة على الشروط ----- */
.authpg-auth-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    margin: 0;
    color: var(--authpg-muted);
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.75;
    cursor: pointer;
}

.authpg-auth-checkbox-row input {
    flex: 0 0 auto;
    width: 1.125rem;
    height: 1.125rem;
    margin: .3rem 0 0;
    accent-color: var(--authpg-brand);
    cursor: pointer;
}

.authpg-auth-checkbox-row a,
.authpg-auth-terms-note a,
.authpg-auth-social-note a {
    color: var(--authpg-ink);
    font-weight: 600;
    text-decoration-color: rgba(23, 20, 18, .3);
}

.authpg-auth-checkbox-row a:hover,
.authpg-auth-terms-note a:hover,
.authpg-auth-social-note a:hover {
    color: var(--authpg-ink);
    text-decoration-color: currentColor;
}

.authpg-auth-field--checkbox {
    margin-bottom: 1.25rem;
}

/* Turnstile بحجمه الافتراضي (300×65) */
.authpg-auth-field--turnstile {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 1.25rem;
}

/* ----- الأزرار ----- */
.authpg-auth-button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 0;
    border-radius: var(--authpg-radius);
    background: var(--authpg-brand);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    padding: .7rem 1.75rem;
    text-align: center;
    white-space: nowrap;
    transition: background-color .2s, transform .2s;
}

.authpg-auth-button:hover,
.authpg-auth-button:focus-visible {
    background: var(--authpg-brand-d);
    color: #fff;
}

.authpg-auth-button:active {
    transform: scale(.98);
}

.authpg-auth-button:disabled,
.authpg-auth-button.is-loading {
    opacity: .7;
    cursor: progress;
    transform: none;
}

.authpg-auth-button--block {
    display: flex;
    width: 100%;
}

.authpg-auth-form .authpg-auth-button--block {
    margin-top: 2rem;
}

/* زر ثانوي (جوجل + زر اللوحة الجانبية) */
.authpg-auth-social,
.authpg-auth-button--outline {
    display: flex;
    width: 100%;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    border: 1px solid var(--authpg-line);
    border-radius: var(--authpg-radius);
    background: #fff;
    color: var(--authpg-ink);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    padding: .65rem 1.25rem;
    transition: border-color .2s, transform .2s;
}

.authpg-auth-social svg {
    flex: none;
}

.authpg-auth-social:hover,
.authpg-auth-social:focus-visible,
.authpg-auth-button--outline:hover,
.authpg-auth-button--outline:focus-visible {
    border-color: rgba(23, 20, 18, .4);
    background: #fff;
    color: var(--authpg-ink);
}

.authpg-auth-social:active,
.authpg-auth-button--outline:active {
    transform: scale(.98);
}

.authpg-auth-social-note {
    margin: .875rem 0 0;
    color: var(--authpg-muted-2);
    font-size: .8125rem;
    line-height: 1.7;
    text-align: center;
}

/* ----- فاصل "أو" ----- */
.authpg-auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--authpg-muted-2);
    font-size: .875rem;
    font-weight: 500;
}

.authpg-auth-divider::before,
.authpg-auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--authpg-line-soft);
}

/* ----- ملاحظة الشروط أسفل الزر + روابط المساعدة ----- */
.authpg-auth-terms-note {
    margin: 1rem 0 0;
    color: var(--authpg-muted-2);
    font-size: .875rem;
    line-height: 1.75;
}

.authpg-auth-more {
    margin: 2rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--authpg-line-soft);
    color: var(--authpg-muted);
    font-size: .9375rem;
    line-height: 1.7;
}

.authpg-auth-more p + p {
    margin-top: .5rem;
}

/* ----- زر الرجوع ----- */
.authpg-auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 1.5rem;
    padding: .5rem 1rem;
    border-radius: 9999px;
    background: var(--authpg-soft);
    color: var(--authpg-ink-2);
    font-size: .875rem;
    font-weight: 600;
    transition: background-color .2s, color .2s;
}

.authpg-auth-back-link:hover,
.authpg-auth-back-link:focus-visible {
    background: var(--authpg-line-soft);
    color: var(--authpg-ink);
}

.authpg-auth-back-link svg {
    transform: scaleX(-1); /* السهم يشير لليمين لأن الاتجاه RTL */
}

/* ----- honeypot: مخفي بصريًا ومن قارئات الشاشة ----- */
.authpg-auth-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ----- التنبيهات ----- */
.authpg-auth-notice {
    margin: 1.5rem 0 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--authpg-radius);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.75;
    padding: .875rem 1rem;
}

.authpg-auth-notice-text {
    margin: 0;
}

.authpg-auth-notice--error {
    --authpg-notice-color: var(--authpg-danger);
    border-color: rgba(198, 40, 40, .22);
    background: var(--authpg-danger-bg);
    color: var(--authpg-notice-color);
}

.authpg-auth-notice--success {
    --authpg-notice-color: var(--authpg-green);
    border-color: rgba(30, 91, 71, .25);
    background: var(--authpg-success-bg);
    color: var(--authpg-notice-color);
}

.authpg-auth-resend-form {
    margin-top: .75rem;
}

.authpg-auth-resend-btn {
    border: 1px solid var(--authpg-notice-color, currentColor);
    border-radius: .625rem;
    background: transparent;
    color: var(--authpg-notice-color, inherit);
    cursor: pointer;
    font: inherit;
    font-size: .8125rem;
    font-weight: 600;
    padding: .45rem .95rem;
    transition: background-color .2s, color .2s;
}

.authpg-auth-resend-btn:hover,
.authpg-auth-resend-btn:focus-visible,
.authpg-auth-resend-btn:active {
    background: var(--authpg-notice-color, currentColor);
    color: #fff;
    outline: none;
}

/* ----- إمكانية الوصول ----- */
.authpg-auth-body a:focus-visible,
.authpg-auth-shortcode a:focus-visible,
.authpg-auth-body button:focus-visible,
.authpg-auth-checkbox-row input:focus-visible {
    outline: 2px solid var(--authpg-ink);
    outline-offset: 2px;
}

/* ==========================================================================
   اللوحة الجانبية (≥1024px): عبارة + زر + جوال يصعد من الأسفل فوق قرص أصفر
   ========================================================================== */
.authpg-auth-aside {
    display: none;
}

@media (min-width: 1024px) {
    .authpg-auth-aside {
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        background: var(--authpg-soft);
    }
}

.authpg-auth-aside-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 6vh, 5rem) 2.5rem 0;
    text-align: center;
}

.authpg-auth-aside-title {
    max-width: 26rem;
    color: var(--authpg-ink);
    font-size: clamp(1.75rem, 1.1rem + 1.1vw, 2.125rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
    text-wrap: balance;
}

.authpg-auth-aside-title span {
    color: var(--authpg-brand);
}

.authpg-auth-aside-text {
    max-width: 24rem;
    margin-top: 1rem;
    color: var(--authpg-muted);
    font-size: 1rem;
    line-height: 1.75;
    text-wrap: balance;
}

.authpg-auth-aside .authpg-auth-button--outline {
    width: auto;
    margin-top: 1.5rem;
    padding-inline: 1.75rem;
}

.authpg-auth-aside-visual {
    position: relative;
    display: flex;
    flex: none;
    justify-content: center;
    margin-bottom: -4rem; /* الهاتف مثبّت من الأسفل ويُقصّ طرفه السفلي بمقدار ثابت، فيبقى موضعه نفسه بملء الشاشة وبدونه */
    --authpg-pw: min(310px, 30vw); /* حجم ثابت لا يتأثر بارتفاع الشاشة (ملء الشاشة أو لا) */
}

.authpg-auth-disc {
    display: none; /* الدائرة الخلفية أُلغيت */
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    margin-inline: auto;
    width: 500px;
    max-width: 100%;
    height: 250px;
    overflow: hidden;
    pointer-events: none;
}

.authpg-auth-disc::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 500px;
    border: 1px solid color-mix(in srgb, var(--authpg-brand) 22%, #fff);
    border-radius: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 6%, color-mix(in srgb, var(--authpg-brand) 12%, #fff) 50%, color-mix(in srgb, var(--authpg-brand) 28%, #fff) 100%);
}

/* ----- الجوال: نفس إطار iPhone 17 Pro في الصفحة الرئيسية للقالب (كامل) ----- */
.authpg-auth-phone {
    position: relative;
    /* الجوال كاملًا بدون قصّ (لا overflow:hidden كي لا يظهر حدّ مستطيل لظلّه) */
    width: var(--authpg-pw);
    height: calc(var(--authpg-pw) * 2.1083);
    animation: authpg-phone-rise .8s cubic-bezier(.22, 1, .36, 1) .1s both;
}

.authpg-iphone {
    position: relative;
    width: var(--authpg-pw);
    aspect-ratio: 72 / 151.8;
    direction: ltr;
}

.authpg-ip-frame {
    position: absolute;
    inset: 0;
    padding: 2.5%;
    border-radius: 16% / 7.7%;
    background: linear-gradient(140deg, #6b6e76 0%, #2a2c31 18%, #16171a 45%, #2c2e34 72%, #55585f 100%);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28), inset 0 0 0 3.5px #0b0b0d, inset 0 0 0 4.5px rgba(255, 255, 255, .08);
}

.authpg-ip-btn {
    position: absolute;
    z-index: 0;
    width: 1.2%;
    border-radius: 2px;
    background: linear-gradient(90deg, #3a3c42, #1b1c1f);
}

.authpg-ip-action { left: -.9%; top: 14.2%; height: 3.6%; }
.authpg-ip-vol1 { left: -.9%; top: 20.5%; height: 6.6%; }
.authpg-ip-vol2 { left: -.9%; top: 28.5%; height: 6.6%; }
.authpg-ip-power { right: -.9%; top: 24%; height: 10.5%; background: linear-gradient(270deg, #3a3c42, #1b1c1f); }

.authpg-ip-screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 13.6% / 6.5%;
    background: #fff;
}

.authpg-ip-shot {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    pointer-events: none;
    user-select: none;
}

.authpg-ip-island {
    position: absolute;
    top: 1.7%;
    left: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 29.5%;
    height: 3.55%;
    padding-inline-end: 6%;
    border-radius: 99px;
    background: #000;
    transform: translateX(-50%);
}

.authpg-ip-cam {
    width: 22%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2b3a63, #0a0d18 70%);
}

.authpg-ip-home {
    position: absolute;
    bottom: .8%;
    left: 50%;
    z-index: 5;
    width: 34%;
    height: .55%;
    min-height: 3px;
    border-radius: 99px;
    background: #111;
    transform: translateX(-50%);
}

@keyframes authpg-phone-rise {
    from {
        opacity: 0;
        transform: translateY(2.5rem);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ----- Live demo داخل إطار الهاتف (نفس فكرة القالب): الـ iframe فوق الصورة، والصورة تبقى placeholder أثناء التحميل ----- */
.authpg-ip-live {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: block;
    width: 390px;
    height: 844px;
    max-width: none;
    border: 0;
    background: #fff;
    opacity: 0;
    transform-origin: 0 0;
    transition: opacity .35s ease;
}

.authpg-ip-live.is-ready {
    opacity: 1;
}

/* Skeleton loading: نفس القالب (qrmenu-landing) ويطابق صفحة المنيو الحقيقية (أبعاد لقطة 412×893). يظهر فوق الصورة أثناء تحميل الـ live demo، ويُخفى عند جاهزيته أو تعذّر التضمين */
.authpg-ip-skel{display:none;position:absolute;inset:0;z-index:1;background:#fff;overflow:hidden;pointer-events:none;direction:ltr}
@media(min-width:1024px){.authpg-ip-screen[data-authpg-live-src] .authpg-ip-skel{display:block}}
.authpg-ip-screen.is-live .authpg-ip-skel{display:none}
.authpg-ip-skel>*{position:absolute;display:block}
.authpg-ip-skel .sk{background:#ececec;border-radius:8px;overflow:hidden}
.authpg-ip-skel .sk::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);animation:authpg-ip-shimmer 1.3s infinite}
.authpg-ip-skel .acc{background:#ececec}
@keyframes authpg-ip-shimmer{to{transform:translateX(100%)}}
.authpg-ip-skel .k-search{left:6%;top:2.4%;width:4.6%;height:2.1%;border-radius:50%}
.authpg-ip-skel .k-menu{right:6.2%;top:2.6%;width:4.4%;height:1.7%;border-radius:3px}
.authpg-ip-skel .k-cover{left:0;right:0;top:5.4%;height:23.4%;border-radius:0}
.authpg-ip-skel .k-logo{right:3.9%;top:28.7%;width:19.4%;height:9%;border-radius:14px;border:3px solid #fff;box-sizing:border-box}
.authpg-ip-skel .k-name{right:27%;top:30.4%;width:23%;height:2%}
.authpg-ip-skel .k-sub{right:27%;top:35.8%;width:38%;height:1.5%}
.authpg-ip-skel .k-open{left:3.6%;top:32.4%;width:17.7%;height:3.2%;border-radius:99px}
.authpg-ip-skel .c1,.authpg-ip-skel .c2,.authpg-ip-skel .c3,.authpg-ip-skel .c4,.authpg-ip-skel .c5{top:40.4%;height:4.7%;border-radius:99px}
.authpg-ip-skel .c1{right:4.6%;width:14.6%}
.authpg-ip-skel .c2{right:21%;width:14.6%}
.authpg-ip-skel .c3{right:36.8%;width:19.4%}
.authpg-ip-skel .c4{right:59.2%;width:23.8%}
.authpg-ip-skel .c5{left:1.5%;width:13%}
.authpg-ip-skel .k-line{left:0;right:0;top:46.7%;height:1px;background:#f0f0f0}
.authpg-ip-skel .k-title{right:5.2%;top:48.6%;width:13%;height:2.1%}
.authpg-ip-skel .sk-img{left:4.4%;width:22%;height:8.6%;border-radius:8px}
.authpg-ip-skel .t1{right:5.2%;width:13%;height:1.7%}
.authpg-ip-skel .t2{right:5.2%;width:56%;height:1.3%}
.authpg-ip-skel .t3{right:5.2%;width:32%;height:1.3%}
.authpg-ip-skel .t4{right:5.2%;width:14%;height:1.5%;background:#ececec}
.authpg-ip-skel .r1{--y:53.4%}.authpg-ip-skel .r2{--y:65%}.authpg-ip-skel .r3{--y:76.4%}.authpg-ip-skel .r4{--y:87.7%}
.authpg-ip-skel .sk-img{top:var(--y)}
.authpg-ip-skel .t1{top:calc(var(--y) + .6%)}
.authpg-ip-skel .t2{top:calc(var(--y) + 3.2%)}
.authpg-ip-skel .t3{top:calc(var(--y) + 5%)}
.authpg-ip-skel .t4{top:calc(var(--y) + 7.2%)}
@media(prefers-reduced-motion:reduce){.authpg-ip-skel .sk::after{animation:none}}
.authpg-ip-screen.is-skel-off .authpg-ip-skel{display:none}


/* غطاء خلف الجزيرة عند تمرير المنيو الحي كي لا يظهر المحتوى تحتها */
.authpg-ip-screen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    height: calc(5.25% + 6px);
    background: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
}

.authpg-ip-screen.is-scrolled::before {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .authpg-ip-live,
    .authpg-ip-screen::before {
        transition: none;
    }
}

/* ==========================================================================
   الشورت كود: بطاقة داخل صفحة (بدون لوحة جانبية)
   ========================================================================== */
.authpg-auth-shortcode {
    display: flex;
    justify-content: center;
    width: 100%;
}

.authpg-auth-shortcode .authpg-auth-card {
    max-width: 27.5rem;
    border: 1px solid var(--authpg-line-soft);
    border-radius: 1.25rem;
    background: #fff;
    padding: 2rem;
}

.authpg-auth-shortcode .authpg-auth-title {
    font-size: 1.75rem;
}

@media (max-width: 640px) {
    .authpg-auth-shortcode .authpg-auth-card {
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .authpg-auth-body *,
    .authpg-auth-body *::before,
    .authpg-auth-body *::after,
    .authpg-auth-shortcode *,
    .authpg-auth-shortcode *::before,
    .authpg-auth-shortcode *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================================================
   اللغات: تبديل ar / en (RTL / LTR)
   ========================================================================== */
html[dir="ltr"] .authpg-auth-body,
.authpg-auth-shortcode[dir="ltr"] {
    direction: ltr;
}

html[lang="en"] .authpg-auth-body,
html[lang="tr"] .authpg-auth-body,
.authpg-auth-shortcode[lang="en"],
.authpg-auth-shortcode[lang="tr"] {
    --authpg-font: var(--f-body, "Noto Kufi Arabic", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif);
    letter-spacing: 0;
}

.authpg-auth-topbar {
    justify-content: space-between;
    gap: 1rem;
}

.authpg-lang {
    position: relative;
}

.authpg-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    height: 36px;
    padding: 0 .75rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--authpg-ink-2);
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.authpg-lang-btn:hover,
.authpg-lang.open > .authpg-lang-btn {
    background: rgba(23, 20, 18, .06);
    color: var(--authpg-ink);
}

.authpg-lang-btn:focus-visible {
    outline: 2px solid var(--authpg-ink);
    outline-offset: 2px;
}

.authpg-lang-panel {
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-end: 0;
    z-index: 70;
    width: 240px;
    max-width: calc(100vw - 2rem);
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(23, 20, 18, .1);
    border-radius: 22px;
    box-shadow: 0 24px 60px -20px rgba(23, 20, 18, .28), 0 2px 8px rgba(23, 20, 18, .06);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .18s, transform .18s, visibility .18s;
}

.authpg-lang-panel::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: -14px;
    height: 14px;
}

.authpg-lang.open > .authpg-lang-panel {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.authpg-lang-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 15px;
    color: var(--authpg-ink);
    text-decoration: none;
}

.authpg-lang-panel a:hover,
.authpg-lang-panel a:focus-visible {
    background: rgba(23, 20, 18, .06);
    outline: 0;
}

.authpg-lang-panel [aria-selected="true"] a {
    font-weight: 600;
}

/* أعلام اللغات (دائرية، SVG محلية) */
.authpg-flag {
    display: block;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(23, 20, 18, .1);
    background: #f3f1ee;
    object-fit: cover;
}

.authpg-lang-name {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
}

.authpg-lang-panel .authpg-flag {
    width: 24px;
    height: 24px;
}
