/******* Do not edit this file *******
Woody Code Snippets CSS and JS
Saved: Jun 20 2026 | 20:28:07 */
/* ════════════════════════════════════════
   صفحة المصادقة (دخول / تسجيل)
   ════════════════════════════════════════ */
.torath-auth {
    max-width: 480px;
    margin: 40px auto;
    width: 100%;
}

/* ════ التابات (Segmented Control مودرن) ════ */
.torath-auth-tabs {
    display: flex;
    gap: 0;
    max-width: 320px;
    margin: 0 auto 22px;
    position: relative;
    background: #EFE6D8;
    border-radius: 50px;
    padding: 5px;
    z-index: 2;
}
/* المؤشر المنزلق */
.torath-auth-tabs::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    width: calc(50% - 5px);
    background: #7A1E2C;
    border-radius: 50px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(122,30,44,0.25);
    z-index: 1;
}
/* المؤشر يتحرك حسب التبويب النشط (RTL: الدخول يمين) */
.torath-auth[data-active="login"] .torath-auth-tabs::before {
    transform: translateX(0);
}
.torath-auth[data-active="register"] .torath-auth-tabs::before {
    transform: translateX(-100%);
}
.torath-auth-tab {
    flex: 1;
    position: relative;
    z-index: 2;
    font-family: 'Reem Kufi', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #9A8C7A !important;
    background: transparent !important;
    border: none !important;
    padding: 13px 20px !important;
    cursor: pointer;
    border-radius: 50px !important;
    transition: color 0.3s !important;
}
.torath-auth-tab.torath-tab-active {
    color: #FFFFFF !important;
}

/* ════ البوكس الأبيض ════ */
.torath-auth-box {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 36px 34px;
    box-shadow: 0 20px 60px rgba(46,34,24,0.1);
    position: relative;
    z-index: 1;
}

