﻿/*
 * این فایل استایل برای صفحه ثبت نام مشتریان طراحی شده است.
 * شامل دو تم لایت و دارک است که با تغییر کلاس body قابل جابجایی است.
 */

@import url('/css/themes/_Variables.css');

:root {
    --bg-card: #4e73df;
}

[data-theme="dark"] {
    --bg-card: #1a202c;
}

[data-theme="light"] {
    --bg-card: #4e73df;
}

/* ================================================= */
/* استایل‌های عمومی و مشترک */
/* ================================================= */
body {
    position: relative;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    min-height: 100vh;
    direction: rtl;
    display: flex;
    align-items: center;
    overflow-x: hidden;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* استایل‌های دکوریشن زمینه */
.background-decoration {
    position: absolute;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
    transition: all 0.5s ease;
}

.bottle-decoration {
    font-size: clamp(2rem, 5vw, 8rem);
    color: var(--bottle-green);
}

.cork-decoration {
    font-size: clamp(1.5rem, 4vw, 6rem);
    color: var(--cork-color);
}

.glass-decoration {
    font-size: clamp(1.25rem, 3vw, 5rem);
    color: var(--glass-color);
}

.wine-decoration {
    font-size: clamp(1.75rem, 4vw, 7rem);
    color: var(--wine-red);
}

/* موقعیت‌های رندوم برای دسکتاپ */
.bottle-1 {
    top: 12%;
    right: 78%;
    transform: rotate(15deg);
}

.bottle-2 {
    top: 8%;
    right: 35%;
    transform: rotate(-10deg);
}

.bottle-3 {
    top: 35%;
    right: 80%;
    transform: rotate(25deg);
}

.bottle-4 {
    top: 72%;
    right: 28%;
    transform: rotate(-15deg);
}

.cork-1 {
    top: 18%;
    right: 58%;
    transform: rotate(45deg);
}

.cork-2 {
    top: 42%;
    right: 18%;
    transform: rotate(-30deg);
}

.cork-3 {
    top: 68%;
    right: 65%;
    transform: rotate(60deg);
}

.cork-4 {
    top: 55%;
    right: 85%;
    transform: rotate(60deg);
}

.glass-1 {
    top: 35%;
    right: 72%;
    transform: rotate(-20deg);
}

.glass-2 {
    top: 25%;
    right: 12%;
    transform: rotate(10deg);
}

.glass-3 {
    top: 75%;
    right: 45%;
    transform: rotate(40deg);
}

.glass-4 {
    top: 48%;
    right: 38%;
    transform: rotate(40deg);
}

.wine-1 {
    top: 5%;
    right: 65%;
    transform: rotate(-25deg);
}

.wine-2 {
    top: 42%;
    right: 55%;
    transform: rotate(15deg);
}

.wine-3 {
    top: 38%;
    right: 92%;
    transform: rotate(15deg);
}

.wine-4 {
    top: 65%;
    right: 15%;
    transform: rotate(15deg);
}

.cheers-1 {
    top: 15%;
    right: 25%;
    transform: rotate(-25deg);
}

.cheers-2 {
    top: 58%;
    right: 75%;
    transform: rotate(15deg);
}

.cheers-3 {
    top: 52%;
    right: 8%;
    transform: rotate(15deg);
}

.cheers-4 {
    top: 28%;
    right: 88%;
    transform: rotate(15deg);
}

.wis-1 {
    top: 62%;
    right: 52%;
    transform: rotate(-25deg);
}

.wis-2 {
    top: 45%;
    right: 68%;
    transform: rotate(15deg);
}

.wis-3 {
    top: 78%;
    right: 22%;
    transform: rotate(15deg);
}

.wis-4 {
    top: 32%;
    right: 42%;
    transform: rotate(15deg);
}

.beer-1 {
    top: 8%;
    right: 52%;
    transform: rotate(15deg);
}

.beer-2 {
    top: 82%;
    right: 38%;
    transform: rotate(15deg);
}

/* ================================================= */
/* استایل‌های کارت و فرم */
/* ================================================= */
.card {
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    height: auto;
    min-height: 500px;
    justify-content: stretch;
    opacity: 100%;
    margin: 0 auto;
    max-width: 500px;
}

.card-header {
    text-align: center;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-color: var(--bg-card);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.logo-img {
    height: 120px;
    width: auto;
    margin: 1rem 0;
    z-index: 10;
    max-width: 100%;
}

.card-header h2 {
    font-weight: bold;
    margin: 0;
    z-index: 10;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
  
}

.card-body {
    padding: 1.5rem;
    height: fit-content;
    
}

.form-group {
    margin-bottom: 1.5rem;
    margin-left: 0;
    width: 100%;
}

.numbers-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
    height: auto;
}

.form-control2 {
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 3rem;
    height: 3rem;
    text-align: center;
    font-size: 1.2rem;
}

.form-control {
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

    .form-control:focus {
        border-color: var(--border-color);
        box-shadow: var(--shadow);
        outline: none;
    }

.control-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.btnsframe {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

    .btnsframe .resend-code,
    .btnsframe .prev-step {
        flex: 1;
        min-width: 120px;
    }

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    border: 1px solid var(--btn-primary-border);
    color: var(--btn-primary-text);
}

    .btn-primary:hover {
        background-color: var(--btn-primary-hover-bg);
    }

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    border: 1px solid var(--btn-secondary-border);
    color: var(--btn-secondary-text);
}

    .btn-secondary:hover {
        background-color: var(--btn-secondary-hover-bg);
        color: var(--text-primary);
    }

.resend-code:disabled {
    background-color: var(--btn-warning-bg);
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-success {
    background-color: var(--btn-success-bg);
    border: 1px solid var(--btn-success-border);
    color: var(--btn-success-text);
}

    .btn-success:hover {
        background-color: var(--btn-success-hover-bg);
        color: var(--text-primary);
    }

.text-danger {
    color: var(--danger-color) !important;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

a {
    color: var(--link-color);
    transition: color 0.3s ease;
    text-decoration: none;
}

    a:hover {
        color: var(--link-hover-color);
        text-decoration: underline;
    }

.resend-code {
    display: block;
}

/* استایل برای دکمه تغییر تم */
.theme-toggle-btn {
    position:fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background-color: var(--theme-toggle-bg);
    color: var(--theme-toggle-color);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow);
}

    .theme-toggle-btn:hover {
        transform: scale(1.1);
    }

    .theme-toggle-btn .icon {
        display: block;
        width: 1.25rem;
        height: 1.25rem;
        fill: currentColor;
        transition: opacity 0.3s ease;
    }

.light-icon {
    display: block;
}

.dark-icon {
    display: none;
}

.phone-number {
    text-align: center;
    width: 100%;
}

/* ================================================= */
/* استایل‌های رسپانسیو */
/* ================================================= */
/* تبلت (768px تا 1024px) */
@media (max-width: 1024px) {
    body {
        padding: 0.5rem;
    }

    .container {
        padding: 0.5rem;
    }

    /* کاهش تعداد المان‌ها در تبلت */
    .bottle-3, .bottle-4,
    .cork-3, .cork-4,
    .glass-3, .glass-4,
    .wine-3, .wine-4,
    .cheers-3, .cheers-4,
    .wis-3, .wis-4 {
        display: none;
    }

    /* تنظیم موقعیت‌های جدید برای تبلت */
    .bottle-1 {
        top: 10%;
        right: 80%;
    }

    .bottle-2 {
        top: 15%;
        right: 20%;
    }

    .cork-1 {
        top: 25%;
        right: 70%;
    }

    .cork-2 {
        top: 35%;
        right: 25%;
    }

    .glass-1 {
        top: 45%;
        right: 75%;
    }

    .glass-2 {
        top: 55%;
        right: 15%;
    }

    .wine-1 {
        top: 5%;
        right: 50%;
    }

    .wine-2 {
        top: 85%;
        right: 60%;
    }

    .cheers-1 {
        top: 20%;
        right: 40%;
    }

    .cheers-2 {
        top: 75%;
        right: 80%;
    }

    .wis-1 {
        top: 65%;
        right: 45%;
    }

    .wis-2 {
        top: 40%;
        right: 85%;
    }

    .beer-1 {
        top: 8%;
        right: 15%;
    }

    .beer-2 {
        top: 90%;
        right: 30%;
    }

    .card {
        max-width: 90%;
    }

    .logo-img {
        height: 100px;
    }
}

/* موبایل (576px تا 768px) */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding-top: 2rem;
        overflow-y: auto;
    }

    .background-decoration {
        opacity: 0.05;
    }

    /* کاهش بیشتر المان‌ها در موبایل */
    .bottle-2, .bottle-4,
    .cork-2, .cork-4,
    .glass-2, .glass-4,
    .wine-2, .wine-4,
    .cheers-2, .cheers-4,
    .wis-2, .wis-4,
    .beer-2 {
        display: none;
    }

    .card {
        max-width: 95%;
        min-height: auto;
    }

    .card-body {
        padding: 1rem;
    }

    .numbers-input {
        gap: 0.25rem;
    }

    .form-control2 {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .btnsframe {
        flex-direction: column;
    }

        .btnsframe .resend-code,
        .btnsframe .prev-step {
            width: 100%;
        }

    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .theme-toggle-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
        top: 0.5rem;
        left: 0.5rem;
    }
}

