:root {
    --primary-color: #7E33CB;
    --primary-hover: #6724AB;
    --text-main: #1F2A37;
    --text-muted: #6B7280;
    --input-border: #E5E7EB;
    --input-focus: #F3E8FF;
}

body {
    background-color: #FAFAFA;
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
}

/* تقسيم الحاوية الكبرى لشاشتين منقسمتين */
.split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* الجانب التسويقي للمعلومات والثقة */
.split-info-side {
    flex: 1;
    background: linear-gradient(135deg, #111827 0%, #2D124D 100%);
    color: #ffffff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.split-info-side::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    filter: blur(120px);
    opacity: 0.2;
    top: -50px;
    right: -50px;
    border-radius: 50%;
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.info-content {
    max-width: 480px;
    margin-top: auto;
    margin-bottom: auto;
}

.info-content h1 {
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.info-content p {
    color: #9CA3AF;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 35px;
}

.trust-points {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.point-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #E5E7EB;
}

.point-item i {
    color: #10B981;
    font-size: 1.2rem;
}

.info-footer {
    font-size: 0.85rem;
    color: #6B7280;
}

/* جانب استمارات التسجيل الفعلي */
.split-form-side {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    background-color: #FAFAFA;
}

.register-card {
    width: 100%;
    max-width: 550px;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    border: 1px solid #F3F4F6;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.form-header-text {
    margin-bottom: 30px;
}

.form-header-text h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-header-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* تنسيق مخصص لحقول الإدخال */
.form-label-custom {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.custom-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-input-icon {
    position: absolute;
    left: 15px;
    color: #9CA3AF;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 5;
}

/* دعم اتجاه الـ Input بناء على لغة الصفحة الافتراضية للتاجر */
[dir="rtl"] .custom-input-icon {
    left: auto;
    right: 15px;
}

.custom-input-wrapper .form-control {
    width: 100%;
    padding: 14px 16px 14px 45px;
    font-size: 0.95rem;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background-color: #FFFFFF;
    color: var(--text-main);
    transition: all 0.2s ease;
    box-shadow: initial;
}

[dir="rtl"] .custom-input-wrapper .form-control {
    padding: 14px 45px 14px 16px;
}

.custom-input-wrapper .form-control:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px var(--input-focus);
    outline: none;
}

/* تفعيل الـ Toggle لرؤية الباسورد بشكل عصري */
.custom-password-toggle {
    position: absolute;
    right: 15px;
    color: #9CA3AF;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 5;
}

[dir="rtl"] .custom-password-toggle {
    right: auto;
    left: 15px;
}

.custom-password-toggle:hover {
    color: var(--primary-color);
}

.text-muted-custom {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

/* التنبيهات المدمجة */
.invalid-feedback {
    font-size: 0.85rem;
    color: #DC2626;
    margin-top: 6px;
    font-weight: 500;
}

.custom-inner-alert {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
    margin-top: 8px;
}

/* زر تقديم النموذج الاحترافي */
.custom-submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(126, 51, 203, 0.2);
}

.custom-submit-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(126, 51, 203, 0.3);
}

.custom-submit-btn:active {
    transform: translateY(0);
}

/* شاشات الهواتف والأجهزة اللوحية */
@media (max-width: 992px) {
    .split-container {
        flex-direction: column;
    }
    .split-info-side {
        padding: 40px 20px;
        min-height: auto;
    }
    .info-content h1 {
        font-size: 1.8rem;
    }
    .info-content p {
        margin-bottom: 20px;
    }
    .split-form-side {
        padding: 30px 15px;
    }
    .register-card {
        padding: 25px 20px;
        border-radius: 16px;
    }
}
