﻿/* Reset و فونت‌ها */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d5016;
    --secondary-color: #4caf50;
    --accent-color: #e67e22;
    --danger-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --gray-color: #666;
    --border-color: #e0e0e0;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    direction: rtl;
}

.register-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 700px;
}

/* بخش دکوراتیو */
.register-decoration {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.decoration-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.decoration-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.decoration-title {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.decoration-text {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
}

.benefits-list {
    text-align: right;
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
}

    .benefit-item i {
        margin-left: 10px;
        color: #ffeb3b;
    }

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 30%;
    left: 70%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 70%;
    left: 80%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* بخش فرم */
.register-form-section {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

    .register-logo h1 {
        font-size: 2.2rem;
        color: var(--primary-color);
        margin-right: 10px;
    }

    .register-logo span {
        color: var(--accent-color);
    }

.register-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.register-subtitle {
    color: var(--gray-color);
    font-size: 1rem;
}

/* نوار پیشرفت */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

    .progress-bar::before {
        content: '';
        position: absolute;
        top: 15px;
        right: 0;
        left: 0;
        height: 3px;
        background: var(--border-color);
        z-index: 1;
    }

.progress-fill {
    position: absolute;
    top: 15px;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    z-index: 2;
    transition: var(--transition);
    width: 0%;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: var(--transition);
}

    .step-number.active {
        background: var(--primary-color);
        color: white;
    }

    .step-number.completed {
        background: var(--secondary-color);
        color: white;
    }

.step-label {
    font-size: 0.8rem;
    color: var(--gray-color);
    transition: var(--transition);
}

    .step-label.active {
        color: var(--primary-color);
        font-weight: 600;
    }

/* فرم ثبت نام */
.register-form {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .form-label i {
        color: var(--primary-color);
        width: 20px;
        text-align: center;
    }

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

    .form-input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
    }

    .form-input.with-icon {
        padding-left: 50px;
    }

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
    font-size: 1.1rem;
}

.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 1.1rem;
}

/* دکمه ثبت نام */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(45, 80, 22, 0.3);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

    .submit-btn:disabled {
        background: var(--gray-color);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* جداکننده */
.separator {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--gray-color);
}

    .separator::before,
    .separator::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border-color);
    }

    .separator span {
        padding: 0 15px;
        font-size: 0.9rem;
    }

/* ثبت نام سریع */
.social-register {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

    .social-btn.google {
        color: #DB4437;
    }

        .social-btn.google:hover {
            border-color: #DB4437;
            background: rgba(219, 68, 55, 0.05);
        }

    .social-btn.apple {
        color: #000;
    }

        .social-btn.apple:hover {
            border-color: #000;
            background: rgba(0, 0, 0, 0.05);
        }

/* لینک ورود */
.login-link {
    text-align: center;
    margin-top: 30px;
    color: var(--gray-color);
}

    .login-link a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
        transition: var(--transition);
    }

        .login-link a:hover {
            color: var(--accent-color);
        }

/* استایل برای فیلدهای خطا */
.form-input.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

/* مراحل فرم */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .form-step.active {
        display: block;
    }

/* دکمه‌های ناوبری */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nav-btn {
    padding: 12px 24px;
    background: var(--light-color);
    color: var(--dark-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .nav-btn:hover {
        background: var(--border-color);
    }

    .nav-btn.next {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

        .nav-btn.next:hover {
            background: var(--secondary-color);
            border-color: var(--secondary-color);
        }

/* رسپانسیو */
@media (max-width: 992px) {
    .register-container {
        flex-direction: column;
        max-width: 500px;
    }

    .register-decoration {
        padding: 30px;
        min-height: 200px;
    }

    .decoration-title {
        font-size: 1.5rem;
    }

    .decoration-text {
        font-size: 1rem;
    }

    .register-form-section {
        padding: 40px 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .progress-bar {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }

    .register-container {
        border-radius: 15px;
        min-height: auto;
    }

    .register-form-section {
        padding: 30px 20px;
    }

    .social-register {
        grid-template-columns: 1fr;
    }

    .decoration-icon {
        font-size: 3rem;
    }

    .shape {
        display: none;
    }

    .benefits-list {
        display: none;
    }

    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .register-header {
        margin-bottom: 30px;
    }

    .register-title {
        font-size: 1.5rem;
    }

    .form-input {
        padding: 12px 15px;
    }

    .submit-btn {
        padding: 14px;
    }

    .progress-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

        .progress-bar::before,
        .progress-fill {
            display: none;
        }
}

/* افکت‌های ویژه */
.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 80, 22, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(45, 80, 22, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(45, 80, 22, 0);
    }
}

.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*------------------------------------------------------------------------- دکمه برگشت */
.back-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

    .back-btn:hover {
        background: white;
        color: var(--accent-color);
        transform: translateX(-5px);
        border-color: var(--accent-color);
    }

    .back-btn i {
        font-size: 1.1rem;
        transition: var(--transition);
    }

    .back-btn:hover i {
        transform: translateX(3px);
    }

/* رسپانسیو برای دکمه برگشت */
@media (max-width: 992px) {
    .back-button-container {
        top: 15px;
        right: 15px;
    }

    .back-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .back-button-container {
        top: 10px;
        right: 10px;
    }

    .back-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* مخفی کردن متن "بازگشت" در موبایل */
    .back-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
    }

        /* این قسمت متن را مخفی می‌کند */
        .back-btn::after {
            content: none;
        }
}
@media (max-width: 576px) {
    .back-button-container {
        top: 10px;
        right: 10px;
    }

    .back-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
    }

    /* مخفی کردن متن در موبایل */
    .back-text {
        display: none;
    }
}
/*------------------------------------------------------------------------- دکمه برگشت */
