/* ================================
   Auth Messages Styling
   تنسيق رسائل المصادقة
   ================================ */

.auth-message {
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* رسالة النجاح */
.auth-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

/* رسالة الخطأ */
.auth-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

/* رسالة التحذير */
.auth-message.warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #d97706;
}

/* رسالة المعلومات */
.auth-message.info {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

/* رسالة التحميل */
.auth-message.loading {
    background-color: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.3);
    color: #6b7280;
    position: relative;
}

.auth-message.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #6b7280;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* تحسين مظهر الفورمات */
.auth-form {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين مظهر الأزرار */
.auth-submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-submit-btn.loading {
    color: transparent;
}

.auth-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* تحسين مظهر الروابط */
.auth-links {
    margin-top: 16px;
    text-align: center;
}

.auth-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    margin: 0 8px;
}

.auth-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* تحسين مظهر حقول الإدخال */
.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* تحسين مظهر العناوين */
.auth-form label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

/* تحسين مظهر الحقول readonly */
.auth-form input[readonly] {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
} 