/* تصميم شاشة الدخول الموحدة */
.user-type-selector {
    margin-bottom: 2rem;
}

.user-type-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.user-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.user-type-card:hover::before {
    left: 100%;
}

.user-type-card:hover {
    border-color: #007bff;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.user-type-card.active {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
    transform: translateY(-1px);
}

.user-type-card.active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #007bff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.user-type-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.user-type-card:hover .user-type-icon {
    transform: scale(1.1);
}

.user-type-card.active .user-type-icon {
    color: #0056b3;
}

.user-type-card h5 {
    margin: 0.5rem 0;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-type-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.login-form {
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.login-form[style*="display: none"] {
    opacity: 0;
    transform: translateY(20px);
}

/* تحسين تصميم النماذج */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* تحسين تصميم الأزرار المساعدة */
.btn-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* تحسين تصميم رسائل الخطأ */
.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
}

/* تحسين تصميم خيارات الدخول الاجتماعي */
.other-options {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.options {
    display: block;
    text-align: center;
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.social-icon img {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-icon:hover img {
    filter: brightness(0) invert(1);
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .user-type-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .user-type-icon {
        font-size: 2rem;
    }
    
    .user-type-card h5 {
        font-size: 1rem;
    }
    
    .user-type-card p {
        font-size: 0.8rem;
    }
    
    .btn-primary {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* تأثيرات إضافية */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form {
    animation: fadeInUp 0.5s ease-out;
}

/* تحسين تصميم toggle password */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #007bff;
}

.toggle-password .eye,
.toggle-password .eye-slash {
    font-size: 1.2rem;
}

/* تحسين تصميم forgot password */
.forgot-pass {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-pass a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-pass a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* تأثيرات إضافية للتفاعل */
.hover-effect {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.2);
}

.btn-hover-effect {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.link-hover-effect {
    transform: translateX(3px);
}

.social-hover-effect {
    transform: scale(1.1) translateY(-3px);
}

.focused {
    position: relative;
}

.focused::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    animation: focusLine 0.3s ease-out;
}

@keyframes focusLine {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.loading {
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.loaded {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسينات للرسائل */
.valid-feedback {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.is-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 576px) {
    .user-type-selector .row {
        margin: 0 -0.5rem;
    }
    
    .user-type-selector .col-6 {
        padding: 0 0.5rem;
    }
    
    .user-type-card {
        padding: 1rem 0.5rem;
    }
    
    .user-type-icon {
        font-size: 1.8rem;
    }
    
    .user-type-card h5 {
        font-size: 0.9rem;
    }
    
    .user-type-card p {
        font-size: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* تحسينات للطباعة */
@media print {
    .user-type-selector,
    .other-options {
        display: none;
    }
    
    .login-form {
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 