/* ===================================================
   Account / Login Page – Premium Arabic Design
   Theme K | RTL | Tajawal
=================================================== */

.k-auth-page {
    min-height: 100vh;
    background: linear-gradient(175deg, #f8f4f8 0%, #f3f1f8 30%, #f9f9fb 60%, #fff 100%);
    padding: 40px 15px 100px;
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.k-auth-container {
    max-width: 480px;
    width: 100%;
}

/* ── التبويبات ── */
.k-auth-tabs {
    display: flex;
    background: #fff;
    border-radius: 16px;
    padding: 5px;
    gap: 4px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.k-auth-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}

.k-auth-tab.active {
    background: linear-gradient(135deg, #b19cd9 0%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 107, 129, 0.35);
}

.k-auth-tab:hover:not(.active) {
    color: #b19cd9;
    background: #fff5f7;
}

/* ── البطاقة ── */
.k-auth-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px 30px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.k-auth-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, #b19cd9, #ff936b, #ffc371);
}

/* ── العنوان ── */
.k-auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.k-auth-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.k-auth-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.k-auth-header p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* ── الحقول ── */
.k-form-group {
    margin-bottom: 18px;
}

.k-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
}

.k-input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.k-input-icon svg {
    position: absolute;
    right: 14px;
    z-index: 1;
    pointer-events: none;
}

.k-input-icon input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    border: 2px solid #ebebed;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    background: #fafafa;
    transition: all 0.3s ease;
    color: #1a1a2e;
}

.k-input-icon input:focus {
    border-color: #b19cd9;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 107, 129, 0.08);
    outline: none;
}

.k-input-icon input::placeholder {
    color: #bbb;
}

/* ── خيارات ── */
.k-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 13px;
}

.k-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #666;
}

.k-checkbox input {
    accent-color: #b19cd9;
    width: 16px;
    height: 16px;
}

.k-form-options a {
    color: #b19cd9;
    font-weight: 600;
    text-decoration: none;
}

.k-form-options a:hover {
    text-decoration: underline;
}

/* ── أزرار ── */
.k-btn-auth {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #b19cd9 0%, #0f766e 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(255, 107, 129, 0.35);
}

.k-btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(255, 107, 129, 0.5);
}

.k-btn-register {
    background: linear-gradient(135deg, #b19cd9 0%, #43a047 100%);
    box-shadow: 0 6px 24px rgba(76, 175, 80, 0.35);
}

.k-btn-register:hover {
    box-shadow: 0 10px 32px rgba(76, 175, 80, 0.5);
}

/* ── الفاصل ── */
.k-social-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 12px;
}

.k-social-divider::before,
.k-social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.k-social-divider span {
    font-size: 13px;
    color: #999;
    font-weight: 600;
}

/* ── أزرار السوشيال ── */
.k-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.k-social-btn {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #eee;
    border-radius: 14px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.k-google-btn:hover {
    background: #f8f8ff;
    border-color: #4285F4;
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.15);
}

.k-phone-btn:hover {
    background: #f0fff4;
    border-color: #27ae60;
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

/* ── اللوحات ── */
.k-auth-panel {
    display: none;
    animation: kAuthFade 0.35s ease;
}

.k-auth-panel.active {
    display: block;
}

@keyframes kAuthFade {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── ملاحظة ── */
.k-note {
    font-size: 13px;
    color: #888;
    background: #f8f8fa;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    text-align: center;
    border: 1px dashed #ddd;
}

/* ── إخفاء نموذج ووكوميرس الافتراضي ── */
.woocommerce-form-login,
.woocommerce-form-register {
    /* نستخدم قالبنا المخصص */
}

/* ── WooCommerce notices ── */
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
    direction: rtl;
    text-align: right;
    border-radius: 14px;
    font-family: 'Tajawal', sans-serif;
}

/* ── صفحة حسابي (بعد التسجيل) ── */
.woocommerce-MyAccount-navigation {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 10px 18px;
    border-radius: 12px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background: #b19cd9;
    color: #fff;
}

.woocommerce-MyAccount-content {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
}

/* ── جوال ── */
@media (max-width: 600px) {
    .k-auth-page {
        padding: 20px 12px 100px;
    }

    .k-auth-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .k-auth-icon {
        font-size: 40px;
    }

    .k-auth-header h2 {
        font-size: 20px;
    }

    .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
    }
}

