/* إعدادات عامة للهاتف */
body {
    background-color: #f4f6f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: "Cairo", sans-serif;
}

.mobile-container {
    width: 100%;
    max-width: 400px;
    height: 1140px;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.top-background {
    height: 35%;
    background: linear-gradient(135deg, #718dee, #4e6ae6);
    position: relative;
}

.dark-circle {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        #4a6bcf,
        #1a2552 70%,
        #0f142e
    );

    box-shadow:
        0 30px 30px rgba(0, 0, 0, 0.5),
        /* ظل خارجي */ inset -15px -15px 30px rgba(0, 0, 0, 0.7),
        /* ظل داخلي سفلي */ inset 15px 15px 30px rgba(255, 255, 255, 0.3); /* ظل داخلي علوي (لمعة) */

    /* دوران بسيط لإيحاء ثلاثي الأبعاد */
    transform: rotate(5deg) scale(1.05);

    /* إضافة حركة ناعمة عند التفاعل */
    transition: transform 0.3s ease;
}

/* لمعة إضافية (highlight) */
.dark-circle::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    border-radius: 50%;
    opacity: 0.8;
}

/* تأثير تفاعلي بسيط */
.dark-circle:hover {
    transform: rotate(15deg) scale(1.1);
}
.light-shape-1 {
    position: absolute;
    top: -20px;
    left: -60px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.05) 70%
    );
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    transform: rotate(-5deg);
    z-index: 0;
}

.light-shape-1::after {
    content: "";
    position: absolute;
    top: 40px;
    left: 80px;
    width: 100px;
    height: 100px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 80%
    );
    border-radius: 50%;
}

.light-shape-2 {
    position: absolute;
    top: 80px;
    left: 40px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #ffffff40, #ffffff00 80%);
    box-shadow:
        0 15px 25px rgba(0, 0, 0, 0.1),
        inset 5px 5px 15px #ffffff80;
    transform: perspective(500px) rotateX(10deg) rotateY(5deg); /* إضافة منظور ثلاثي الأبعاد */
    z-index: 0;
}
/* زر الرجوع */
.back-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    /* تم التغيير من left إلى right */
    color: #fff;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    text-decoration: none;
}
.back-btn img {
    width: 70px;
    border-radius: 50%;
    border: 3px solid rgba(226, 232, 255, 0.7); /* حد شفاف خفيف */
    box-shadow:
        0 8px 12px -6px rgba(0, 0, 0, 0.2),
        /* ظل خارجي خفيف */ inset 0 2px 4px rgba(255, 255, 255, 0.5),
        /* لمعة داخلية علوية */ inset 0 -2px 4px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* تأثير تفاعلي بسيط جداً */
.back-btn img:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 10px 15px -6px rgba(0, 0, 0, 0.25),
        inset 0 2px 5px rgba(255, 255, 255, 0.6),
        inset 0 -2px 5px rgba(0, 0, 0, 0.08);
}
.user-count {
    position: absolute;
    top: 35%;
    right: 25%;
    /* تم التغيير من left إلى right */
    color: #fff;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    text-decoration: none;
}

/* بطاقة تسجيل الدخول البيضاء */
.login-card {
    background: #ffffff;
    border-radius: 35px 35px 0 0;
    position: absolute;
    top: 15%;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 25px 25px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.login-title {
    color: #1e40af;
    font-weight: 700;
    font-size: 28px;
    text-align: center;
    margin-bottom: 5px;
}

.login-sub-title {
    color: #8e8e8e;
    font-weight: 300;
    font-size: 16px;
    text-align: center;
    margin-bottom: 35px;
}

/* تنسيق حقول الإدخال */
.custom-input-group {
    position: relative;
    margin-bottom: 25px;
}

.custom-input-group label {
    position: absolute;
    top: -12px;
    right: 20px;
    /* تم التغيير من left إلى right */
    background: #fff;
    padding: 0 8px;
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
    z-index: 1;
}

.custom-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    color: #333;
    outline: none;
    text-align: right;
    transition: border-color 0.3s ease;
}

.custom-input:focus {
    border-color: #1e40af;
}

/* تنسيق الروابط ومربع الاختيار */
.form-check-input {
    margin-left: 10px;
    /* تعديل مسافة مربع الاختيار */
}

.form-check-input:checked {
    background-color: #1e40af;
    border-color: #1e40af;
}

.forgot-link {
    color: #1e40af;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

/* زر تسجيل الدخول */
.btn-login {
    background-color: #1e40af;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #314db8;
    color: #fff;
}

/* الخط الفاصل */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #9ca3af;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #f3f4f6;
}

.divider span {
    padding: 0 15px;
}

/* أيقونات التواصل الاجتماعي */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.social-icon {
    font-size: 26px;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.fa-facebook {
    color: #1877f2;
}

.fa-twitter {
    color: #1da1f2;
}

.fa-google {
    background: conic-gradient(
            from -45deg,
            #ea4335 110deg,
            #4285f4 90deg 180deg,
            #34a853 180deg 270deg,
            #fbbc05 270deg
        )
        73% 55%/150% 150% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fa-apple {
    color: #000000;
}

/* نص إنشاء الحساب */
.signup-text {
    color: #9ca3af;
    font-size: 14px;
}

.signup-link {
    color: #1e40af;
    font-weight: 700;
    text-decoration: none;
}

/* تنسيق زر جوجل الجديد */
.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.google-login-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.google-login-btn .btn-text {
    color: #475569;
    font-weight: 700;
    font-size: 15px;
}

.google-icon-wrapper {
    display: flex;
    align-items: center;
}

/* تنسيق قسم التقييمات المودرن */
.rating-container {
    margin-top: 30px;
    padding-bottom: 30px;
}

.rating-summary-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    border: 1px solid #edf2f7;
}

.avg-number {
    font-size: 42px;
    font-weight: 800;
    color: #1e40af;
    line-height: 1;
}

.rating-stars-main i {
    color: #fbbf24;
    font-size: 14px;
}

.rating-bars-mini {
    flex-grow: 1;
}

.mini-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.mini-bar-item span {
    font-size: 11px;
    color: #64748b;
    width: 10px;
}

.progress-mini {
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    flex-grow: 1;
    overflow: hidden;
}

.progress-bar-inner {
    background: #1e40af;
    height: 100%;
    border-radius: 10px;
}

/* تنسيق تعليقات المستخدمين - Swiper */
.testimonial-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.review-date {
    font-size: 11px;
    color: #94a3b8;
}

.review-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin: 10px 0;
}

.swiper-button-next,
.swiper-button-prev {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 14px;
    color: var(--primary-color);
}
