:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #212529;
    --border-color: #dee2e6;
}

/* استایل Wrapper جایگزین استایل‌های body شد */
.register-wrapper {
    min-height: 80vh; /* تا فضای کافی برای هدر و فوتر قالب اصلی باقی بماند */
    width: 100%;
    position: relative;
    z-index: 1; /* بالاتر از پس‌زمینه */
}

.bg-pattern {
    position: fixed; /* اگر می‌خواهید پس‌زمینه کل صفحه را بگیرد، در غیر این صورت absolute تنظیم شود */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    opacity: 0.5;
}

.register-card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

/* استایل‌های ورودی مدرن */
.modern-input-group {
    margin-bottom: 1.5rem;
}

.modern-input-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.modern-input-group .form-control {
    background-color: #f8f9fa;
    border: 1px solid transparent;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.modern-input-group .form-control:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* استایل خطاهای فرم */
.errorlist {
    color: #dc3545;
    list-style: none;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}
