/* استایل‌های مخصوص صفحه ثبت‌نام */
.register-page {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/Background.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease;
}

.register-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.register-header .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.register-header .logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: white;
    padding: 5px;
}

.register-header .system-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-header .system-description {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 10px;
    font-weight: 300;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    padding: 0 20px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    right: 80px;
    left: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
    border-radius: 2px;
}

.progress-steps .step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-steps .step.active .step-number {
    background: linear-gradient(135deg, var(--secondary-color), #1a5276);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    border-color: var(--secondary-color);
}

.progress-steps .step.active .step-label {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-steps .step.completed .step-number {
    background: linear-gradient(135deg, var(--success-color), #27ae60);
    color: white;
}

.progress-steps .step-number {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.progress-steps .step-number::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: 0.5s;
}

.progress-steps .step.active .step-number::before {
    left: 100%;
}

.progress-steps .step-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
    max-width: 100px;
    line-height: 1.4;
}

/* کارت شیشه‌ای */
.glass-card.register-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    padding: 50px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.glass-card.register-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

/* فرم چند مرحله‌ای */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.step-title {
    color: var(--dark-color);
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
}

.step-title i {
    color: var(--secondary-color);
    font-size: 26px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 12px;
    margin-bottom: 25px;
}

/* استایل‌های فرم */
.form-group {
    margin-bottom: 0;
}

.form-group label {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 15px;
}

.form-group label i {
    color: var(--secondary-color);
    font-size: 17px;
}

.form-control {
    width: 100%;
    padding: 17px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Peyfa', 'Peyda', sans-serif;
    font-size: 16px;
    color: var(--dark-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

/* فرم‌ها در حالت خطا */
.form-group.has-error .form-control {
    border-color: var(--danger-color);
    background: rgba(231, 76, 60, 0.08);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.form-group.has-error label {
    color: var(--danger-color);
}

.form-group.has-error .form-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--danger-color);
    font-size: 14px;
    font-weight: 500;
    animation: shake 0.5s ease;
}

.form-error i {
    font-size: 15px;
}

/* نشانگر قدرت رمز عبور */
.password-strength {
    margin-top: 12px;
}

.strength-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.strength-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.strength-text {
    color: #7f8c8d;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

/* چک باکس گروه */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(52, 152, 219, 0.1);
    margin-top: 10px;
    transition: all 0.3s ease;
}

.checkbox-group:hover {
    background: rgba(52, 152, 219, 0.08);
    border-color: rgba(52, 152, 219, 0.2);
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 22px;
    height: 22px;
    accent-color: var(--secondary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group label {
    color: var(--dark-color);
    font-size: 15px;
    line-height: 1.6;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.terms-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.terms-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.terms-link:hover {
    color: #2980b9;
}

.terms-link:hover::after {
    width: 100%;
    right: auto;
    left: 0;
}

.required {
    color: var(--danger-color);
    font-weight: bold;
}

/* دکمه‌های فرم */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 0, 0, 0.08);
    gap: 20px;
}

.btn-next, .btn-prev, .btn-submit {
    padding: 18px 35px;
    border-radius: 14px;
    font-family: 'Peyfa', 'Peyda', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    min-width: 200px;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-next::before, .btn-prev::before, .btn-submit::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: 0.5s;
}

.btn-next:hover::before, .btn-prev:hover::before, .btn-submit:hover::before {
    left: 100%;
}

.btn-next {
    background: linear-gradient(135deg, var(--secondary-color), #1a5276);
    color: white;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.btn-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
}

.btn-prev {
    background: #95a5a6;
    color: white;
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.3);
}

.btn-prev:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(149, 165, 166, 0.4);
    background: #7f8c8d;
}

.btn-submit {
    background: linear-gradient(135deg, var(--success-color), #219653);
    color: white;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2) !important;
}

/* اطلاعات اضافی */
.additional-info {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08), rgba(46, 204, 113, 0.05));
    border-radius: 18px;
    border-right: 5px solid var(--secondary-color);
    border-left: 5px solid transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.additional-info h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
}

.additional-info h4 i {
    color: var(--secondary-color);
    font-size: 22px;
}

.additional-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.additional-info li {
    color: #5d6d7e;
    margin-bottom: 12px;
    padding-right: 30px;
    position: relative;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 500;
}

.additional-info li:before {
    content: '✓';
    color: var(--success-color);
    position: absolute;
    right: 0;
    font-size: 16px;
    font-weight: bold;
    background: rgba(46, 204, 113, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* لینک ورود */
.login-link {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 0, 0, 0.08);
}

.login-link p {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.login-link .btn-outline {
    background: transparent;
    border: 3px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 16px 25px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.1);
}

.login-link .btn-outline:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.2);
}

/* فوتر */
.register-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.8;
    margin-top: 40px;
    padding: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.register-footer p {
    margin-bottom: 8px;
}

.register-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.register-footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    right: 0;
    background: #3498db;
    transition: width 0.3s ease;
}

.register-footer a:hover {
    color: #2980b9;
}

.register-footer a:hover::after {
    width: 100%;
    right: auto;
    left: 0;
}

/* انیمیشن‌های جدید */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .glass-card.register-form-container {
        padding: 40px 30px;
    }
    
    .progress-steps {
        padding: 0 10px;
    }
    
    .progress-steps::before {
        right: 60px;
        left: 60px;
    }
}

@media (max-width: 768px) {
    .register-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .glass-card.register-form-container {
        padding: 35px 25px;
        border-radius: 20px;
    }
    
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .progress-steps .step-label {
        font-size: 13px;
        max-width: 80px;
    }
    
    .progress-steps::before {
        right: 50px;
        left: 50px;
        top: 22px;
    }
    
    .progress-steps .step-number {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-next, .btn-prev, .btn-submit {
        width: 100%;
        min-width: auto;
        padding: 16px 25px;
    }
    
    .register-header .logo-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .register-header .system-title {
        font-size: 24px;
    }
    
    .register-header .system-description {
        font-size: 16px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .additional-info {
        padding: 25px 20px;
    }
    
    .additional-info li {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .register-page {
        padding: 15px;
    }
    
    .glass-card.register-form-container {
        padding: 30px 20px;
        border-radius: 18px;
    }
    
    .progress-steps .step-label {
        display: none;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .progress-steps .step-number {
        width: 40px;
        height: 40px;
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .step-title {
        font-size: 18px;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .form-control {
        padding: 15px 18px;
        font-size: 15px;
    }
    
    .btn-next, .btn-prev, .btn-submit {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .additional-info {
        padding: 20px 15px;
        margin-top: 30px;
    }
    
    .login-link {
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .register-footer {
        font-size: 14px;
        margin-top: 30px;
    }
    
    .register-header .logo {
        width: 80px;
        height: 80px;
    }
    
    .register-header .system-title {
        font-size: 22px;
    }
}

@media (max-width: 400px) {
    .progress-steps .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .btn-next, .btn-prev, .btn-submit {
        font-size: 14px;
        padding: 14px 18px;
    }
    
    .additional-info h4 {
        font-size: 16px;
    }
    
    .additional-info li {
        font-size: 13px;
        padding-right: 25px;
    }
}