/**
 * صفحة تسجيل الدخول — هوية مطابقة للصفحة الرئيسية (كوانتم / home-lp)
 * يعتمد على design-tokens.css و home-lp.css
 */

.auth-page.lp {
    font-family: var(--lp-font, 'Cairo', sans-serif);
    color: var(--lp-black, #0a0a0a);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.auth-lp-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* خلفية موحّدة — لون واحد يربط الصفحة ثم القسم التزييني يضيف الهيرو مع تلاشي من الحافة */
.auth-lp-wrapper {
    background: var(--k-gray-100, #f5f3f0);
}

/* العمود التزييني — جزء من نفس الخلفية، مع تدرج متحرك وبقع ضوئية */
.auth-lp-decorative {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: transparent;
}

/* خلفية سوداء للقسم التزييني */
.auth-lp-decorative::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--lp-black, #0a0a0a);
    z-index: 0;
}

@media (max-width: 992px) {
    .auth-lp-decorative {
        display: none;
    }
}

/* شبكة خلفية متحركة — فكرة الاتصال والشبكة (منصة متاجر) */
.auth-lp-decorative__grid {
    position: absolute;
    inset: -20%;
    z-index: 1;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: auth-lp-gridDrift 25s linear infinite;
    pointer-events: none;
}

@keyframes auth-lp-gridDrift {
    0% { transform: translate(0, 0) perspective(400px) rotateX(0deg); }
    100% { transform: translate(48px, 24px) perspective(400px) rotateX(2deg); }
}

/* خط تدفق — يمر عبر القسم (فكرة النمو والحركة) */
.auth-lp-decorative__flow {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 2px;
    z-index: 1;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.15) 80%, transparent);
    box-shadow: 0 0 24px rgba(255,255,255,0.2);
    animation: auth-lp-flow 8s ease-in-out infinite;
    pointer-events: none;
}

[dir="rtl"] .auth-lp-decorative__flow {
    left: auto;
    right: -100%;
    animation: auth-lp-flowRtl 8s ease-in-out infinite;
}

@keyframes auth-lp-flow {
    0% { transform: translateX(0); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateX(calc(200vw + 100%)); opacity: 0; }
}

@keyframes auth-lp-flowRtl {
    0% { transform: translateX(0); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateX(calc(-200vw - 100%)); opacity: 0; }
}

/* تدرج متحرك — حركة أوسع (تنفس الخلفية) */
.auth-lp-decorative__gradient {
    position: absolute;
    inset: -80%;
    z-index: 1;
    background:
        radial-gradient(ellipse 70% 50% at 30% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse 60% 70% at 70% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
    animation: auth-lp-gradient 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes auth-lp-gradient {
    0%, 100% { transform: scale(1) rotate(0deg) translate(0, 0); opacity: 1; }
    25% { transform: scale(1.15) rotate(3deg) translate(2%, -1%); opacity: 0.95; }
    50% { transform: scale(1.08) rotate(-2deg) translate(-1%, 2%); opacity: 1; }
    75% { transform: scale(1.2) rotate(2deg) translate(-2%, 1%); opacity: 0.9; }
}

/* بقع ضوئية — مسارات إهليلجية (مدارات) وتنفس */
.auth-lp-decorative__orbs {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.auth-lp-decorative__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
}

.auth-lp-decorative__orb--1 {
    width: 320px;
    height: 320px;
    top: -15%;
    left: -20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 45%, transparent 70%);
    animation: auth-lp-orbOrbit1 18s ease-in-out infinite;
}

.auth-lp-decorative__orb--2 {
    width: 260px;
    height: 260px;
    bottom: -10%;
    right: -15%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
    animation: auth-lp-orbOrbit2 22s ease-in-out infinite 3s;
}

.auth-lp-decorative__orb--3 {
    width: 200px;
    height: 200px;
    top: 45%;
    left: 35%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: auth-lp-orbOrbit3 14s ease-in-out infinite 1.5s;
}

@keyframes auth-lp-orbOrbit1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -35px) scale(1.2); }
    50% { transform: translate(-25px, 30px) scale(0.9); }
    75% { transform: translate(30px, 25px) scale(1.1); }
}

