/* =========================================================
   کانتینر ایزوله پس‌زمینه (Viewport Layer)
========================================================= */
.noauth-canvas-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* لایه ثابت پس‌زمینه معادل ۱۰۰٪ مانیتور */
.noauth-bg-viewport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.noauth-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* چیدمان‌ها، جهات و اشکال هلالی/مورب به صورت پویا از سمت تنظیمات کنترل می‌شوند */

/* =========================================================
   کانتینر و کادر فرم
========================================================= */
.noauth-canvas-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

#noauth-container {
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    direction: rtl;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.noauth-step { display: none; }
.noauth-step.active { display: block; }

.noauth-step-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #222;
}

.noauth-step-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* فیلدها و تراز عمودی دقیق پرچم */
.noauth-input-group { 
    position: relative; 
    margin-bottom: 15px; 
    display: flex;
    align-items: center;
}

.noauth-input-group .noauth-input {
    margin-bottom: 0 !important; /* حذف مارجین پایینی برای سنتر شدن دقیق */
}

.noauth-input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px; /* فاصله استاندارد بین فیلدهای عمودی */
    font-size: 15px;
    line-height: 1.5;
    box-sizing: border-box;
    text-align: right;
    transition: 0.2s all;
}

.noauth-input.ltr { 
    direction: ltr; 
    text-align: left; 
}

.noauth-input:focus {
    outline: none;
}

.noauth-country-code {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    direction: ltr;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    line-height: 1;
}

.noauth-iran-flag {
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.25);
    display: block;
    vertical-align: middle;
}

.noauth-input-group.prefix-flag input[type="tel"] { padding-left: 48px; }
.noauth-input-group.prefix-code input[type="tel"] { padding-left: 55px; }
.noauth-input-group.prefix-none input[type="tel"] { padding-left: 14px; }

.noauth-form-row { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 14px; /* فاصله بین ردیف نام و نام خانوادگی با فیلد ایمیل */
}

.noauth-form-row .noauth-input { 
    width: 50%; 
    margin-bottom: 0 !important; /* فیلدهای هم‌ردیف نیازی به مارجین داخلی ندارند */
}

/* دکمه‌ها */
.noauth-submit-btn {
    width: 100%;
    padding: 13px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: 0.3s background-color;
}

.noauth-submit-btn:disabled { 
    background-color: #bdc3c7 !important; 
    cursor: not-allowed; 
}

.noauth-btn-secondary {
    display: block;
    width: 100%;
    background: #f1f2f6;
    color: #333;
    padding: 11px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    box-sizing: border-box;
    transition: 0.2s background;
}

.noauth-btn-secondary:hover { 
    background: #e4e7ed; 
    color: #000; 
}

.noauth-back-link {
    display: inline-block;
    margin-top: 20px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s color;
}

.noauth-back-link:hover { 
    color: #000; 
}

.noauth-form-links { 
    margin-top: 12px; 
}

.noauth-link-forgot {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: #777;
    text-decoration: none;
}

.noauth-link-forgot:hover { 
    text-decoration: underline; 
}

