/* =====================================================================
   باکس ورود با شماره همراه (#login-view) و ثبت همراه دوم (#mobail_sec-view)
   ظاهر مدرن با تم گیشه — فقط CSS روی همان markup قبلی + چند بهبود کوچک در login_modal (site_new.master.js)
   ===================================================================== */
#login-view, #mobail_sec-view { --lm-primary: var(--primary, #550ae0); --lm-heading: var(--heading, #372c7a); --lm-border: #e6e3f3; --lm-muted: #6b6885; }
#login-view .modal-dialog, #mobail_sec-view .modal-dialog {
    max-width: 430px; width: calc(100% - 24px); margin: 0 auto; min-height: 100%;
    display: flex; align-items: center; padding: 24px 0;
}
#login-view .modal-content, #mobail_sec-view .modal-content {
    position: relative; border: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(32, 12, 90, .25); direction: rtl; background: #fff;
}
#login-view .product-view, #mobail_sec-view .product-view { padding: 0; margin: 0; }
#login-view .product-view > .row, #mobail_sec-view .product-view > .row { margin: 0; }
#login-view .product-view .col-md-12, #mobail_sec-view .product-view .col-md-12 { padding: 0 !important; }

/* سربرگ */
.lm-head {
    position: relative; text-align: center; color: #fff; padding: 30px 24px 26px;
    background: radial-gradient(circle at 15% 0%, rgba(255, 255, 255, .18), transparent 45%), linear-gradient(135deg, #6d28d9 0%, var(--lm-primary, #550ae0) 55%, #3b1aa8 100%);
}
.lm-head__icon {
    width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); font-size: 28px; color: #fff;
}
.lm-head h6, #login-view .lm-head #text_top, #mobail_sec-view .lm-head #H1 { margin: 0 0 6px !important; font-size: 18px; font-weight: 800; color: #fff; }
.lm-head p { margin: 0; font-size: 13px; line-height: 1.8; opacity: .9; }
.lm-steps { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.lm-steps i { width: 26px; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .35); transition: background .2s, width .2s; }
.lm-steps i.is-on { background: #fff; width: 40px; }
#login-view hr, #mobail_sec-view hr { display: none; }

/* بستن */
#login-view .modal-close, #mobail_sec-view .modal-close {
    position: absolute; z-index: 3; top: 14px; left: 14px; right: auto; width: 34px; height: 34px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .2); color: #fff; font-size: 15px; display: grid; place-items: center; cursor: pointer;
    transition: background .2s;
}
#login-view .modal-close:hover, #mobail_sec-view .modal-close:hover { background: rgba(255, 255, 255, .35); }

/* بدنه */
#advanced_form, #form_check_sms, #advanced_form_sec_mob, #form_check_sms_sec_mob { padding: 24px 24px 18px; }
#login-view .form-group, #mobail_sec-view .form-group { margin: 0 0 14px; }
#login-view .form-group:empty, #mobail_sec-view .form-group:empty { display: none; }
#login-view .input-group, #mobail_sec-view .input-group {
    display: flex; align-items: stretch; flex-wrap: nowrap; width: 100%; border: 1.5px solid var(--lm-border); border-radius: 14px;
    background: #faf9ff; overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
