/* Doctor Registration Page Styles */
/* Modern and professional design for doctor registration form */

/* Base styles */
body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    direction: rtl;
}

/* Modern gradient backgrounds */
.bg-modern-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-form-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Glass morphism effects */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.glass-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modern form styling */
.modern-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #1e293b;
    font-size: 16px;
    font-weight: 500;
}

.modern-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.modern-input:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.modern-input::placeholder {
    color: #64748b;
    opacity: 1;
}

/* File input styling */
.modern-file-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    color: #475569;
    direction: ltr;
    text-align: left;
    cursor: pointer;
}

.modern-file-input:hover {
    border-color: #667eea;
    background: #f1f5f9;
    transform: translateY(-1px);
}

.modern-file-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Date input styling */
.modern-date-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #1e293b;
    direction: ltr;
    text-align: left;
}

.modern-date-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.modern-date-input:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* Textarea styling */
.modern-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #1e293b;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    font-weight: 500;
}

.modern-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.modern-textarea:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* Modern section styling */
.modern-section {
    background: white;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.modern-section:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.modern-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #667eea;
    position: relative;
}

.modern-section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Modern button styling */
.modern-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 18px;
    padding: 18px 32px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.modern-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(102, 126, 234, 0.6);
}

.modern-btn:active {
    transform: translateY(-1px);
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modern-btn:hover::before {
    left: 100%;
}

/* Modern alert styling */
.modern-alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border-right: 4px solid #22c55e;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.2);
    backdrop-filter: blur(10px);
}

.modern-alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border-right: 4px solid #ef4444;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(10px);
}

/* Modern label styling */
.modern-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 16px;
}

.modern-label i {
    color: #667eea;
    margin-left: 8px;
}

/* Modern info box */
.modern-info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.modern-info-box h4 {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 8px;
}

.modern-info-box p {
    color: #1e40af;
    font-size: 14px;
    line-height: 1.6;
}

/* Modern small text */
.modern-small-text {
    color: #64748b;
    font-size: 14px;
    margin-top: 8px;
    display: block;
}

.modern-small-text i {
    color: #667eea;
    margin-left: 4px;
}

/* Modern error text */
.modern-error-text {
    color: #dc2626;
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.modern-error-text i {
    margin-left: 4px;
}

/* Floating animations */
.floating-shape {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(5deg); 
    }
}

/* Pulse animation */
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from { 
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.5); 
    }
    to { 
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.8); 
    }
}

/* Back button styling */
.modern-back-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #374151;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.modern-back-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.2);
    color: #667eea;
}

/* Grid improvements */
.modern-grid {
    display: grid;
    gap: 24px;
}

.modern-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Responsive design */
@media (max-width: 768px) {
    .modern-section {
        padding: 24px;
        margin-bottom: 24px;
    }
    
    .modern-section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .modern-input,
    .modern-textarea,
    .modern-file-input,
    .modern-date-input {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .modern-btn {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .modern-back-btn {
        top: 16px;
        right: 16px;
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Loading animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form validation states */
.modern-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.modern-input.success {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