/* باکس‌های ۵ رقمی OTP کاملاً چپ به راست */
.noauth-otp-boxes {
    display: flex;
    flex-direction: row !important;
    direction: ltr !important;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.noauth-otp-digit {
    width: 48px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    direction: ltr !important;
    transition: 0.2s border-color;
}

.noauth-otp-digit:focus {
    outline: none;
}

/* پیام‌ها */
.noauth-msg {
    margin-top: 15px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.noauth-msg.error { 
    background: #fde8e8; 
    color: #9b1c1c; 
    border: 1px solid #f8b4b4; 
}

.noauth-msg.success { 
    background: #def7ec; 
    color: #03543f; 
    border: 1px solid #84e1bc; 
}

.noauth-disabled { 
    color: #aaa !important; 
    pointer-events: none; 
}

.text-center { 
    text-align: center; 
}

@media screen and (max-width: 768px) {
    .layout-split_half .noauth-bg-layer,
    .layout-split_two_third .noauth-bg-layer {
        width: 100%;
        height: 40%;
        top: 0;
    }
    .noauth-graphic-element {
        width: 50% !important;
        opacity: 0.3 !important;
    }
}

/* بج کانال ارسال کد */
.noauth-channel-badge {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: bold;
}

/* دکمه‌های پشتیبانی پیام‌رسان‌ها */
.noauth-sup-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    transition: 0.2s;
}
.noauth-sup-btn:hover { background: #e2e8f0; color: #0f172a; text-decoration: none; }
.noauth-sup-btn.phone { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.noauth-sup-btn.bale { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.noauth-sup-btn.tg { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.noauth-sup-btn.wa { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }


/* =========================================================
   نوار بیرونی پایین صفحه (روی پس‌زمینه - ثابت در پایین وسط)
========================================================= */
.noauth-bottom-bar {
    margin-top: 24px;
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* بج اطلاع‌رسانی کانال‌های ارسال کد روی پس‌زمینه */
.noauth-bottom-bar .noauth-channel-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.92);
    color: #065f46;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
}

.noauth-support-wrap {
    margin-top: 8px;
}

/* عنوان راهنمای تماس (رنگ سفید ملایم خوانا روی گرادیانت) */
.noauth-support-title {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.noauth-support-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* دکمه‌های پیام‌رسان‌ها با رنگ‌های رسمی برند */
.noauth-bottom-bar .noauth-sup-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
}

/* رنگ رسمی تماس تلفنی */
.noauth-bottom-bar .noauth-sup-btn.phone {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* رنگ رسمی پیام‌رسان بله */
.noauth-bottom-bar .noauth-sup-btn.bale {
    background: #00b159 !important;
    color: #ffffff !important;
}

/* رنگ رسمی تلگرام */
.noauth-bottom-bar .noauth-sup-btn.tg {
    background: #229ed9 !important;
    color: #ffffff !important;
}

/* رنگ رسمی واتساپ */
.noauth-bottom-bar .noauth-sup-btn.wa {
    background: #25d366 !important;
    color: #ffffff !important;
}

.noauth-bottom-bar .noauth-sup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    filter: brightness(1.1);
    color: #ffffff !important;
    text-decoration: none;
}

/* =========================================================
   استایل اختصاصی و جمع‌وجور فرم در صفحه تسویه حساب (Checkout)
========================================================= */

/* مخفی‌سازی کامل هرگونه فرم لاگین قدیمی ووکامرس در قالب */
.woocommerce-form-login-toggle,
.woocommerce-form-login {
    display: none !important;
}

.noauth-checkout-wrapper {
    margin: 15px 0 30px 0;
    width: 100%;
}

/* کادر اطلاع‌رسانی مدرن تسویه حساب با دکمه اختصاصی در زیر متن */
.noauth-checkout-notice-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #00a263;
    padding: 22px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    margin-bottom: 20px; /* حداقل فاصله از بخش پایینی */
}

.noauth-notice-text {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px; /* فاصله متن از دکمه زیر آن */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* دکمه شکیل زیر متن */
.noauth-checkout-login-btn {
    display: inline-block;
    background: #00a263 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(0, 162, 99, 0.25) !important;
    margin-bottom: 5px;
}

.noauth-checkout-login-btn:hover {
    background: #432b68 !important;
    box-shadow: 0 4px 14px rgba(67, 43, 104, 0.3) !important;
    transform: translateY(-2px);
}

/* کنترل ابعاد کادر ورود در تسویه حساب (جلوگیری از عریض شدن) */
#noauth-checkout-embed {
    max-width: 440px; /* حداکثر عرض دقیق و شکیل */
    margin: 20px auto 10px auto;
}

#noauth-checkout-embed #noauth-container {
    padding: 28px 24px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    background: #ffffff !important;
}

/* مخفی کردن نوار پشتیبانی بیرونی در صفحه تسویه حساب برای خلوت ماندن صفحه */
#noauth-checkout-embed .noauth-bottom-bar {
    display: none !important;
}