/* تصميم صفحة تسجيل الأعضاء - النسخة الحديثة */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;
    --border-radius-sm: 6px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --box-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* تنسيق عام */
body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #4338ca 0%, #3b82f6 100%);
    background-attachment: fixed;
    color: var(--dark-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.registration-container {
    max-width: 1100px;
    margin: 40px auto;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    overflow: hidden;
    position: relative;
}

/* رأس الصفحة */
.registration-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 35px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.registration-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.registration-header h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.registration-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

/* محتوى الصفحة */
.registration-content {
    padding: 40px;
    position: relative;
}

/* بطاقة النصائح */
.tips-card {
    background-color: var(--gray-100);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 35px;
    border-right: 4px solid var(--primary-color);
    box-shadow: var(--box-shadow-sm);
    position: relative;
    overflow: hidden;
}

.tips-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to left, rgba(241, 245, 249, 0.8), rgba(241, 245, 249, 0));
    pointer-events: none;
}

.tips-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.tips-card .card-header h5 {
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.tips-card .card-header h5::before {
    content: '\f0eb';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 10px;
    color: var(--accent-color);
}

.tips-card ul {
    padding-right: 20px;
    margin: 0;
}

.tips-card ul li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 5px;
}

.tips-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--success-color);
    margin-left: 8px;
    font-size: 14px;
}

/* نموذج التسجيل */
.registration-form {
    background-color: white;
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    position: relative;
}

.registration-form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 16px;
}

.form-control {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--gray-100);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    outline: none;
    background-color: white;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23ef4444' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1.5em 1.5em;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--danger-color);
}

/* أزرار */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

/* تحسينات إضافية */
.alert-danger {
    background-color: #fef2f2;
    border-color: #fee2e2;
    color: #b91c1c;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 25px;
    border-right: 4px solid var(--danger-color);
}

.alert-danger ul {
    margin: 0;
    padding-right: 20px;
}

/* Success Message */
.success-message {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.success-message::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--success-color), var(--primary-color));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.success-icon {
    font-size: 80px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-message h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.success-message p {
    color: var(--gray-500);
    font-size: 18px;
    margin-bottom: 15px;
}

.success-message strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 20px;
}

.next-steps {
    background-color: var(--gray-100);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    text-align: right;
    border-right: 4px solid var(--primary-color);
}

.next-steps h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.next-steps ul {
    padding-right: 20px;
    margin: 0;
}

.next-steps ul li {
    margin-bottom: 10px;
    position: relative;
}

.next-steps ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--success-color);
    margin-left: 8px;
    font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* تصميم متجاوب */
@media (max-width: 992px) {
    .registration-container {
        margin: 30px 20px;
    }

    .registration-header {
        padding: 30px;
    }

    .registration-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .registration-container {
        margin: 20px;
    }

    .registration-header {
        padding: 25px;
    }

    .registration-content {
        padding: 20px;
    }

    .registration-form {
        padding: 25px 20px;
    }
}
