* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Cairo", sans-serif;
}

body {
    height: 100vh;
    display: flex;
    background-color: #fff;
    overflow: hidden;
}

/* حاوية الصفحة الكبيرة */
.page-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* الجزء الأيسر: الصورة */
.image-side {
    flex: 1;
    background: url("../images/auth-bg.jpg") no-repeat center center;
    background-size: cover;
    display: block;
}

/* الجزء الأيمن: النموذج */
.form-side {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
}

.form-container {
    width: 100%;
    max-width: 450px;
}

h1 {
    color: #313d85;
    text-align: center;
    font-weight: 800;
    margin-bottom: 30px;
    font-size: 32px;
}

/* تنسيق مجموعات الإدخال */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    color: #000;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: 0.3s;
    text-align: left; /* البريد والأرقام تظهر بشكل أفضل باليسار */
}

.input-group input[type="text"],
.input-group input#fullname,
.input-group input#guardian {
    text-align: right; /* الأسماء فقط يمين */
}

.input-group input::placeholder {
    color: #b0b0b0;
    font-size: 14px;
}

.input-group input:focus {
    border-color: #313d85;
    box-shadow: 0 0 10px rgba(49, 61, 133, 0.1);
}

/* تنسيق الشروط والأحكام */
.terms {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #000;
    font-weight: 600;
}

.terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* زر الإرسال */
.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: #313d85;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(49, 61, 133, 0.3);
}

.submit-btn:hover {
    background-color: #242c63;
}

/* تجاوب التصميم للجوال */
@media (max-width: 992px) {
    .image-side {
        display: none; /* إخفاء الصورة في الشاشات الصغيرة لتوفير المساحة */
    }
    .form-side {
        flex: 1;
    }
}

/* تذكرني ونسيت كلمة السر */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 600;
}
.form-options a {
    color: #333;
    text-decoration: underline;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* الفاصل (أو) */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #313d85;
    font-weight: bold;
}
.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1.5px solid #b3b7d1;
}
.divider span {
    padding: 0 15px;
}

/* أزرار التواصل الاجتماعي */
.social-btn {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 15px;
    font-weight: 700;
    color: #000;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}
.social-btn:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.social-btn i {
    font-size: 22px;
}
.fa-google {
    color: #ea4335;
}
.fa-facebook {
    color: #1877f2;
}

/* التذييل */
.footer-text {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #a0a0a0;
}
.footer-text a {
    color: #7d84bc;
    font-weight: bold;
    text-decoration: none;
}

@media (max-width: 992px) {
    .image-side {
        display: none;
    }
}
/* تنسيق حقول الرمز (OTP) */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-direction: row-reverse; /* لضمان ترتيب الإدخال الصحيح من اليمين لليسار */
}

.otp-inputs input {
    width: 65px;
    height: 100px;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #000;
    border: 1.5px solid #313d85;
    border-radius: 12px;
    outline: none;
    transition: 0.3s;
    background-color: transparent;
}

.otp-inputs input:focus {
    box-shadow: 0 0 10px rgba(49, 61, 133, 0.2);
    border-width: 2.5px;
}
.input-group {
    justify-content: right;
}
.input-group
    > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(
        .valid-feedback
    ):not(.invalid-tooltip):not(.invalid-feedback) {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}
