/* استيراد خط عربي من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

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

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: center;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 50%, #ffffff 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* شعار التطبيق - مطابق للصور */
.logo-img {
    width: 100px;
    height: 100px;
    margin-bottom: 40px;
    object-fit: contain;
}

/* النصوص الرئيسية - مطابقة للصور */
.main-title {
    font-size: 32px;
    font-weight: 400;
    color: #424242;
    margin-bottom: 15px;
    line-height: 1.3;
}

.subtitle {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.4;
    color: #424242;
}

.subtitle .highlight-blue {
    color: #2196F3;
}

.subtitle .highlight-green {
    color: #4CAF50;
}

.description {
    font-size: 20px;
    color: #424242;
    margin-bottom: 80px;
    line-height: 1.6;
    max-width: 320px;
    font-weight: 400;
}

/* الأزرار - مطابقة للصور */
.btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
    margin-bottom: 30px;
    width: 300px;
    font-family: 'Cairo', sans-serif;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(33, 150, 243, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

/* نقاط التصفح - مطابقة للصور */
.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #E0E0E0;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2196F3;
    transform: scale(1.3);
}

/* الرسوم التوضيحية */
.illustration {
    width: 280px;
    height: 220px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* صفحة تسجيل الدخول - مطابقة للصور */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0;
    padding: 40px 30px 30px;
    box-shadow: none;
    width: 100%;
    max-width: 380px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 25px;
    text-align: right;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: #F5F5F5;
    transition: all 0.3s ease;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    color: #424242;
}

.form-input:focus {
    outline: none;
    background: #EEEEEE;
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #9E9E9E;
    font-weight: 400;
}

/* أيقونات الحقول */
.form-group::before {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

.form-group:first-child::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.form-group:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6z'/%3E%3C/svg%3E");
}

.forgot-password {
    color: #2196F3;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 25px;
    display: inline-block;
    font-weight: 400;
}

.forgot-password:hover {
    text-decoration: underline;
}

.create-account {
    color: #2196F3;
    text-decoration: none;
    font-size: 16px;
    margin-top: 25px;
    display: inline-block;
    font-weight: 400;
}

.create-account:hover {
    text-decoration: underline;
}

.footer-info {
    margin-top: 40px;
    color: #9E9E9E;
    font-size: 13px;
    line-height: 1.4;
}

.footer-info p {
    margin: 3px 0;
}

/* صفحة كود التحقق - مطابقة للصور */
.otp-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    background: #F5F5F5;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.otp-input:focus {
    outline: none;
    border-color: #2196F3;
    background: white;
    transform: scale(1.05);
}

.verification-text {
    font-size: 18px;
    color: #424242;
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 300px;
    font-weight: 400;
}

/* أيقونات الهيدر - مطابقة للصور */
.header-icons {
    position: absolute;
    top: 30px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 10;
}

.icon-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #424242;
}

.icon-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.language-text {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 15px;
    border: 1px solid #E0E0E0;
}

/* الرسوم المتحركة */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* تأثيرات الانتقال */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.slide-up {
    transform: translateY(40px);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

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

/* تحسينات إضافية للمطابقة */
.page-title {
    font-size: 26px;
    font-weight: 600;
    color: #424242;
    margin-bottom: 30px;
}

/* تصميم متجاوب */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 24px;
    }
    
    .description {
        font-size: 18px;
    }
    
    .btn {
        width: 100%;
        padding: 16px 30px;
        font-size: 18px;
    }
    
    .login-container {
        padding: 30px 20px;
    }
    
    .illustration {
        width: 250px;
        height: 200px;
    }
}

/* إخفاء الصفحات */
.page {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.page.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    opacity: 1;
}