/* ════ الرسائل ════ */
.torath-auth-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    padding: 13px 18px;
    border-radius: 14px;
    margin-bottom: 22px;
    line-height: 1.6;
}
.torath-auth-msg svg { width: 20px; height: 20px; flex-shrink: 0; }
.torath-auth-msg-error { background: #F3DEDE; color: #9A3636; }
.torath-auth-msg-success { background: #E6EDE4; color: #4A6B43; }

/* ════ اللوحات ════ */
.torath-auth-panel { display: none; }
.torath-auth-panel.torath-panel-show {
    display: block;
    animation: torath-auth-fade 0.4s ease;
}
@keyframes torath-auth-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* رأس اللوحة */
.torath-auth-head {
    text-align: center;
    margin-bottom: 26px;
}
.torath-auth-head h2 {
    font-family: 'Reem Kufi', sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #2E2218 !important;
    margin: 0 0 8px !important;
}
.torath-auth-head p {
    font-family: 'Cairo', sans-serif !important;
    font-size: 14px !important;
    color: #9A8C7A !important;
    margin: 0 !important;
}

/* ════ الفورم ════ */
.torath-auth-form { width: 100%; }

/* Honeypot - مخفي تمامًا */
.torath-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* صف الاسمين */
.torath-auth-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* الحقول */
.torath-auth-field {
    position: relative;
    margin-bottom: 16px;
}
.torath-auth-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B98A3E;
    pointer-events: none;
    z-index: 2;
}
.torath-auth-icon svg { width: 19px; height: 19px; }

.torath-auth-form input[type="text"],
.torath-auth-form input[type="email"],
.torath-auth-form input[type="password"] {
    font-family: 'Cairo', sans-serif !important;
    font-size: 14px !important;
    color: #2E2218 !important;
    background: #FAF6EE !important;
    border: 1.5px solid #EFE6D8 !important;
    border-radius: 14px !important;
    height: 52px !important;
    line-height: 52px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 48px 0 16px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
/* الحقول اللي من غير أيقونة (الاسم الأخير) */
.torath-auth-grid2 .torath-auth-field:last-child input {
    padding: 0 16px !important;
}
.torath-auth-form input:focus {
    outline: none !important;
    border-color: #7A1E2C !important;
    box-shadow: 0 0 0 3px rgba(122,30,44,0.07) !important;
}
.torath-auth-form input::placeholder { color: #B5A898 !important; }

/* زر إظهار كلمة المرور */
.torath-auth-eye {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    color: #B5A898;
    display: flex;
    align-items: center;
    z-index: 2;
    transition: color 0.2s;
}
.torath-auth-eye:hover { color: #7A1E2C; }
.torath-auth-eye.torath-eye-on { color: #7A1E2C; }
.torath-auth-eye svg { width: 18px; height: 18px; }

/* صف التذكّر + النسيان */
.torath-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 10px;
    flex-wrap: wrap;
}
.torath-auth-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    color: #6B5D4F;
}
.torath-auth-remember input {
    width: 16px !important;
    height: 16px !important;
    accent-color: #7A1E2C;
    cursor: pointer;
    margin: 0 !important;
}
.torath-auth-forgot {
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #7A1E2C;
    text-decoration: none;
    transition: color 0.2s;
}
.torath-auth-forgot:hover { color: #561420; text-decoration: underline; }

/* الزر الرئيسي */
.torath-auth-btn {
    width: 100% !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    background: #7A1E2C !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px !important;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s !important;
    height: auto !important;
}
.torath-auth-btn:hover {
    background: #561420 !important;
    transform: translateY(-2px);
}

/* الشروط */
.torath-auth-terms {
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    color: #9A8C7A;
    text-align: center;
    line-height: 1.7;
    margin: 16px 0 0;
}
.torath-auth-terms a { color: #7A1E2C; font-weight: 600; text-decoration: none; }
.torath-auth-terms a:hover { text-decoration: underline; }

/* ════ السوشيال ════ */
.torath-auth-social {
    margin-top: 26px;
    text-align: center;
}
.torath-auth-or {
    display: block;
    position: relative;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    color: #9A8C7A;
    margin-bottom: 18px;
}
.torath-auth-or::before,
.torath-auth-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 28%;
    height: 1.5px;
    background: #EFE6D8;
}
.torath-auth-or::before { right: 0; }
.torath-auth-or::after { left: 0; }
.torath-auth-social-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.torath-social-btn {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1.5px solid #EFE6D8;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    transition: all 0.2s;
}
.torath-social-btn:hover {
    border-color: #7A1E2C;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46,34,24,0.08);
}

/* مسجّل بالفعل */
.torath-auth-logged {
    max-width: 480px;
    margin: 60px auto;
    text-align: center;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    color: #2E2218;
    background: #FFFFFF;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(46,34,24,0.08);
}
.torath-auth-logged a { color: #7A1E2C; font-weight: 700; }

/* ════ موبايل ════ */
@media (max-width: 520px) {
    .torath-auth-box { padding: 28px 20px; }
    .torath-auth-tabs { max-width: 100%; }
    .torath-auth-grid2 { grid-template-columns: 1fr; gap: 0; }
    .torath-auth-grid2 .torath-auth-field:last-child input { padding: 0 48px 0 16px !important; }
    .torath-auth-head h2 { font-size: 21px !important; }
}


/* البليس هولدر يمين حتى مع dir=ltr */
.torath-auth-form input[dir="ltr"] {
    text-align: right !important;
}
.torath-auth-form input[dir="ltr"]::placeholder {
    text-align: right !important;
    direction: rtl !important;
}
/* لما العميل يكتب، النص يبقى ltr طبيعي */
.torath-auth-form input[dir="ltr"]:focus,
.torath-auth-form input[dir="ltr"]:not(:placeholder-shown) {
    text-align: left !important;
    direction: ltr !important;
}


/* ════ view نسيت كلمة المرور ════ */
.torath-auth-forgot-view {
    display: none;
    max-width: 480px;
    margin: 40px auto;
    width: 100%;
}
.torath-forgot-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: #FAF6EE;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.torath-forgot-icon svg { width: 32px; height: 32px; color: #B98A3E; }
.torath-forgot-back {
    display: block;
    text-align: center;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #7A1E2C;
    text-decoration: none;
    margin-top: 20px;
    transition: color 0.2s;
}
.torath-forgot-back:hover { color: #561420; }





