/* ضبط الباك جراوند والخط */
body {
    background-image: 
        radial-gradient(circle at 50% 50%, #0a192f 0%, #050509 100%);
    background-attachment: fixed;
    color: #fff;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.page-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-nav {
    position: absolute;
    top: 40px;
    left: 50px;
    z-index: 100;
}

.back-btn {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.register-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.register-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    width: 100%;
    max-width: 650px; /* كبرنا العرض قليلاً ليناسب المدخلات بجانب بعضها */
    padding: 45px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
/* تنسيق سيكشن اللوجو بالكامل */
.logo-section {
    margin-bottom: 25px; /* تقليل المسافة بين اللوجو وبداية الفورم */
}

.logo-section img {
    width: 100px; /* أو الحجم المناسب للوجو بتاعك */
    margin-bottom: 10px;
    margin-top: 10px;
     /* تقليل المسافة تحت الصورة مباشرة */
}

.logo-section h2 {
    margin: 0; /* إلغاء المارجن الافتراضي للهيدينج */
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

/* تعديل البادينج بتاع الكارد نفسه لو حاسه واسع زيادة */
.register-card {
    padding: 35px 45px; /* قللنا البادينج العلوي من 45 لـ 35 */
    /* باقي التنسيقات كما هي */
}
/* تنسيق الصفوف */
.input-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

/* جعل كل عنصر داخل الصف يأخذ مساحة متساوية */
.input-row input, 
.input-row .pass-box {
    flex: 1;
    width: 100%;
}

input {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 15px;
    outline: none;
    box-sizing: border-box; /* لضمان عدم خروج الـ padding عن الحجم المحدد */
}

input:focus {
    border-color: #01E3F1;
}

.pass-box {
    position: relative;
}

.toggle-eye {
    position: absolute;
    right: 15px;
    top: 18px; /* ضبط المكان ليكون في المنتصف تماماً */
    color: #666;
    cursor: pointer;
}

.submit-btn {
    background: #01E3F1;
    color: #000;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #00c4d1;
    box-shadow: 0 5px 20px rgba(1, 227, 241, 0.4);
}

.social-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.s-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.s-icon:hover {
    background: rgba(255,255,255,0.1);
    border-color: #01E3F1;
}

/* الموبايل: تحويل الصفوف إلى أعمدة */
@media (max-width: 768px) {
    .top-nav {
        top: 20px;
        left: 20px;
    }
    .input-row {
        flex-direction: column;
        gap: 0;
    }
    .register-card {
        padding: 30px 20px;
    }
}

/* تنسيقات إضافية خاصة باللوجين فقط */
.login-card {
    max-width: 450px; /* اللوجين دائماً يكون أنحف من الريجستير */
}

.logo-section h2 {
    margin-top: 15px;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.divider {
    margin: 20px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #080d1a; /* نفس لون الخلفية التقريبي */
    padding: 0 15px;
    color: #666;
    font-size: 0.9rem;
}

.form-footer p {
    margin-top: 20px;
    color: #b0b0b0;
    font-size: 0.95rem;
}

.form-footer a {
    color: #01E3F1;
    text-decoration: none;
    font-weight: 600;
}

/* تعديل بسيط لمكان العين في صفحة اللوجين */
.login-card .toggle-eye {
    top: 18px; 
}

.forgot-pass {
    text-align: right;
    margin-bottom: 20px;
    margin-top: -5px;
}

.forgot-pass a {
    color: #b0b0b0;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.3s;
}

.forgot-pass a:hover {
    color: #01E3F1;
}

/* --- تنسيق شريط التمرير (Scrollbar) --- */

/* 1. المتصفحات اللي بتدعم Webkit (زي Chrome, Edge, Safari) */

/* مساحة الشريط ككل */
::-webkit-scrollbar {
    width: 10px; /* عرض الشريط الرأسي */
    height: 10px; /* ارتفاع الشريط الأفقي */
}

/* الخلفية اللي بيمشي عليها الشريط */
::-webkit-scrollbar-track {
    background: #050509; /* نفس لون خلفية الصفحة الغامق */
}

/* الجزء المتحرك (المقبض) */
::-webkit-scrollbar-thumb {
    background: #01E3F1; /* اللون الفسفوري بتاعك */
    border-radius: 10px; /* يخلي حواف الشريط دائرية */
    border: 2px solid #050509; /* بيدي مسافة بسيطة بين الشريط والحافة */
}

/* تأثير عند تمرير الماوس فوق الشريط */
::-webkit-scrollbar-thumb:hover {
    background: #00c4d1; /* يغمق شوية عند الهوفر */
}

/* 2. متصفح Firefox (بيدعم خصائص مختلفة) */
* {
    scrollbar-width: thin;
    scrollbar-color: #01E3F1 #050509;
}