/* صفحه ورود فروشگاه آنلاین - طراحی ریسپانسیو */

:root {
    --primary-color: #4863A0; /* آبی متمایل به بنفش - نشان‌دهنده اعتماد و امنیت */
    --secondary-color: #2E8B57; /* سبز متوسط - نشان‌دهنده رشد و تازگی */
    --accent-color: #6A5ACD; /* آبی بنفش - نشان‌دهنده خلاقیت و لوکس بودن */
    --light-color: #F8F9FA; /* نزدیک به سفید - برای متن روی پس‌زمینه‌های تیره */
    --dark-color: #343A40; /* تیره - برای متن روی پس‌زمینه‌های روشن */
    --error-color: #DC3545; /* قرمز - برای خطاها */
    --success-color: #28A745; /* سبز روشن - برای موفقیت */
    --warning-color: #FFC107; /* زرد - برای هشدارها */
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f5f5f5;
    color: var(--dark-color);
    min-height: 100vh;
}

/* گرادیانت پس‌زمینه صفحه */
.login-container {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

    /* افکت‌های بصری پس‌زمینه */
    .login-container::before {
        content: '';
        position: absolute;
        top: -50px;
        left: -50px;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        animation: floating 8s infinite ease-in-out;
    }

    .login-container::after {
        content: '';
        position: absolute;
        bottom: -80px;
        right: -80px;
        width: 150px;
        height: 150px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        animation: floating 10s infinite ease-in-out reverse;
    }

@keyframes floating {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, 20px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* کارت ورود */
.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 15px 35px var(--shadow-color);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.8s ease;
}

    .login-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* برند و لوگو */
.brand-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 5px;
}

.brand-subtitle {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* فیلدهای فرم */
.form-label {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.form-control {
    border-radius: 8px;
    height: 48px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    border-color: #dee2e6;
}

    .form-control:focus {
        box-shadow: 0 0 0 0.25rem rgba(72, 99, 160, 0.25);
        border-color: var(--primary-color);
    }

.input-group-text {
    border-radius: 8px;
    color: var(--primary-color);
}

/* دکمه ورود */
.login-btn {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border: none;
    height: 48px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(106, 90, 205, 0.4);
}

    .login-btn:hover {
        background: linear-gradient(to right, var(--accent-color), var(--primary-color));
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(106, 90, 205, 0.5);
    }

    .login-btn:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px rgba(106, 90, 205, 0.4);
    }

    .login-btn::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }

    .login-btn:hover::after {
        width: 300px;
        height: 300px;
    }

/* نمایش و مخفی کردن رمز عبور */
.password-toggle {
    cursor: pointer;
}

/* مرا به خاطر بسپار */
.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    border-color: var(--primary-color);
}

    .form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.form-check-label {
    padding-right: 8px;
    font-size: 14px;
}

/* لینک‌ها */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: var(--accent-color);
        text-decoration: underline;
    }

.forgot-password {
    font-size: 14px;
}

.register-link {
    font-weight: 600;
}

/* خط جداکننده */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #dee2e6;
    }

    .divider span {
        padding: 0 10px;
        color: #6c757d;
        font-size: 14px;
    }

/* دکمه ورود با گوگل */
.social-login .btn {
    height: 48px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .social-login .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

/* سازگاری با دستگاه‌های مختلف */
@media (max-width: 767.98px) {
    .login-card {
        padding: 20px;
    }

    .brand-title {
        font-size: 1.8rem;
    }

    .brand-subtitle {
        font-size: 1rem;
    }

    .form-control, .login-btn, .social-login .btn {
        height: 45px;
    }
}

@media (max-width: 575.98px) {
    .login-container {
        padding: 15px;
    }

    .login-card {
        padding: 15px;
    }

    .brand-title {
        font-size: 1.5rem;
    }
}

/* انیمیشن‌های ورودی */
@keyframes slideInFromTop {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.form-group {
    animation: slideInFromTop 0.5s ease forwards;
}

    .form-group:nth-child(1) {
        animation-delay: 0.2s;
    }

    .form-group:nth-child(2) {
        animation-delay: 0.4s;
    }

.form-check {
    animation: slideInFromTop 0.5s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.login-btn {
    animation: slideInFromTop 0.5s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
    animation-fill-mode: forwards;
}
/* register - صفحه ثبت نام فروشگاه آنلاین - طراحی ریسپانسیو */

/* register - دکمه ثبت نام */
.register-btn {
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    border: none;
    height: 48px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.4);
}

    .register-btn:hover {
        background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(46, 139, 87, 0.5);
    }

    .register-btn:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px rgba(46, 139, 87, 0.4);
    }

    .register-btn::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }

    .register-btn:hover::after {
        width: 300px;
        height: 300px;
    }

/* register - لینک ورود */
.login-link {
    font-weight: 600;
    color: var(--primary-color);
}

    .login-link:hover {
        color: var(--accent-color);
        text-decoration: underline;
    }

/* register - انیمیشن‌های ورودی صفحه ثبت نام */
@keyframes register-slideIn {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

#registerForm .form-group {
    animation: register-slideIn 0.5s ease forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

    #registerForm .form-group:nth-child(1) {
        animation-delay: 0.1s;
    }

    #registerForm .form-group:nth-child(2) {
        animation-delay: 0.3s;
    }

    #registerForm .form-group:nth-child(3) {
        animation-delay: 0.5s;
    }

    #registerForm .form-group:nth-child(4) {
        animation-delay: 0.7s;
    }

.register-btn {
    animation: register-slideIn 0.5s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* register - تغییر رنگ تم در صفحه ثبت نام */
#registerForm .input-group-text {
    color: var(--secondary-color);
}

#registerForm .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(46, 139, 87, 0.25);
    border-color: var(--secondary-color);
}

/* register - ریسپانسیو برای صفحه ثبت نام */
@media (max-width: 575.98px) {
    #registerForm .form-group {
        margin-bottom: 0.8rem !important;
    }
}