/* تنسيقات صفحات المصادقة - منصة مُعين */

/* تحسينات للنماذج */
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="tel"] {
    @apply form-input;
}

.auth-form label {
    @apply form-label;
}

.auth-form button[type="submit"] {
    @apply btn-primary;
}

.auth-form .btn-secondary {
    @apply btn-secondary;
}

/* تحسينات للرسائل */
.auth-form .text-red-600 {
    @apply error-message;
}

/* تحسين checkbox */
.auth-form input[type="checkbox"] {
    width: auto;
    margin-left: 8px;
}

/* تحسين التقسيم */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #6b7280;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

/* أزرار التواصل الاجتماعي */
.social-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.social-auth-btn:hover {
    border-color: var(--primary-color);
    background: var(--background-color);
    transform: translateY(-1px);
}

.social-auth-btn i {
    margin-left: 8px;
    font-size: 1.2rem;
}

/* تحسينات للهاتف المحمول */
@media (max-width: 640px) {
    .auth-background {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        margin: 0;
    }
    
    .auth-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* تأثيرات التحميل */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* تحسينات إضافية */
.auth-card h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-card p {
    color: #6b7280;
    margin-bottom: 1rem;
    text-align: center;
}

/* رسائل النجاح */
.success-message {
    background: linear-gradient(135deg, var(--success-color) 0%, #20b2aa 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}
