/* ===============================
   طراحی سفارشی صفحه "حساب کاربری من" ووکامرس
   ورود / ثبت‌نام / فراموشی رمز عبور برای مشتری‌ها
   سبز تیره + طلایی + کرم، هماهنگ با سایت گل ساتان
   =============================== */

.woocommerce-account .entry-content,
.woocommerce-page .woocommerce {
    direction: rtl;
    font-family: "Vazirmatn", Tahoma, sans-serif;
}

/* پس‌زمینه روی کل صفحه (بدون padding تا هدر جابه‌جا نشه) */
.woocommerce-account {
    background:
        radial-gradient(circle at 12% 10%, rgba(201, 163, 85, 0.14) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(28, 75, 58, 0.12) 0%, transparent 45%),
        #f7f4ec;
}

/* والدهای رایج المنتور/قالب که ممکنه پس‌زمینه سفید خودشون رو داشته باشن رو شفاف می‌کنیم
   تا گرادیانت پس‌زمینه از پشت‌شون دیده بشه (تاثیری روی هدر سایت نمی‌ذاره) */
.woocommerce-account main,
.woocommerce-account #content,
.woocommerce-account .site-main,
.woocommerce-account .elementor,
.woocommerce-account .elementor-section-wrap,
.woocommerce-account article {
    background: transparent !important;
}

/* فاصله داخلی فقط دور محتوای فرم */
.woocommerce-account .woocommerce {
    padding: 50px 20px;
}

/* عنوان صفحه (اگر قالب نشون بده) */
.woocommerce-account .page-title,
.woocommerce-account h1.entry-title {
    text-align: center;
    color: #1c4b3a;
    font-weight: 700;
}

/* خود دو ستون ورود/ثبت‌نام ووکامرس */
.woocommerce-account .woocommerce {
    max-width: 780px;
    margin: 0 auto;
}

.woocommerce-account .u-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    flex: 1 1 320px;
    max-width: 360px;
}

/* جعبه فرم‌ها (ورود، ثبت‌نام، فراموشی رمز) */
.woocommerce-account form.woocommerce-form-login,
.woocommerce-account form.woocommerce-form-register,
.woocommerce-account form.woocommerce-form-lost-password,
.woocommerce-account form.woocommerce-EditAccountForm {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 26px;
    box-shadow: 0 18px 40px rgba(20, 60, 45, 0.14);
    border: 1px solid #eee9d9;
    position: relative;
    overflow: hidden;
}

.woocommerce-account form.woocommerce-form-login::before,
.woocommerce-account form.woocommerce-form-register::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #c9a355, #1c4b3a);
}

/* عنوان بالای هر فرم (خودمون با فیلتر اضافه می‌کنیم) */
.woocommerce-account .golsatan-form-title {
    font-size: 17px;
    font-weight: 700;
    color: #1c4b3a;
    margin-bottom: 18px;
    text-align: center;
}

/* لیبل و اینپوت‌ها */
.woocommerce-account form label {
    display: block;
    text-align: right;
    font-weight: 600;
    color: #1c4b3a;
    font-size: 13.5px;
    margin-bottom: 6px;
}

.woocommerce-account form .woocommerce-Input,
.woocommerce-account form input[type="text"],
.woocommerce-account form input[type="password"],
.woocommerce-account form input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    border-radius: 10px;
    border: 1.5px solid #e5e0d0;
    padding: 12px 14px;
    font-size: 14px;
    background: #fbfaf6;
    margin-bottom: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-account form input:focus {
    border-color: #1c4b3a;
    box-shadow: 0 0 0 3px rgba(28, 75, 58, 0.12);
    background: #fff;
    outline: none;
}

/* دکمه‌های اصلی */
.woocommerce-account form .woocommerce-Button,
.woocommerce-account form button[type="submit"] {
    width: 100%;
    background: #1c4b3a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 13px 0 !important;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(28, 75, 58, 0.25);
    transition: background 0.2s ease, transform 0.15s ease;
}

.woocommerce-account form .woocommerce-Button:hover,
.woocommerce-account form button[type="submit"]:hover {
    background: #143d2f !important;
    transform: translateY(-1px);
}