@keyframes auth-lp-orbOrbit2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-45px, -25px) scale(1.15); }
    66% { transform: translate(35px, 20px) scale(0.92); }
}

@keyframes auth-lp-orbOrbit3 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(25px, -30px) scale(1.18) rotate(180deg); }
}

/* أشكال هندسية — عوم ودوران و scale (قوالب/كتل تتحرك) */
.auth-lp-decorative__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.auth-lp-decorative__shape {
    position: absolute;
    border-radius: var(--lp-radius-lg, 20px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.auth-lp-decorative__shape--1 {
    width: 200px;
    height: 200px;
    top: 12%;
    left: 10%;
    animation: auth-lp-shapeFloat 10s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.auth-lp-decorative__shape--2 {
    width: 120px;
    height: 120px;
    bottom: 25%;
    right: 15%;
    animation: auth-lp-shapeFloat 12s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 2s;
}

.auth-lp-decorative__shape--3 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    left: 20%;
    animation: auth-lp-shapeFloat 8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 1s;
}

@keyframes auth-lp-shapeFloat {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.5; }
    20% { transform: translate(18px, -22px) scale(1.08) rotate(8deg); opacity: 0.85; }
    40% { transform: translate(-12px, 15px) scale(0.95) rotate(-5deg); opacity: 0.65; }
    60% { transform: translate(25px, 10px) scale(1.05) rotate(12deg); opacity: 0.9; }
    80% { transform: translate(-8px, -18px) scale(0.98) rotate(-3deg); opacity: 0.7; }
}

/* محتوى العمود التزييني */
.auth-lp-decorative__content {
    position: relative;
    z-index: 2;
    max-width: 360px;
    width: 100%;
}

.auth-lp-decorative__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    animation: auth-lp-fadeUp 0.7s ease-out, auth-lp-titleGlow 6s ease-in-out infinite 1s;
}

.auth-lp-decorative__subtitle {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
    margin: 0 0 32px;
    animation: auth-lp-fadeUp 0.7s ease-out 0.1s both;
}

@keyframes auth-lp-titleGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255,255,255,0.1); }
    50% { text-shadow: 0 0 32px rgba(255,255,255,0.2); }
}

.auth-lp-decorative__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-lp-decorative__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--lp-radius-md, 12px);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
    animation: auth-lp-fadeUp 0.6s ease-out both;
}

.auth-lp-decorative__item:nth-child(1) { animation-delay: 0.2s; }
.auth-lp-decorative__item:nth-child(2) { animation-delay: 0.35s; }
.auth-lp-decorative__item:nth-child(3) { animation-delay: 0.5s; }

.auth-lp-decorative__item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateX(8px) scale(1.02);
}

.auth-lp-decorative__item:hover .auth-lp-decorative__icon {
    transform: scale(1.08);
}

[dir="rtl"] .auth-lp-decorative__item:hover {
    transform: translateX(-6px);
}

.auth-lp-decorative__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--lp-radius-sm, 6px);
    font-size: 1.1rem;
    color: #fff;
    transition: background 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-lp-decorative__item:hover .auth-lp-decorative__icon {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes auth-lp-fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* جسم الصفحة: قسمان على نفس الارتفاع مع محاذاة عمودية واحدة */
.auth-lp-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 0.95fr);
    min-height: 0;
    align-items: stretch;
}

@media (max-width: 992px) {
    .auth-lp-wrapper {
        background: #f5f3f0;
    }
    .auth-lp-body {
        grid-template-columns: 1fr;
    }
}

/* قسم النموذج — محاذاة عمودية مع القسم التزييني */
.auth-lp-main {
    padding: 48px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    position: relative;
}



