* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    padding: 20px 0;
}

.background {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.signup-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
}

.signup-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.signup-header {
    text-align: center;
    margin-bottom: 30px;
}

.signup-header h2 {
    color: #2563eb;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #2563eb;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group select {
    cursor: pointer;
}

.input-group select option {
    padding: 10px;
    font-family: 'Cairo', sans-serif;
}

/* تنسيق رفع الملفات */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: #2563eb;
    background: rgba(255, 255, 255, 1);
}

.file-upload-text {
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.file-upload-status {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.signup-btn {
    width: 100%;
    padding: 15px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.signup-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

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

.login-link {
    text-align: center;
    margin-top: 25px;
}

.login-link p {
    color: #666;
    font-size: 0.9rem;
}

.login-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* أنماط النصائح */
.input-hint {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 5px;
    font-style: italic;
}

/* تحسين مظهر placeholder */
.input-group input::placeholder {
    color: #aaa;
    font-style: italic;
    opacity: 0.7;
}

/* تحسين الألوان للحقول الصحيحة والخاطئة */
.input-group input.valid,
.input-group select.valid {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.input-group input.invalid,
.input-group select.invalid {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.1);
}

/* تأثيرات إضافية للشكل الاحترافي */
.signup-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.1;
}

.signup-form {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تجاوب مع الشاشات الصغيرة */
@media (max-width: 480px) {
    .signup-container {
        padding: 15px;
    }
    
    .signup-form {
        padding: 30px 20px;
    }
    
    .signup-header h2 {
        font-size: 1.5rem;
    }
    
    .input-group {
        margin-bottom: 18px;
    }
    
    .input-group input,
    .input-group select {
        padding: 12px;
    }
    
    .file-upload-label {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .input-hint {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .signup-form {
        padding: 25px 15px;
    }
    
    .signup-header h2 {
        font-size: 1.3rem;
    }
}

/* أنماط الزر المعطل */
.signup-btn:disabled {
    background: #dc3545 !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

.signup-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.signup-btn i {
    margin-left: 8px;
}

.file-preview {
    display: none;
    max-width: 100%;
    margin-top: 15px;
    border-radius: 10px;
    border: 2px solid #e1e5e9;
    object-fit: cover;
}

/* ... الكود الحالي في ملف signup.css ... */

/* أنماط الرسائل المحسنة */
.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message-box {
    background: white;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 350px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.message-overlay.visible {
    opacity: 1;
}

.message-overlay.visible .message-box {
    transform: scale(1);
}

.message-box i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.message-box-success i { color: #4CAF50; }
.message-box-error i { color: #f44336; }
.message-box-loading i { color: #2196F3; }

.message-box p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}
