 /* ======== تصميم جسم الصفحة ======== */
 .signup-page-body {
     display: flex;
     justify-content: center;
     align-items: center;
     min-height: 100vh;
     padding: 20px;
     overflow: hidden;
     background: linear-gradient(-45deg, #0d0d1a, #8a2be2, #1c1c2e, #00d1ff);
     background-size: 400% 400%;
     animation: gradient-flow 10s ease-in-out infinite;
 }

 /* ======== حركة الخلفية ======== */
 @keyframes gradient-flow {
     0% { background-position: 0% 0%; }
     50% { background-position: 100% 100%; }
     100% { background-position: 0% 0%; }
 }

 /* ======== حركة توهج المدخلات (جديد) ======== */
 @keyframes pulse-glow {
     0% {
         box-shadow: 0 0 5px rgba(138, 43, 226, 0.3);
     }
     50% {
         box-shadow: 0 0 20px rgba(138, 43, 226, 0.7);
     }
     100% {
         box-shadow: 0 0 5px rgba(138, 43, 226, 0.3);
     }
 }

 /* ======== صندوق إنشاء الحساب ======== */
 .signup-container {
     width: 100%;
     max-width: 550px;
 }

 .signup-box {
     background: rgba(28, 28, 46, 0.85);
     border: 1px solid rgba(138, 43, 226, 0.4);
     border-radius: 20px;
     backdrop-filter: blur(12px);
     padding: 40px;
     animation: zoom-in 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
     box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
 }

 @keyframes zoom-in {
     from { transform: scale(0.9); opacity: 0; }
     to { transform: scale(1); opacity: 1; }
 }

 .signup-header {
     text-align: center;
     margin-bottom: 30px;
 }
 .signup-header h2 {
     font-size: 2.2rem;
     font-weight: 900;
     text-shadow: 0 0 15px var(--primary-color);
 }
 .signup-header .logo {
     margin-bottom: 15px;
     font-size: 2.5rem;
 }

 /* ======== شريط التقدم (تصميم محسن) ======== */
 .progress-bar {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 40px;
     position: relative;
 }
 .progress-bar::before {
     content: '';
     position: absolute;
     top: 50%;
     right: 0;
     transform: translateY(-50%);
     height: 4px;
     width: 100%;
     background-color: var(--secondary-color);
     z-index: 1;
 }
 .progress-bar::after {
     content: '';
     position: absolute;
     top: 50%;
     right: 0;
     transform: translateY(-50%);
     height: 4px;
     width: 0%;
     background-color: var(--primary-color);
     z-index: 2;
     transition: width 0.5s ease-in-out;
 }
 .progress-bar.step-2::after { width: 50%; }
 .progress-bar.step-3::after { width: 100%; }

 .progress-step {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     background-color: var(--secondary-color);
     border: 3px solid var(--secondary-color);
     color: var(--text-color-muted);
     display: flex;
     justify-content: center;
     align-items: center;
     font-weight: 700;
     z-index: 3;
     transition: all 0.4s ease;
 }
 .progress-step.active {
     background-color: var(--primary-color);
     border-color: var(--primary-color);
     color: #fff;
     transform: scale(1.2);
     box-shadow: 0 0 15px var(--primary-color);
 }

 /* ======== خطوات النموذج ======== */
 .form-step { display: none; }
 .form-step.active { display: block; animation: slide-in 0.5s ease-out; }
 @keyframes slide-in {
     from { transform: translateX(30px); opacity: 0; }
     to { transform: translateX(0); opacity: 1; }
 }
 .step-title { text-align: center; font-size: 1.6rem; margin-bottom: 35px; color: var(--primary-color); font-weight: 700; }
 .form-buttons { display: flex; gap: 15px; margin-top: 35px; }
 .form-buttons .btn { flex: 1; }

 /* ======== تصميم حقول الإدخال (Glassmorphism) ======== */
 .input-group {
     position: relative;
     margin-bottom: 30px;
 }

 .input-group input {
     width: 100%;
     padding: 15px 20px 15px 45px;
     font-size: 16px;
     color: var(--text-color);
     background-color: rgba(255, 255, 255, 0.08); /* Subtle transparency */
     border: 1px solid rgba(255, 255, 255, 0.15); /* Light, translucent border */
     border-radius: 12px; /* More rounded */
     outline: none;
     backdrop-filter: blur(10px); /* Glassmorphism effect */
     transition: border-color 0.3s, box-shadow 0.3s;
 }

 .input-group label {
     position: absolute;
     top: 16px;
     right: 20px;
     font-size: 16px;
     color: var(--text-color-muted);
     pointer-events: none;
     transition: all 0.3s ease;
     background-color: transparent; /* No background */
     padding: 0 5px;
 }

 /* حركة الليبل عند الكتابة أو التركيز */
 .input-group input:focus ~ label,
 .input-group input:valid ~ label {
     top: -10px;
     right: 15px;
     font-size: 12px;
     color: var(--primary-color);
     background-color: rgba(28, 28, 46, 0.7); /* Slightly darker background for label */
     padding: 2px 5px;
     border-radius: 5px;
 }

 /* ======== التعديل النهائي: تأثير التوهج النابض مع حدود محسنة ======== */
 .input-group input:focus,
 .input-group input:valid {
     border: 1px solid var(--primary-color); /* Solid primary border on focus/valid */
     animation: pulse-glow 2s ease-in-out infinite;
     box-shadow: 0 0 15px rgba(138, 43, 226, 0.3); /* Subtle initial shadow */
 }

 .input-group i {
     position: absolute;
     top: 50%;
     left: 15px;
     transform: translateY(-50%);
     color: var(--text-color-muted);
     transition: color 0.3s;
 }

 .input-group input:focus ~ i,
 .input-group input:valid ~ i {
     color: var(--primary-color);
 }

 /* ======== مقياس قوة كلمة المرور (تصميم أجمل) ======== */
 .password-strength { margin-top: 10px; height: 25px; display: flex; align-items: center; gap: 10px; }
 .strength-bar { flex: 1; height: 8px; background-color: var(--secondary-color); border-radius: 8px; transition: all 0.4s ease-in-out; }
 .strength-text { font-size: 13px; font-weight: 700; color: var(--text-color-muted); transition: color 0.4s ease-in-out; }
 .strength-bar.weak { background: #dc3545; width: 33%; }
 .password-strength .weak + .strength-text { color: #dc3545; }
 .strength-bar.medium { background: linear-gradient(to right, #dc3545, #ffc107); width: 66%; }
 .password-strength .medium + .strength-text { color: #ffc107; }
 .strength-bar.strong { background: linear-gradient(to right, #dc3545, #ffc107, #28a745); width: 100%; box-shadow: 0 0 10px rgba(40, 167, 69, 0.7); }
 .password-strength .strong + .strength-text { color: #28a745; }

 /* ======== اختيار الأفاتار ======== */
 .avatar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 20px; margin-bottom: 30px; }
 .avatar-grid label { cursor: pointer; position: relative; }
 .avatar-grid img { width: 100%; border-radius: 50%; border: 3px solid transparent; transition: all 0.3s; }
 .avatar-grid input { display: none; }
 .avatar-grid input:checked + img { border-color: var(--primary-color); transform: scale(1.1); box-shadow: 0 0 20px var(--primary-color); }

 /* ======== الشروط والأحكام ======== */
 .terms { margin-bottom: 30px; text-align: center; font-size: 14px; }
 .terms a { color: var(--primary-color); font-weight: 600; }
