/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
}

/* الحاوية الرئيسية */
.auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.auth-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    backdrop-filter: blur(10px);
}

.auth-content.single-section {
    grid-template-columns: 1fr;
    max-width: 500px;
}

/* قسم تسجيل الدخول */
.login-section, .register-section {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.register-section {
    padding: 40px 60px;
}

/* الشعار */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    line-height: 1.5;
}

/* النموذج */
.auth-form {
    width: 100%;
}

.auth-form h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 600;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 1em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

/* الأزرار */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* رسائل الخطأ والنجاح */
.error-message,
.success-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.error-message {
    background: #fdf2f2;
    color: #e74c3c;
    border: 1px solid #fadbd8;
}

.success-message {
    background: #f0f9f0;
    color: #27ae60;
    border: 1px solid #d4edda;
}

/* قسم المزايا */
.features-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.features-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 600;
    text-align: center;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.features-list li:hover {
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.5em;
    margin-left: 15px;
    margin-top: 5px;
    flex-shrink: 0;
}

.feature-content h3 {
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-content p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
}

/* رسالة الترحيب */
.welcome-message {
    background: linear-gradient(135deg, #e8f4f8 0%, #d1ecf1 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid #bee5eb;
}

.welcome-message p {
    margin-bottom: 10px;
    color: #0c5460;
    line-height: 1.5;
}

.welcome-message p:last-child {
    margin-bottom: 0;
}

.welcome-message strong {
    color: #667eea;
    font-weight: 600;
}

/* مؤشر قوة كلمة المرور */
.password-strength {
    margin: 15px 0;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: #e1e5e9;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: all 0.3s ease;
    background: #e74c3c;
}

.strength-fill.weak {
    background: #e74c3c;
    width: 25%;
}

.strength-fill.fair {
    background: #f39c12;
    width: 50%;
}

.strength-fill.good {
    background: #f1c40f;
    width: 75%;
}

.strength-fill.strong {
    background: #27ae60;
    width: 100%;
}

.strength-text {
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

/* نصائح الأمان */
.security-tips {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.security-tips h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
}

.security-tips ul {
    list-style: none;
    padding: 0;
}

.security-tips li {
    padding: 8px 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
    position: relative;
    padding-right: 20px;
}

    .security-tips li::before {
        content: "✓";
        position: absolute;
        right: 0;
        color: #27ae60;
        font-weight: bold;
    }

/* زر تسجيل الدخول في صفحة التسجيل */
.login-redirect {
    text-align: center;
    margin: 20px 0 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.login-redirect p {
    margin-bottom: 15px;
    color: #666;
    font-size: 1.1em;
}

.btn-login-redirect {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-login-redirect:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    text-decoration: none;
    color: white;
}

.btn-login-redirect:active {
    transform: translateY(0);
}

/* زر إنشاء حساب في صفحة تسجيل الدخول */
.btn-register-redirect {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-register-redirect:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    text-decoration: none;
    color: white;
}

.btn-register-redirect:active {
    transform: translateY(0);
}

/* التذييل */
.footer {
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 0.9em;
    opacity: 0.8;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .auth-content {
        grid-template-columns: 1fr;
        margin: 10px;
    }
    
    .login-section,
    .register-section {
        padding: 30px 25px;
    }
    
    .features-section {
        padding: 30px 25px;
    }
    
    .logo h1 {
        font-size: 2em;
    }
    
    .auth-form h2 {
        font-size: 1.5em;
    }
    
    .features-section h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 10px;
    }
    
    .login-section,
    .register-section {
        padding: 20px 15px;
    }
    
    .features-section {
        padding: 20px 15px;
    }
    
    .features-list li {
        padding: 12px;
    }
    
    .feature-icon {
        font-size: 1.3em;
        margin-left: 10px;
    }
}
