/* الأساسيات */
:root {
    --primary: #8b5cf6;
    --secondary: #4f46e5;
    --accent: #3498DB;
    --light: #ECF0F1;
    --dark: #2C3E50;
    --gray: #95A5A6;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #8b5cf6;
    --font-primary: 'Tajawal', sans-serif;
}
input::placeholder, textarea::placeholder {
    text-align: right; /* محاذاة النص إلى اليمين */
    direction: rtl;    /* تحديد اتجاه النص من اليمين لليسار */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-image: url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    direction: rtl;
}
/* بطاقة التسجيل */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: #ffffffd9;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

.card h4 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
}

.card p {
    color: var(--gray);
    margin-bottom: 30px;
    text-align: center;
    font-size: 16px;
}

/* الأزرار */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
}

.btn-primary {
    background-color: var(--secondary);
    color: #ffffffd9;
}

.btn-primary:hover {
    background-color: #4a24a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background-color: var(--light);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: #d5dbdd;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success);
    color: #ffffffd9;
}

.btn-success:hover {
    background-color: #219653;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-outline-secondary {
    background-color: transparent;
    border: 1px solid var(--gray);
    color: var(--dark);
}

.btn-outline-secondary:hover {
    background-color: var(--light);
}

/* حقول الإدخال */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
    outline: none;
    background-color: #ffffffd9;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}
#btn_log{
    width: 6%;
    margin-bottom: 0;
    background-color: #21965400;

}
#btn_mot_cr{
    width: 6%;
    margin-bottom: 0;
    background-color: #21965400;
}
#toggleLoginPasswordIcon{
    color: #000000;
}
.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    margin-bottom: 15px;
    flex-wrap: nowrap;
    flex-direction: row-reverse;
}

.input-group .form-control {
    margin-bottom: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

/* صورة الملف الشخصي */
.profile-pic-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary);
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hidden-file-input {
    display: none;
}

.upload-btn {
    padding: 8px 16px;
    background-color: var(--light);
    color: var(--dark);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.upload-btn:hover {
    background-color: #d5dbdd;
}

/* رسائل الخطأ */
.invalid-feedback {
    color: var(--danger);
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 15px;
    display: none;
}

.is-invalid {
    border-color: var(--danger) !important;
}

.is-invalid + .invalid-feedback {
    display: block;
}

/* الخطوات */
.step {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.back-btn {
    margin-top: 10px;
}

/* روابط إضافية */
.text-light {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.text-light:hover {
    color: var(--secondary);
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .card {
        padding: 30px 20px;
    }
    
    .card h2 {
        font-size: 24px;
    }
    
    .card h4 {
        font-size: 20px;
    }
    
    .profile-pic {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }
    
    .card {
        padding: 25px 15px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 15px;
    }
    
    .form-control {
        padding: 10px 12px;
    }
}
.bi-eye{
    color: #000000;
}
.bi-eye-slash{
    color: #000000;
}