/* چک‌باکس مرا به خاطر بسپار */
.woocommerce-account .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b6a5f;
    margin-bottom: 14px;
}

/* لینک فراموشی رمز */
.woocommerce-account .woocommerce-LostPassword {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
}

.woocommerce-account .woocommerce-LostPassword a {
    color: #1c4b3a;
    font-weight: 500;
    text-decoration: none;
}

.woocommerce-account .woocommerce-LostPassword a:hover {
    color: #c9a355;
    text-decoration: underline;
}

/* پیام‌های خطا/موفقیت ووکامرس */
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
    border-radius: 10px;
    background: #fff;
    border-top: none !important;
    border-right: 4px solid #b3413a;
    text-align: right;
    padding: 14px 18px;
    box-shadow: 0 4px 12px rgba(20, 60, 45, 0.08);
    list-style: none;
}

.woocommerce-account .woocommerce-message {
    border-right-color: #1c4b3a;
}

/* جایی که دکمه ورود با گوگل قرار می‌گیره (Nextend) */
.woocommerce-account .nsl-container {
    margin-top: 18px;
    position: relative;
}

.woocommerce-account .nsl-container::before {
    content: "یا";
    display: block;
    text-align: center;
    font-size: 12px;
    color: #a8a28e;
    margin-bottom: 16px;
}

.woocommerce-account .nsl-container .nsl-button {
    border-radius: 10px !important;
    border: 1.5px solid #e5e0d0 !important;
}

/* بلوک خوش‌آمدگویی بالای فرم‌های ورود/ثبت‌نام */
.woocommerce-account .golsatan-welcome {
    text-align: center;
    margin-bottom: 26px;
}

.woocommerce-account .golsatan-welcome .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #c9a355;
    margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(20, 60, 45, 0.1);
}

.woocommerce-account .golsatan-welcome h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1c4b3a;
    margin: 0 0 4px;
}

.woocommerce-account .golsatan-welcome p {
    font-size: 13.5px;
    color: #8a8570;
    margin: 0;
}

/* آیکون داخل فیلدها - آیدی‌های واقعی ووکامرس */
.woocommerce-account form input#username {
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 18px;
    padding-left: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231c4b3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0'/%3E%3Cpath d='M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2'/%3E%3C/svg%3E");
}

.woocommerce-account form input#reg_email {
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 18px;
    padding-left: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231c4b3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6l9 -6'/%3E%3C/svg%3E");
}

.woocommerce-account form input#password,
.woocommerce-account form input#reg_password {
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 18px;
    padding-left: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231c4b3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11v-4a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}

/* نوار تب‌های ورود / ثبت‌نام */
.golsatan-tabs {
    display: flex;
    gap: 4px;
    background: #e9e4d4;
    border-radius: 10px;
    padding: 4px;
    max-width: 400px;
    margin: 0 auto 18px;
}

.golsatan-tabs button,
.golsatan-tabs .golsatan-tab-link {
    flex: 1;
    border: none;
    background: transparent;
    color: #1c4b3a;
    font-weight: 500;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    border-radius: 7px;
    padding: 9px 2px;
    font-size: 12px;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.golsatan-tabs button.active {
    background: #1c4b3a;
    color: #fff;
}

/* تبدیل دو ستون ووکامرس به یک کارت با سوییچ */
.woocommerce-account .u-columns {
    display: block;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: none;
}

.woocommerce-account .u-column1.golsatan-active,
.woocommerce-account .u-column2.golsatan-active {
    display: block;
}

/* عنوان‌های پیش‌فرض ووکامرس که دیگه لازم نیستن چون تب داریم */
.woocommerce-account .u-columns h2 {
    display: none;
}

/* لینک بازگشت به سایت زیر کارت */
.golsatan-back-link {
    text-align: center;
    margin-top: 16px;
}

.golsatan-back-link a {
    color: #1c4b3a;
    font-size: 12.5px;
    text-decoration: none;
    font-weight: 500;
}

.golsatan-back-link a:hover {
    color: #c9a355;
    text-decoration: underline;
}