/* ─── البطاقة: تصميم مبتكر (زاوية مقطوعة، شريط accent، ظل طبقي، حركة دخول) ─── */
.auth-lp-card {
    width: 100%;
    max-width: 448px;
    background: var(--lp-white, #fff);
    border-radius: 24px 24px 24px 6px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 12px 24px rgba(0, 0, 0, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.04);
    padding: 0;
    transition: box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: auth-lp-cardEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

[dir="rtl"] .auth-lp-card {
    border-radius: 24px 24px 6px 24px;
}

/* شريط accent عمودي على الحافة اليمنى */
.auth-lp-card:hover {
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 4px 8px rgba(0, 0, 0, 0.05),
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 40px 80px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

@keyframes auth-lp-cardEnter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* رأس البطاقة — بدون خط تقليدي، مع خط سفلي زخرفي تحت العنوان */
.auth-lp-card__head {
    text-align: center;
    margin-bottom: 0;
    padding: 36px 32px 28px;
    position: relative;
}

.auth-lp-card__title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--lp-black, #0a0a0a);
    margin: 0 0 10px;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.auth-lp-card__subtitle {
    font-size: 0.9375rem;
    color: var(--lp-gray-500, #6b6966);
    margin: 0;
    line-height: 1.5;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.auth-lp-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--lp-radius-md, 12px);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.auth-lp-message i {
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-lp-message strong {
    display: block;
    margin-bottom: 4px;
}

.auth-lp-message p {
    margin: 0;
    opacity: 0.92;
    line-height: 1.5;
}

.auth-lp-message--success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--k-success, #047857);
    border: 1px solid rgba(4, 120, 87, 0.25);
}

.auth-lp-message--warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--k-warning, #92400e);
    border: 1px solid rgba(146, 64, 14, 0.3);
}

.auth-lp-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin: 20px 0;
    background: rgba(10, 10, 10, 0.04);
    border: 1px solid var(--lp-gray-200, #e8e5e0);
    border-radius: var(--lp-radius-md, 12px);
    font-size: 0.875rem;
    color: var(--lp-black, #0a0a0a);
}

.auth-lp-info-box i {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.8;
}

.auth-lp-info-box strong {
    display: block;
    margin-bottom: 4px;
}

.auth-lp-info-box p {
    margin: 0;
    opacity: 0.88;
    line-height: 1.5;
}

.auth-lp-input--code {
    font-size: 1.375rem;
    letter-spacing: 0.35em;
    text-align: center;
}

/* النموذج — مساحة داخل البطاقة بعد الرأس */
.auth-lp-card .auth-lp-form {
    padding: 0 32px 0px;
}

.auth-lp-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-lp-field {
    margin-bottom: 20px;
}

.auth-lp-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lp-black, #0a0a0a);
    margin-bottom: 8px;
}

.auth-lp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-lp-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lp-gray-500, #6b6966);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.35s ease;
}

.auth-lp-input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    font-size: 0.9375rem;
    font-family: inherit;
    line-height: 1.5;
    color: var(--lp-black, #0a0a0a);
    background: var(--lp-gray-100, #f5f3f0);
    border: 1px solid var(--lp-gray-200, #e8e5e0);
    border-radius: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-sizing: border-box;
}

.auth-lp-input::placeholder {
    color: var(--lp-gray-500, #6b6966);
}

.auth-lp-input:focus {
    outline: none;
    border-color: var(--lp-black, #0a0a0a);
    background: var(--lp-white, #fff);
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.12);
}

.auth-lp-input:focus ~ .auth-lp-input-icon,
.auth-lp-input-wrap:focus-within .auth-lp-input-icon {
    color: var(--lp-black, #0a0a0a);
}

.auth-lp-input--error {
    border-color: var(--k-error, #b91c1c);
    background: var(--k-error-bg, rgba(185, 28, 28, 0.06));
}

.auth-lp-password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: none;
    color: var(--lp-gray-500, #6b6966);
    cursor: pointer;
    border-radius: var(--lp-radius-sm, 6px);
    transition: color 0.35s ease, background 0.35s ease;
}

.auth-lp-password-toggle:hover {
    color: var(--lp-black, #0a0a0a);
    background: rgba(10, 10, 10, 0.08);
}

.auth-lp-error {
    font-size: 0.8125rem;
    color: var(--k-error, #b91c1c);
    margin: 6px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-lp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-lp-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--lp-gray-500, #6b6966);
    cursor: pointer;
    user-select: none;
}

.auth-lp-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--lp-black, #0a0a0a);
    cursor: pointer;
}

.auth-lp-check--block {
    display: flex;
    width: 100%;
}

.auth-lp-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lp-black, #0a0a0a);
    text-decoration: none;
    transition: opacity 0.35s ease;
}

.auth-lp-link:hover {
    opacity: 0.85;
    color: var(--lp-black, #0a0a0a);
}

/* الأزرار */
.auth-lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.auth-lp-btn--primary {
    background: var(--lp-black, #0a0a0a);
    color: var(--lp-white, #fff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.auth-lp-btn--primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-lp-btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.auth-lp-btn--google {
    background: var(--lp-white, #fff);
    color: var(--lp-black, #0a0a0a);
    border: 1px solid var(--lp-gray-200, #e8e5e0);
    margin-top: 0;
}

.auth-lp-btn--google:hover {
    border-color: var(--lp-black, #0a0a0a);
    color: var(--lp-black, #0a0a0a);
    background: rgba(10, 10, 10, 0.04);
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.auth-lp-btn--secondary {
    background: transparent;
    color: var(--lp-black, #0a0a0a);
    border: 1px solid var(--lp-gray-200, #e8e5e0);
}

.auth-lp-btn--secondary:hover {
    background: rgba(10, 10, 10, 0.04);
    border-color: var(--lp-black, #0a0a0a);
    color: var(--lp-black, #0a0a0a);
}

.auth-lp-btn--outline {
    background: transparent;
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.35);
}

.auth-lp-btn--outline:hover {
    background: rgba(185, 28, 28, 0.06);
    border-color: #b91c1c;
    color: #b91c1c;
}

.auth-lp-btn-text,
.auth-lp-btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-lp-btn.loading .auth-lp-btn-text { display: none; }
.auth-lp-btn.loading .auth-lp-btn-loader { display: inline-flex !important; }
.auth-lp-btn.loading { pointer-events: none; opacity: 0.8; }

/* فاصل "أو" — تصميم بنقاط وخط رفيع */
.auth-lp-divider {
    text-align: center;
    margin: 28px 0 24px;
    padding: 0 32px;
    position: relative;
}

.auth-lp-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--lp-gray-200, #e8e5e0) 15%, var(--lp-gray-200, #e8e5e0) 85%, transparent 100%);
}

.auth-lp-divider span {
    display: inline-block;
    background: var(--lp-white, #fff);
    padding: 6px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lp-gray-500, #6b6966);
    position: relative;
    z-index: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.auth-lp-footer {
    text-align: center;
    margin-top: 28px;
    padding: 24px 32px 32px;
    border-top: none;
    font-size: 0.9375rem;
    color: var(--lp-gray-500, #6b6966);
    position: relative;
}

.auth-lp-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lp-gray-200, #e8e5e0) 20%, var(--lp-gray-200, #e8e5e0) 80%, transparent);
}

.auth-lp-footer a {
    color: var(--lp-black, #0a0a0a);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
    padding: 4px 10px;
    margin: 0 -10px;
    border-radius: 8px;
}

.auth-lp-footer a:hover {
    opacity: 0.9;
    color: var(--lp-black, #0a0a0a);
    background: rgba(10, 10, 10, 0.06);
}

.w-100 { width: 100%; }

/* شاشة التحميل */
.auth-lp-loading {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.auth-lp-loading__inner {
    text-align: center;
    color: var(--lp-black, #0a0a0a);
    font-size: 1rem;
    font-weight: 500;
}

.auth-lp-loading__inner i {
    display: block;
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--lp-black, #0a0a0a);
}

/* متجاوب */
@media (max-width: 576px) {
    .auth-lp-main { padding: 24px 16px 32px; }
    .auth-lp-card__head { padding: 28px 24px 24px; }
    .auth-lp-card .auth-lp-form { padding: 0 24px 0px; }
    .auth-lp-card__title { font-size: 1.35rem; }
    .auth-lp-divider { padding: 0 24px; }
    .auth-lp-footer { padding: 24px 24px 28px; }
}

/* ─── Legacy: صفحة التسجيل والتحقق من البريد (نفس الهوية) ─── */
.auth-page:not(.lp) {
    font-family: 'Cairo', sans-serif;
    background: var(--lp-gray-100, #f5f3f0);
    color: var(--lp-black, #0a0a0a);
    min-height: 100vh;
    margin: 0;
}
.auth-page-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}
.auth-side {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--lp-gray-100, #f5f3f0);
}
.auth-container {
    max-width: 440px;
    width: 100%;
    background: var(--lp-white, #fff);
    border-radius: var(--lp-radius-lg, 20px);
    box-shadow: var(--lp-shadow-card, 0 2px 20px rgba(0,0,0,0.06));
    padding: 2.5rem 2rem;
}
.auth-brand { position: absolute; top: -3.5rem; right: 0; left: 0; text-align: center; z-index: 10; }
.auth-brand-link { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--lp-black, #0a0a0a); font-weight: 700; font-size: 1.375rem; }
.auth-brand-icon { display: flex; flex-shrink: 0; width: 50px; height: 50px; }
.auth-brand-icon svg { width: 100%; height: 100%; }
.auth-brand-image { height: 50px; width: auto; object-fit: contain; }
.auth-form-container { display: none; opacity: 0; }
.auth-form-container.active { display: block; opacity: 1; }
.auth-form { display: flex; flex-direction: column; gap: 0; }
.auth-header { text-align: center; margin-bottom: 1.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--lp-gray-200, #e8e5e0); }
.auth-header h1 { color: var(--lp-black, #0a0a0a); font-size: 1.75rem; font-weight: 700; margin: 0 0 0.5rem; }
.auth-header p { color: var(--lp-gray-500, #6b6966); font-size: 0.9375rem; margin: 0; }
.form-floating { margin-bottom: 1.25rem; position: relative; }
.form-floating > .form-control {
    padding: 1.25rem 3rem 0.5rem 3rem !important;
    height: calc(3.25rem + 2px);
    background: var(--lp-gray-100, #f5f3f0);
    border: 1px solid var(--lp-gray-200, #e8e5e0);
    border-radius: var(--lp-radius-md, 12px);
    font-family: inherit;
    font-size: 0.9375rem;
    width: 100%;
}
.form-floating > .form-control:focus {
    border-color: var(--lp-black, #0a0a0a);
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.15);
    outline: none;
}
.form-floating > label {
    position: absolute;
    top: 0; right: 0; left: 0;
    padding: 1rem 3rem !important;
    color: var(--lp-gray-500, #6b6966);
    pointer-events: none;
    transition: transform 0.2s ease;
}
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-control:focus ~ label {
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
    color: var(--lp-black, #0a0a0a);
}
.form-control::placeholder { opacity: 0; }
.auth-input-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lp-gray-500, #6b6966);
    z-index: 3;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.password-toggle {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--lp-gray-500, #6b6966);
    cursor: pointer;
    z-index: 3;
}
.error-message { font-size: 0.8125rem; color: var(--k-error, #b91c1c); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.auth-page .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--lp-radius-md, 12px);
    font-family: inherit;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.auth-page .btn-primary {
    background: var(--lp-black, #0a0a0a);
    color: var(--lp-white, #fff);
}
.auth-page .btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.auth-page .btn-google {
    background: var(--lp-white, #fff);
    border: 1px solid var(--lp-gray-200, #e8e5e0);
    color: var(--lp-black, #0a0a0a);
    text-decoration: none;
}
.auth-page .btn-google:hover { border-color: var(--lp-black, #0a0a0a); color: var(--lp-black, #0a0a0a); background: rgba(10, 10, 10, 0.04); }
.w-100 { width: 100%; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.form-divider { text-align: center; margin: 1.5rem 0; position: relative; }
.form-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--lp-gray-200, #e8e5e0); }
.form-divider span { background: var(--lp-white, #fff); padding: 0 1rem; position: relative; font-size: 0.9rem; color: var(--lp-gray-500, #6b6966); }
.form-check { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0; }
.form-check-input { width: 18px; height: 18px; accent-color: var(--lp-black, #0a0a0a); cursor: pointer; }
.form-check-label { font-size: 0.875rem; color: var(--lp-gray-500, #6b6966); cursor: pointer; }
.auth-link { color: var(--lp-black, #0a0a0a); font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.auth-footer { text-align: center; margin-top: 2rem; font-size: 0.9375rem; color: var(--lp-gray-500, #6b6966); }
.auth-footer a { color: var(--lp-black, #0a0a0a); font-weight: 600; text-decoration: none; }
.decorative-side {
    position: relative;
    overflow: hidden;
    background: var(--lp-black, #0a0a0a);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.decorative-content { color: #fff; text-align: center; max-width: 400px; }
.decorative-content h2 { font-size: 1.75rem; margin: 0 0 1rem; }
.decorative-content p { font-size: 0.9375rem; opacity: 0.9; margin: 0 0 1.5rem; line-height: 1.6; }
.decorative-features { display: flex; flex-direction: column; gap: 1rem; text-align: right; }
.decorative-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--lp-radius-md, 12px);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
}
.decorative-feature-item svg { width: 24px; height: 24px; flex-shrink: 0; color: #fff; }
.auth-message {
    padding: 0.875rem 1rem;
    border-radius: var(--lp-radius-md, 12px);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.auth-message.success { background: var(--k-success-bg, rgba(4, 120, 87, 0.08)); color: var(--k-success, #047857); border: 1px solid rgba(4, 120, 87, 0.2); }
.auth-message.error { background: var(--k-error-bg, rgba(185, 28, 28, 0.06)); color: var(--k-error, #b91c1c); border: 1px solid rgba(185, 28, 28, 0.2); }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }
.position-relative { position: relative; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--lp-black, #0a0a0a); }
.text-danger { color: var(--k-error, #b91c1c); }
.small { font-size: 0.8125rem; }
.d-block { display: block; }
.mt-1 { margin-top: 0.25rem; }
.alert.alert-danger { background: var(--k-error-bg, rgba(185, 28, 28, 0.06)); color: var(--k-error, #b91c1c); border: 1px solid rgba(185, 28, 28, 0.15); padding: 1rem; border-radius: var(--lp-radius-md, 12px); margin-bottom: 1rem; }
.alert ul { margin: 0; padding-right: 1.25rem; }
/* ═══ Two-Factor Challenge ═══ */
.auth-2fa-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--k-gray-50, #fafaf9);
    border: 1px solid var(--k-gray-200, #e8e5e0);
    border-radius: var(--k-radius-md, 12px);
    color: var(--k-black, #0a0a0a);
    margin: 0 auto 0.75rem;
}
.auth-2fa-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--k-gray-50, #fafaf9);
    border: 1px solid var(--k-gray-200, #e8e5e0);
    color: var(--k-gray-600, #52504d);
    padding: 0.75rem 1rem;
    border-radius: var(--k-radius-md, 12px);
    margin-bottom: 1.25rem;
    font-size: var(--k-text-sm, 0.875rem);
    line-height: 1.5;
}
.auth-2fa-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--k-gray-500, #6b6966);
}
.auth-2fa-hint {
    font-size: var(--k-text-xs, 0.75rem);
    color: var(--k-gray-500, #6b6966);
    margin-top: 6px;
    line-height: 1.5;
}
.auth-2fa-toggle {
    text-align: center;
    margin-top: 1rem;
}
.auth-2fa-toggle a {
    color: var(--k-gray-600, #52504d);
    font-size: var(--k-text-sm, 0.875rem);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.auth-2fa-toggle a:hover {
    color: var(--k-black, #0a0a0a);
}

@media (max-width: 992px) {
    .auth-page-wrapper { grid-template-columns: 1fr; }
    .auth-page:not(.lp) .decorative-side { display: none; }
    .auth-side { padding: 2rem 1rem; }
}