/* موبایل کوچک (تا 576px) */
@media (max-width: 576px) {
    body {
        padding: 0.25rem;
        padding-top: 1.5rem;
        margin:20% auto;
    }

    .container {
        padding: 0.25rem;
    }

    /* مخفی کردن بیشتر المان‌های دکوراتیو در موبایل کوچک */
    .background-decoration {
        display: none;
    }

    .card {
        border-radius: 0.75rem;
        max-width: 100%;
    }

    .card-header {
        padding: 0.75rem;
    }

    .logo-img {
        height: 80px;
        margin: 0.5rem 0;
    }

    .card-body {
        padding: 0.75rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .numbers-input {
        margin: 0.5rem 0;
    }

    .form-control2 {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9rem;
    }

    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .control-label {
        font-size: 0.85rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* تنظیمات برای حالت landscape در موبایل */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        align-items: flex-start;
        padding-top: 1rem;
    }

    .background-decoration {
        opacity: 0.03;
        font-size: 1rem;
    }

    /* مخفی کردن المان‌های اضافی در حالت landscape */
    .bottle-2, .bottle-3, .bottle-4,
    .cork-2, .cork-3, .cork-4,
    .glass-2, .glass-3, .glass-4,
    .wine-2, .wine-3, .wine-4,
    .cheers-2, .cheers-3, .cheers-4,
    .wis-2, .wis-3, .wis-4,
    .beer-2 {
        display: none;
    }

    .card {
        max-width: 90%;
        min-height: auto;
    }

    .card-body {
        padding: 0.5rem 1rem;
    }
}

/* ================================================= */
/* استایل‌های اضافی */
/* ================================================= */

/* لودر */
.loader {
    position: relative;
    width: 85px;
    height: 30px;
    background-repeat: no-repeat;
    background-image: linear-gradient(#FFF 50px, transparent 0), linear-gradient(#FFF 50px, transparent 0), linear-gradient(#FFF 50px, transparent 0), linear-gradient(#FFF 50px, transparent 0), linear-gradient(#FFF 50px, transparent 0), linear-gradient(#FFF 50px, transparent 0);
    background-position: 0px center, 15px center, 30px center, 45px center, 60px center, 75px center, 90px center;
    animation: rikSpikeRoll 0.65s linear infinite alternate;
    display: none;
}

    .loader.loading-active {
        display: none !important;
    }

@keyframes rikSpikeRoll {
    0% {
        background-size: 10px 3px;
    }

    16% {
        background-size: 10px 50px, 10px 3px, 10px 3px, 10px 3px, 10px 3px, 10px 3px;
    }

    33% {
        background-size: 10px 30px, 10px 50px, 10px 3px, 10px 3px, 10px 3px, 10px 3px;
    }

    50% {
        background-size: 10px 10px, 10px 30px, 10px 50px, 10px 3px, 10px 3px, 10px 3px;
    }

    66% {
        background-size: 10px 3px, 10px 10px, 10px 30px, 10px 50px, 10px 3px, 10px 3px;
    }

    83% {
        background-size: 10px 3px, 10px 3px, 10px 10px, 10px 30px, 10px 50px, 10px 3px;
    }

    100% {
        background-size: 10px 3px, 10px 3px, 10px 3px, 10px 10px, 10px 30px, 10px 50px;
    }
}

/* دکمه گوگل */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 15px 20px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

    .google-btn::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: left 0.5s ease;
    }

    .google-btn:hover::before {
        left: 100%;
    }

    .google-btn:hover {
        background: #3367d6;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
    }

    .google-btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    }

    .google-btn i {
        font-size: 18px;
        background: white;
        color: #4285f4;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .google-btn:hover i {
        transform: scale(1.1);
        background: #f1f1f1;
    }

    /* استایل outline */
    .google-btn.outline {
        background: transparent;
        border: 2px solid #4285f4;
        color: #4285f4;
        box-shadow: none;
    }

        .google-btn.outline:hover {
            background: #4285f4;
            color: white;
        }

        .google-btn.outline i {
            background: #4285f4;
            color: white;
        }

        .google-btn.outline:hover i {
            background: white;
            color: #4285f4;
        }

    .google-btn.link-style {
        text-decoration: none;
        text-align: center;
        background: linear-gradient(45deg, #ea4335, #fbbc05, #34a853, #4285f4);
        background-size: 300% 300%;
        animation: gradientShift 3s ease infinite;
    }

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.google-btn.link-style:hover {
    animation-duration: 1.5s;
}
.BackToHome {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    
}

    .BackToHome i {
        font-size: 1.8rem;
        color: var(--text-primary);
    }