@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700;800&display=swap');

body { 
    font-family: 'Tajawal', sans-serif; 
    background: linear-gradient(-45deg, #1a365d, #2b6cb0, #ff5722, #e64a19); 
    background-size: 400% 400%; 
    animation: gradientBG 15s ease infinite; 
    min-height: 100vh; 
    margin: 0; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 20px; 
    box-sizing: border-box; 
}

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

.register-wrapper { 
    display: flex; 
    background: #fff; 
    width: 100%; 
    max-width: 1000px; 
    border-radius: 30px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.2); 
    overflow: hidden; 
}

.register-info { 
    flex: 1; 
    background: #f8fafc; 
    padding: 50px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    border-left: 2px solid #edf2f7; 
}

.register-info h2 { 
    color: #2b6cb0; 
    font-size: 32px; 
    font-weight: 800; 
    margin-bottom: 15px; 
    margin-top: 0; 
}

.register-info p { 
    color: #4a5568; 
    font-size: 18px; 
    line-height: 1.8; 
    margin-bottom: 30px; 
}

.register-form-container { 
    flex: 1.2; 
    padding: 50px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.register-form-container h3 { 
    color: #1a365d; 
    font-size: 26px; 
    margin-top: 0; 
    margin-bottom: 25px; 
    text-align: center; 
}

.name-group { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 20px; 
}

.name-group .form-group { 
    flex: 1; 
    margin-bottom: 0; 
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    color: #4a5568; 
    font-weight: 700; 
    font-size: 14px; 
}

.form-group input { 
    width: 100%; 
    padding: 12px 15px; 
    border: 2px solid #e2e8f0; 
    border-radius: 12px; 
    box-sizing: border-box; 
    font-size: 15px; 
    font-family: 'Tajawal', sans-serif; 
    transition: border-color 0.3s; 
    outline: none; 
}

.form-group input:focus { 
    border-color: #2b6cb0; 
}

/* Password Validation Styles */
.password-requirements { 
    margin-top: 10px; 
    padding: 0; 
    list-style: none; 
    font-size: 13px; 
}

.password-requirements li { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-bottom: 6px; 
    color: #e53e3e; 
    transition: color 0.3s ease; 
}

.password-requirements li.valid { 
    color: #2f855a; 
}

.req-icon { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 18px; 
    height: 18px; 
    border-radius: 50%; 
    background-color: #fff5f5; 
    color: #e53e3e; 
    font-weight: bold; 
    font-size: 10px; 
    transition: all 0.3s; 
}

.valid .req-icon { 
    background-color: #f0fff4; 
    color: #2f855a; 
}

.req-icon::after { content: '✖'; }
.valid .req-icon::after { content: '✔'; }

.submit-btn { 
    width: 100%; 
    padding: 15px; 
    background: linear-gradient(135deg, #ff5722, #e64a19); 
    color: white; 
    border: none; 
    border-radius: 12px; 
    font-size: 18px; 
    font-weight: 700; 
    font-family: 'Tajawal', sans-serif; 
    cursor: pointer; 
    transition: all 0.3s; 
    box-shadow: 0 4px 15px rgba(255,87,34,0.3); 
    margin-top: 15px; 
}

.submit-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(255,87,34,0.4); 
}

.submit-btn:disabled { 
    background: #cbd5e0; 
    box-shadow: none; 
    cursor: not-allowed; 
    transform: none; 
}

.message-box { 
    padding: 12px; 
    border-radius: 10px; 
    margin-bottom: 20px; 
    font-weight: 700; 
    font-size: 14px; 
    text-align: center; 
}

.message-error { 
    color: #e53e3e; 
    background-color: #fff5f5; 
    border: 1px solid #feb2b2; 
}

.login-link { 
    text-align: center; 
    margin-top: 20px; 
    display: block; 
    color: #4a5568; 
    text-decoration: none; 
    font-size: 14px; 
}

.login-link span { 
    color: #2b6cb0; 
    font-weight: 700; 
}

.back-link-bottom {
    text-align: center; 
    margin-top: 15px; 
    display: block; 
    color: #ff5722; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 15px; 
    transition: color 0.3s;
}

.back-link-bottom:hover {
    color: #e64a19;
}

@media (max-width: 768px) { 
    .register-wrapper { flex-direction: column; border-radius: 20px; } 
    .register-info { padding: 30px 20px; border-left: none; border-bottom: 2px solid #edf2f7; text-align: center; } 
    .register-form-container { padding: 30px 20px; } 
    /* ضمان عدم خروج الحقول عن الشاشة في الهواتف الصغيرة */
    .name-group { flex-direction: column; gap: 20px; }
}
/* تنسيقات خاصة بصفحة تسجيل الدخول (Login) مكملة للتسجيل */
.auth-wrapper { 
    display: flex; 
    background: #fff; 
    width: 100%; 
    max-width: 1000px; 
    border-radius: 30px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.2); 
    overflow: hidden; 
}

.auth-info { 
    flex: 1; 
    background: #f8fafc; 
    padding: 50px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    border-left: 2px solid #edf2f7; 
}

.auth-info h2 { 
    color: #2b6cb0; 
    font-size: 32px; 
    font-weight: 800; 
    margin-bottom: 15px; 
    margin-top: 0; 
}

.auth-form-container { 
    flex: 1.2; 
    padding: 50px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.auth-form-container h3 { 
    color: #1a365d; 
    font-size: 26px; 
    margin-top: 0; 
    margin-bottom: 25px; 
    text-align: center; 
}

.forgot-password-link { 
    display: inline-block; 
    margin-top: 8px; 
    color: #2b6cb0; 
    text-decoration: none; 
    font-size: 13px; 
    font-weight: 700; 
    transition: 0.3s; 
}

.forgot-password-link:hover { 
    color: #ff5722; 
    text-decoration: underline; 
}

@media (max-width: 768px) { 
    .auth-wrapper { flex-direction: column; border-radius: 20px; } 
    .auth-info { padding: 30px 20px; border-left: none; border-bottom: 2px solid #edf2f7; text-align: center; } 
    .auth-form-container { padding: 30px 20px; } 
}