/* ==============================================
   PAGANI LUXURY - إنشاء حساب (CSS فقط)
   تصميم فاتح، لامع، عصري | خط النظام
   ألوان: وردي نيون، أزرق كهربائي، ذهبي فاتح
   بدون أي لون أسود
   ============================================== */

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

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(145deg, #FFF5F9 0%, #E8F0FF 100%);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    direction: rtl;
}

.app-container {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
    min-height: 100vh;
    position: relative;
    padding-bottom: 30px;
    box-shadow: 0 0 40px rgba(255, 105, 180, 0.15);
}

/* ==============================================
   1. صورة الغلاف العلوية - لامعة متدرجة
   ============================================== */
.register-cover {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFB347, #FF6B9D, #3B82F6);
    background-size: 200% 200%;
    animation: shimmer 4s infinite alternate;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.3;
    mix-blend-mode: overlay;
}

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 180, 70, 0.4), rgba(59, 130, 246, 0.3));
}

/* مؤشر الخطوات - لامع */
.steps-indicator {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 5;
}

.step-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,240,0.3);
    color: #FFFAF0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    border: 2px solid rgba(255,255,200,0.7);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: linear-gradient(145deg, #FFD166, #FF9F4A);
    border-color: #FFF0B5;
    box-shadow: 0 0 20px #FFB347;
    transform: scale(1.08);
    color: #2D2F36;
}

.step-line {
    width: 45px;
    height: 3px;
    background: rgba(255,240,180,0.6);
    transition: all 0.3s ease;
    border-radius: 10px;
}

.step-line.active {
    background: linear-gradient(90deg, #FFB347, #FF6B9D);
    box-shadow: 0 0 6px #FF6B9D;
}

/* العنوان على الصورة */
.cover-title {
    position: absolute;
    bottom: 30px;
    right: 24px;
    z-index: 5;
}

.cover-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.cover-title span {
    font-size: 0.85rem;
    color: #FFF7E8;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ==============================================
   2. المحتوى الرئيسي
   ============================================== */
.register-content {
    padding: 0 16px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

/* ==============================================
   3. كارت الفورم - زجاجي لامع
   ============================================== */
.form-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 38px;
    padding: 26px 22px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    border: 1px solid rgba(255, 200, 150, 0.5);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ==============================================
   4. مجموعات الإدخال
   ============================================== */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #C2416B;  /* وردي غامق فاتح */
    letter-spacing: 0.3px;
    margin-right: 6px;
}

.input-group label i {
    color: #F59E0B;
    font-size: 0.85rem;
    width: 20px;
    text-align: center;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #FFE4D6;
    border-radius: 40px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    background: rgba(255, 248, 245, 0.9);
    outline: none;
    transition: all 0.25s ease;
}

.form-input:focus {
    border-color: #FF9F4A;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 159, 74, 0.2);
}

.form-input::placeholder {
    color: #D6B0A8;
}

/* PIN input */
.pin-input {
    text-align: center;
    letter-spacing: 6px;
    font-size: 1.3rem;
    font-weight: 700;
}

/* ==============================================
   5. رقم الهاتف
   ============================================== */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-code {
    background: linear-gradient(145deg, #FFE8E0, #FFF0E6);
    color: #F59E0B;
    padding: 14px 18px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    border: 1px solid #FFD3B5;
}

.phone-input-wrapper .form-input {
    flex: 1;
}

/* ==============================================
   6. كلمة المرور
   ============================================== */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-left: 48px;
}

.toggle-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #DC9E82;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 4px;
}

.toggle-icon:hover {
    color: #FF8A5C;
}

/* ==============================================
   7. كابتشا
   ============================================== */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFF7F0;
    border: 1px solid #FFE2D0;
    border-radius: 60px;
    padding: 4px 8px 4px 16px;
}

.captcha-code {
    background: linear-gradient(145deg, #FFE0B5, #FFC489);
    padding: 10px 18px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 1.1rem;
    color: #4B2E1A;
    letter-spacing: 4px;
    text-align: center;
    min-width: 100px;
    user-select: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.05);
}

.captcha-box .form-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 12px 4px;
    box-shadow: none !important;
}

/* ==============================================
   8. أزرار التنقل - لامعة جدا
   ============================================== */
.next-btn {
    width: 100%;
    padding: 15px;
    border-radius: 60px;
    border: none;
    background: linear-gradient(105deg, #FF9F4A, #FF5E7E);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(255, 95, 126, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.next-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(255, 95, 126, 0.5);
}

/* ==============================================
   9. الخطوة 2 (الحماية والأمان) - نجوم لامعة
   ============================================== */
.security-intro {
    text-align: center;
    padding: 10px 0 4px;
}

.security-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFF0E6, #FFE2D0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 2rem;
    color: #FF9F4A;
    box-shadow: 0 8px 20px rgba(255, 159, 74, 0.25);
}

.security-intro h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #C2416B;
    margin-bottom: 6px;
}

.security-intro p {
    font-size: 0.8rem;
    color: #A07A6E;
    line-height: 1.5;
    padding: 0 12px;
}

/* أزرار الخطوة الثانية */
.step-buttons {
    display: flex;
    gap: 12px;
}

.back-btn {
    flex: 1;
    padding: 14px;
    border-radius: 60px;
    border: 1.5px solid #FFD3B5;
    background: rgba(255, 245, 240, 0.8);
    color: #D97706;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.back-btn:active {
    transform: scale(0.97);
    background: #FFEFE5;
}

.submit-btn {
    flex: 2;
    padding: 14px;
    border-radius: 60px;
    border: none;
    background: linear-gradient(105deg, #FF9F4A, #FF5E7E);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(255, 94, 126, 0.3);
    transition: transform 0.2s;
}

.submit-btn:active {
    transform: scale(0.97);
}

/* ==============================================
   10. رابط تسجيل الدخول السفلي
   ============================================== */
.login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 18px;
    border-top: 1px solid #FFE0CE;
    font-size: 0.85rem;
    color: #C28B74;
}

.login-link a {
    color: #FF7A5C;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.login-link a:hover {
    opacity: 0.8;
    text-decoration: underline;
    color: #FF9F4A;
}

/* ==============================================
   11. قسم القوانين - بلون نيون ناعم
   ============================================== */
.pagani-info-box {
    margin-top: 16px;
    background: rgba(255, 245, 235, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 200, 150, 0.5);
    border-radius: 32px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
}

.title-steps {
    color: #F59E0B;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.title-rules {
    color: #EC4899;
    border-bottom: 2px solid rgba(236, 72, 153, 0.3);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-list li {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #5B5F6E;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-circle {
    background: linear-gradient(145deg, #FFE4B5, #FFCD8A);
    color: #A15506;
    width: 24px;
    height: 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.rule-icon {
    color: #FF6B9D;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-list li span strong {
    color: #C2416B;
    font-weight: 700;
}

/* ==============================================
   12. شاشة التحميل (لامعة)
   ============================================== */
#loading {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 250, 240, 0.92);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

#loading .spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #FFE0CE;
    border-top-color: #FF9F4A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loading p {
    color: #F97316;
    font-weight: 600;
    font-size: 0.9rem;
}

/* تحسينات إضافية */
input, button {
    font-family: inherit;
}

::selection {
    background: #FFB7B2;
    color: #4A1E2C;
}