:root {
    --primary: #2563EB; /* آبی روشن‌تر */
    --primary-dark: #1E40AF; /* آبی تیره‌تر */
    --secondary: #0EA5E9; /* آبی فیروزه‌ای */
    --accent: #F59E0B; /* کهربایی */
    --accent-light: #FBBF24; /* کهربایی روشن‌تر */
    --background: #F0F9FF; /* پس‌زمینه روشن‌تر */
    --card-bg: rgba(255, 255, 255, 0.95); /* افکت شیشه‌ای بهبود یافته */
    --text: #0F172A; /* خاکستری تیره‌تر */
    --text-light: #64748B; /* خاکستری روشن‌تر */
    --white: #FFFFFF;
    --error: #EF4444; /* قرمز برای خطاها */
    --success: #10B981; /* سبز برای پیام‌های موفقیت */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-hover: linear-gradient(135deg, var(--primary-dark), var(--primary));
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
    width: 100%;
    min-height: 100vh;
}

.daneshdan-registration-container {
    width: 100%;
    max-width: 100%;
}

/* Subjects Section */
.subjects-section {
    padding: 5rem 0;
    background: var(--gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subjects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.registration-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.registration-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    animation: fadeInUp 1s ease;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.registration-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.registration-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0.8rem 0 0;
    border-radius: 2px;
}

.registration-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-control:disabled {
    background: rgba(0, 0, 0, 0.05);
    cursor: not-allowed;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    margin-left: 0.5rem;
}

.daneshdan-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.daneshdan-alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.daneshdan-alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.verification-timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.timer-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.timer-count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.resend-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.resend-count {
    font-weight: 700;
    color: var(--primary);
}

.login-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
}

.login-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.login-link a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

.login-link a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.login-link a:hover::after {
    width: 100%;
}

.success-icon {
    font-size: 5rem;
    color: var(--success);
    text-align: center;
    margin: 2rem 0;
    animation: scaleIn 0.5s ease;
}

.text-center {
    text-align: center;
}

/* دکمه بازگشت به صفحه اصلی */
.back-to-home-button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    width: 100%;
}

.back-to-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: var(--white);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--primary);
}

.back-to-home-button i {
    margin-left: 0.5rem;
    font-size: 1.1rem;
}

.back-to-home-button:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Utility Classes */
.daneshdan-hidden {
    display: none !important;
}

.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

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

/* Debug Panel */
.daneshdan-debug-panel {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: monospace;
}

.daneshdan-debug-panel h3 {
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.daneshdan-debug-panel p {
    margin-bottom: 0.3rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .registration-container {
        max-width: 100%;
        padding: 0 2rem;
    }
}

@media (max-width: 992px) {
    .registration-card {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .registration-card {
        padding: 2rem;
        max-width: 95%;
    }
    
    .registration-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .registration-container {
        padding: 0 1rem;
    }
    
    .registration-card {
        padding: 1.5rem;
        border-radius: 12px;
        max-width: 100%;
    }
    
    .registration-title {
        font-size: 1.8rem;
    }
    
    .registration-text {
        font-size: 1rem;
    }
    
    .form-control {
        padding: 0.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
    }
}

/* Tablet Specific Adjustments */
@media (min-width: 577px) and (max-width: 991px) {
    .registration-container {
        max-width: 100%;
        padding: 0 2rem;
    }
}

/* Large Desktop Adjustments */
@media (min-width: 1400px) {
    .registration-container {
        max-width: 1400px;
    }
    
    .registration-card {
        padding: 3.5rem;
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Print Styles */
@media print {
    .registration-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        background: white;
    }
    
    .subjects-section {
        background: white;
        color: black;
        padding: 1rem 0;
    }
    
    .subjects-section::before {
        display: none;
    }
}