#login-view .input-group:focus-within, #mobail_sec-view .input-group:focus-within { border-color: var(--lm-primary); box-shadow: 0 0 0 4px rgba(85, 10, 224, .1); background: #fff; }
#login-view .input-group-addon, #mobail_sec-view .input-group-addon {
    display: grid; place-items: center; min-width: 48px; padding: 0 12px; border: 0; background: transparent; color: var(--lm-primary); font-size: 18px;
}
#login-view .input-group .form-control, #mobail_sec-view .input-group .form-control {
    flex: 1 1 auto; min-width: 0; height: 52px; border: 0 !important; border-radius: 0 !important; background: transparent; box-shadow: none !important;
    font-size: 16px; color: #1f1b3a; padding: 0 6px; text-align: right;
}
#login-view .input-group .form-control::placeholder, #mobail_sec-view .input-group .form-control::placeholder { color: #a6a3bd; font-size: 14px; }
#ed_mobail, #ed_mobail_mobail_sec { direction: ltr; text-align: right !important; letter-spacing: .5px; }
/* کپچا */
#chapta_refresh, #chapta_refresh2 {
    display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 8px; margin: 4px; border-radius: 10px; background: #fff;
    border: 1px solid var(--lm-border); cursor: pointer; color: var(--lm-primary); text-decoration: none; flex: 0 0 auto;
}
#chapta_refresh img, #chapta_refresh2 img { width: 104px !important; height: 40px !important; border-radius: 8px !important; object-fit: cover; display: block; }
#chapta_refresh .fa, #chapta_refresh2 .fa { font-size: 15px; transition: transform .4s; }
#chapta_refresh:hover .fa, #chapta_refresh2:hover .fa { transform: rotate(180deg); }
/* کد پیامک */
#ed_sms_hash, #ed_sms_hash_sec_mob { direction: ltr; text-align: center !important; font-size: 22px !important; font-weight: 700; letter-spacing: 10px; }
#ed_sms_hash::placeholder, #ed_sms_hash_sec_mob::placeholder { letter-spacing: 0; font-weight: normal; }
#l_clock_sms, #l_clock_sms_sec_mob {
    display: block; width: 100%; margin: 0; padding: 10px 12px; text-align: center; border-radius: 12px; background: #f3efff; color: var(--lm-heading);
    font-size: 13px; line-height: 1.9;
}
#l_clock_sms:empty, #l_clock_sms_sec_mob:empty { display: none; }
.lm-sent { margin: 0 0 14px; text-align: center; font-size: 13px; color: var(--lm-muted); line-height: 1.9; }
.lm-sent b { direction: ltr; unicode-bidi: embed; color: var(--lm-heading); }

/* دکمه‌ها */
#login-view .form-group[style*="text-align"], #mobail_sec-view .form-group[style*="text-align"] { text-align: center !important; }
#ok_bt, #bt_ok_end, #ok_bt_mobail, #bt_ok_end_mob_sec {
    display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin: 6px 0 0; border: 0 !important;
    border-radius: 14px !important; color: #fff !important; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none;
    background: linear-gradient(135deg, #6d28d9, var(--lm-primary, #550ae0)) !important; box-shadow: 0 10px 22px rgba(85, 10, 224, .28);
    transition: transform .15s, box-shadow .2s, opacity .2s;
}
#ok_bt:hover, #bt_ok_end:hover, #ok_bt_mobail:hover, #bt_ok_end_mob_sec:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(85, 10, 224, .34); }
#ok_bt.is-busy, #bt_ok_end.is-busy { opacity: .7; pointer-events: none; }
#resend_sms, #resend_sms_mob_sec {
    display: flex !important; align-items: center; justify-content: center; width: 100%; height: 46px; margin: 0; border-radius: 14px !important;
    background: #fff !important; color: var(--lm-primary) !important; border: 1.5px solid #d9d0fb !important; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
}
#resend_sms:hover, #resend_sms_mob_sec:hover { background: #f5f1ff !important; }
/* تا پایان شمارش معکوس، دکمه‌ی ارسال مجدد جای خالی نگیرد */
#resend_sms[style*="hidden"], #resend_sms_mob_sec[style*="hidden"] { display: none !important; }
#l_errror, #l_error_sms_hash, #Label1, #l_error_sms_hash_sec_mob { display: block; margin: 0; text-align: center; color: #d92d20; font-size: 13px; }
#l_errror:empty, #l_error_sms_hash:empty, #Label1:empty, #l_error_sms_hash_sec_mob:empty { display: none; }
.lm-foot { padding: 0 24px 22px; text-align: center; font-size: 11.5px; color: var(--lm-muted); line-height: 1.9; }
.lm-foot i { color: #16a34a; margin-left: 4px; }

/* موبایل: باکس از پایین صفحه (bottom sheet) */
@media (max-width: 575.98px) {
    #login-view .modal-dialog, #mobail_sec-view .modal-dialog { width: 100%; max-width: 100%; align-items: flex-end; padding: 0; margin: 0; }
    #login-view .modal-content, #mobail_sec-view .modal-content { border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom, 0); }
    .lm-head { padding: 26px 20px 22px; }
    .lm-head__icon { width: 54px; height: 54px; font-size: 24px; border-radius: 16px; }
    #advanced_form, #form_check_sms, #advanced_form_sec_mob, #form_check_sms_sec_mob { padding: 20px 18px 14px; }
    #chapta_refresh img, #chapta_refresh2 img { width: 90px !important; height: 38px !important; }
}
