/* ══════════════════════════════════════════════════════════════════
   صفحهٔ ورود و ثبت‌نام — بازطراحی
   پالت: کاغذ کرم #FBFAF7 / جوهری #0A1128 / لیمویی #C8F135
   پیشوند qa- (quizino auth) — بدون تداخل با maz-auth.css
   ══════════════════════════════════════════════════════════════════ */

:root{
  --qa-paper:#FBFAF7;
  --qa-paper2:#F4F1EA;
  --qa-ink:#0A1128;
  --qa-ink2:#2A3352;
  --qa-ink3:#5A6480;
  --qa-ink4:#8B93A8;
  --qa-line:#E7E4DC;
  --qa-line2:#D8D4C9;
  --qa-lime:#C8F135;
  --qa-ease:cubic-bezier(.16,1,.3,1);
}

/* ── بدنه ── */
body.qz-auth{
  background:var(--qa-paper) !important;
  color:var(--qa-ink) !important;
  min-height:100vh;
  position:relative;
  overflow-x:hidden;
}

/* بافت نقطه‌ای بسیار ملایم */
body.qz-auth::before{
  content:'';
  position:fixed; inset:0;
  background-image:radial-gradient(circle at 1px 1px, rgba(10,17,40,.045) 1px, transparent 0);
  background-size:22px 22px;
  pointer-events:none;
  z-index:0;
}

/* هالهٔ لیمویی نرم در گوشه */
body.qz-auth::after{
  content:'';
  position:fixed;
  top:-280px; left:50%;
  width:760px; height:760px;
  margin-left:-380px;
  background:radial-gradient(circle, rgba(200,241,53,.16), transparent 62%);
  pointer-events:none;
  z-index:0;
}

.qz-auth-wrap{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:32px 18px 26px;
}

/* ── نوار برند ── */
.qz-auth-brandbar{
  margin-bottom:26px;
  display:flex;
  justify-content:center;
}
.qz-auth-brandbar a{
  display:inline-flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
  padding:8px 16px 8px 12px;
  border-radius:14px;
  transition:background .22s var(--qa-ease);
}
.qz-auth-brandbar a:hover{background:rgba(10,17,40,.035)}
.qz-auth-brandbar img{
  width:38px; height:38px;
  border-radius:11px;
  object-fit:contain;
}
.qz-auth-brandbar .bt{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}
.qz-auth-brandbar .bt b{
  font-size:16.5px;
  font-weight:800;
  color:var(--qa-ink);
  letter-spacing:-.02em;
}
.qz-auth-brandbar .bt span{
  font-size:9px;
  font-weight:600;
  letter-spacing:.16em;
  color:var(--qa-ink4);
  margin-top:2px;
}

/* ── ستون ── */
.qz-auth-col{
  width:100%;
  max-width:412px;
}

/* ── تب‌ها ── */
.qz-auth-tabs{
  display:flex;
  gap:4px;
  padding:4px;
  background:var(--qa-paper2);
  border:1px solid var(--qa-line);
  border-radius:14px;
  margin-bottom:12px;
}
.qz-auth-tab{
  flex:1 1 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  height:40px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--qa-ink3);
  font-family:inherit;
  font-size:12.5px;
  font-weight:600;
  cursor:pointer;
  transition:background .22s var(--qa-ease), color .22s var(--qa-ease), box-shadow .22s var(--qa-ease);
  white-space:nowrap;
}
.qz-auth-tab i{font-size:12px; opacity:.8}
.qz-auth-tab:hover{color:var(--qa-ink2)}
.qz-auth-tab.is-active{
  background:#fff;
  color:var(--qa-ink);
  font-weight:700;
  box-shadow:0 1px 2px rgba(10,17,40,.06), 0 2px 8px -4px rgba(10,17,40,.12);
}
.qz-auth-tab.is-active i{opacity:1}

/* ── کارت ── */
.qz-auth-card{
  background:#fff;
  border:1px solid var(--qa-line);
  border-radius:20px;
  padding:30px 26px 24px;
  box-shadow:
    0 1px 2px rgba(10,17,40,.04),
    0 12px 32px -16px rgba(10,17,40,.14),
    0 32px 64px -40px rgba(10,17,40,.18);
}

.qz-auth-title{
  margin:0 0 6px;
  font-size:23px;
  font-weight:800;
  letter-spacing:-.03em;
  color:var(--qa-ink);
  line-height:1.25;
}
.qz-auth-sub{
  margin:0 0 24px;
  font-size:13px;
  color:var(--qa-ink3);
  line-height:1.7;
}

/* ── فیلدها ── */
.qz-field{
  margin-bottom:16px;
}
.qz-field label{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:600;
  color:var(--qa-ink2);
  margin-bottom:7px;
}
.qz-field label i{
  font-size:11px;
  color:var(--qa-ink4);
  width:13px;
  text-align:center;
}
.qz-input,
.qz-field input[type=text],
.qz-field input[type=password],
.qz-field input[type=tel],
.qz-field input[type=email]{
  width:100%;
  height:46px;
  padding:0 14px;
  border:1.5px solid var(--qa-line2);
  border-radius:12px;
  background:var(--qa-paper);
  color:var(--qa-ink);
  font-family:inherit;
  font-size:14px;
  font-weight:500;
  transition:border-color .2s var(--qa-ease), background .2s var(--qa-ease), box-shadow .2s var(--qa-ease);
}
.qz-input::placeholder,
.qz-field input::placeholder{
  color:var(--qa-ink4);
  font-weight:400;
}
.qz-input:focus,
.qz-field input:focus{
  outline:none;
  border-color:var(--qa-ink);
  background:#fff;
  box-shadow:0 0 0 3.5px rgba(10,17,40,.07);
}
.qz-input.ltr,
.qz-field input.ltr{
  direction:ltr;
  text-align:left;
  font-family:ui-monospace,"SF Mono",Menlo,monospace;
  letter-spacing:.01em;
}
.qz-field .hint{
  display:block;
  margin-top:6px;
  font-size:11px;
  color:var(--qa-ink4);
  line-height:1.6;
}

/* ── رمز + چشم ── */
.qz-pass-wrap{position:relative}
.qz-pass-wrap input{padding-inline-end:46px}
.qz-pass-toggle{
  position:absolute;
  inset-inline-end:6px;
  top:50%;
  transform:translateY(-50%);
  width:34px; height:34px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--qa-ink4);
  font-size:13px;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .18s, color .18s;
}
.qz-pass-toggle:hover{background:var(--qa-paper2); color:var(--qa-ink2)}

/* ── دکمه‌ها ── */
.qz-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  height:48px;
  border:1.5px solid transparent;
  border-radius:12px;
  font-family:inherit;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  transition:background .2s var(--qa-ease), color .2s var(--qa-ease),
             border-color .2s var(--qa-ease), transform .15s var(--qa-ease),
             box-shadow .2s var(--qa-ease);
}
.qz-btn i{font-size:13px}

.qz-btn-primary{
  background:linear-gradient(180deg,#1B2438,#0A1128);
  color:var(--qa-paper);
  box-shadow:0 1px 2px rgba(10,17,40,.18), 0 10px 22px -12px rgba(10,17,40,.55);
}
.qz-btn-primary:hover{
  background:linear-gradient(180deg,#2A3352,#0A1128);
  color:var(--qa-paper);
  transform:translateY(-1px);
  box-shadow:0 2px 4px rgba(10,17,40,.18), 0 14px 28px -12px rgba(10,17,40,.6);
}
.qz-btn-primary:active{transform:translateY(0) scale(.99)}

.qz-btn-outline{
  background:transparent;
  border-color:var(--qa-line2);
  color:var(--qa-ink2);
  height:44px;
  font-size:13px;
  font-weight:600;
}
.qz-btn-outline:hover{
  background:var(--qa-paper2);
  border-color:var(--qa-ink4);
  color:var(--qa-ink);
}

.qz-btn-ghost{
  background:transparent;
  border-color:transparent;
  color:var(--qa-ink3);
  height:40px;
  font-size:12.5px;
  font-weight:600;
}
.qz-btn-ghost:hover{background:var(--qa-paper2); color:var(--qa-ink2)}

.qz-btn-sm{height:38px; font-size:12px}
.qz-btn-lg{height:52px; font-size:15px}

/* ── جداکننده ── */
.qz-auth-divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:22px 0 14px;
  font-size:11.5px;
  color:var(--qa-ink4);
}
.qz-auth-divider .line{
  flex:1 1 0;
  height:1px;
  background:var(--qa-line);
}

/* ── لینک‌های پایین ── */
.qz-auth-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid var(--qa-line);
  font-size:12px;
}
.qz-auth-links a{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--qa-ink3);
  text-decoration:none;
  font-weight:500;
  transition:color .18s;
}
.qz-auth-links a:hover{color:var(--qa-ink)}
.qz-auth-links a i{font-size:10.5px; opacity:.7}
.qz-auth-links .sep{color:var(--qa-line2); font-size:10px}

/* ── OTP ── */
.qz-otp-boxes{
  display:flex;
  gap:8px;
  direction:ltr;
  justify-content:center;
  margin:6px 0 4px;
}
.qz-otp-boxes input{
  width:44px !important;
  height:52px !important;
  padding:0 !important;
  text-align:center;
  font-size:19px !important;
  font-weight:700;
  font-family:ui-monospace,monospace;
  border:1.5px solid var(--qa-line2) !important;
  border-radius:11px;
  background:var(--qa-paper) !important;
  color:var(--qa-ink);
  transition:border-color .18s, background .18s, box-shadow .18s;
}
.qz-otp-boxes input:focus{
  outline:none;
  border-color:var(--qa-ink) !important;
  background:#fff !important;
  box-shadow:0 0 0 3px rgba(10,17,40,.08);
}
.qz-countdown{
  text-align:center;
  font-size:11.5px;
  color:var(--qa-ink4);
  margin-top:10px;
  min-height:16px;
}
.qz-countdown b{color:var(--qa-ink2); font-variant-numeric:tabular-nums}

/* ── هشدارها ── */
.qz-alert{
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:12px 14px;
  border-radius:11px;
  font-size:12.5px;
  line-height:1.7;
  margin-bottom:14px;
  border:1px solid transparent;
}
.qz-alert i{font-size:13px; margin-top:2px; flex:0 0 auto}
.qz-alert-success{background:rgba(26,158,92,.07); border-color:rgba(26,158,92,.22); color:#137A46}
.qz-alert-error{background:rgba(229,72,77,.07); border-color:rgba(229,72,77,.22); color:#C22A2F}
.qz-alert-info{background:rgba(10,17,40,.045); border-color:rgba(10,17,40,.1); color:var(--qa-ink2)}

/* ── پاورقی ── */
.qz-auth-foot{
  margin-top:26px;
  font-size:11px;
  color:var(--qa-ink4);
  text-align:center;
  letter-spacing:.01em;
}

/* ══════════════════════════════════════════════════════════════════
   صفحهٔ ثبت‌نام
   ══════════════════════════════════════════════════════════════════ */

body.qz-auth.reg-page{
  background:var(--qa-paper) !important;
}

.reg-shell{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,420px);
  gap:0;
  max-width:1080px;
  width:100%;
  margin:0 auto;
  min-height:100vh;
  align-items:center;
  padding:0 18px;
}

/* ستون فرم */
.reg-main{
  padding:40px 44px 40px 0;
  max-width:520px;
  width:100%;
  justify-self:end;
}

.reg-brand{
  display:inline-flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
  margin-bottom:28px;
  padding:7px 14px 7px 10px;
  border-radius:13px;
  transition:background .22s var(--qa-ease);
}
.reg-brand:hover{background:rgba(10,17,40,.035)}
.reg-brand img{width:36px; height:36px; border-radius:10px; object-fit:contain}
.reg-brand .bt{display:flex; flex-direction:column; line-height:1.15}
.reg-brand .bt b{font-size:16px; font-weight:800; color:var(--qa-ink); letter-spacing:-.02em}
.reg-brand .bt span{font-size:8.5px; font-weight:600; letter-spacing:.16em; color:var(--qa-ink4); margin-top:2px}

.reg-head{margin-bottom:22px}
.reg-head h1{
  margin:0 0 7px;
  font-size:clamp(24px,3.2vw,30px);
  font-weight:800;
  letter-spacing:-.035em;
  color:var(--qa-ink);
  line-height:1.2;
}
.reg-head p{
  margin:0;
  font-size:13.5px;
  color:var(--qa-ink3);
  line-height:1.7;
}

/* مراحل */
.reg-steps{
  display:flex;
  align-items:center;
  gap:0;
  margin-bottom:26px;
}
.reg-step{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11.5px;
  font-weight:600;
  color:var(--qa-ink4);
  white-space:nowrap;
  transition:color .22s;
}
.reg-step .n{
  width:24px; height:24px;
  border-radius:50%;
  border:1.5px solid var(--qa-line2);
  background:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:11px;
  font-weight:700;
  color:var(--qa-ink4);
  transition:all .22s var(--qa-ease);
  flex:0 0 auto;
}
.reg-step.is-active{color:var(--qa-ink)}
.reg-step.is-active .n{
  background:var(--qa-ink);
  border-color:var(--qa-ink);
  color:var(--qa-paper);
  box-shadow:0 0 0 4px rgba(10,17,40,.07);
}
.reg-step.is-done .n{
  background:var(--qa-lime);
  border-color:var(--qa-lime);
  color:var(--qa-ink);
}
.reg-step-line{
  flex:1 1 0;
  height:1.5px;
  background:var(--qa-line);
  margin:0 10px;
  min-width:16px;
}

/* فیلدها */
.reg-field{margin-bottom:15px}
.reg-field > label{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:600;
  color:var(--qa-ink2);
  margin-bottom:7px;
}
.reg-field > label i{font-size:11px; color:var(--qa-ink4); width:13px; text-align:center}
.reg-field > label .req{color:#E5484D; font-size:13px; line-height:1}

.reg-input-wrap{position:relative}
.reg-input-wrap input{
  width:100%;
  height:46px;
  padding:0 40px 0 14px;
  border:1.5px solid var(--qa-line2);
  border-radius:12px;
  background:#fff;
  color:var(--qa-ink);
  font-family:inherit;
  font-size:14px;
  font-weight:500;
  transition:border-color .2s var(--qa-ease), box-shadow .2s var(--qa-ease);
}
.reg-input-wrap input::placeholder{color:var(--qa-ink4); font-weight:400}
.reg-input-wrap input:focus{
  outline:none;
  border-color:var(--qa-ink);
  box-shadow:0 0 0 3.5px rgba(10,17,40,.07);
}
.reg-input-wrap input.ltr{
  direction:ltr;
  text-align:left;
  font-family:ui-monospace,"SF Mono",Menlo,monospace;
}
.reg-input-wrap > i{
  position:absolute;
  inset-inline-start:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:12.5px;
  color:var(--qa-ink4);
  pointer-events:none;
  transition:color .2s;
}
.reg-input-wrap:focus-within > i{color:var(--qa-ink2)}

.reg-eye{
  position:absolute;
  inset-inline-end:6px;
  top:50%;
  transform:translateY(-50%);
  width:34px; height:34px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--qa-ink4);
  font-size:13px;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .18s, color .18s;
}
.reg-eye:hover{background:var(--qa-paper2); color:var(--qa-ink2)}

.reg-hint{
  display:block;
  margin-top:6px;
  font-size:11px;
  color:var(--qa-ink4);
  line-height:1.6;
}
.reg-err{
  display:block;
  margin-top:5px;
  font-size:11px;
  color:#C22A2F;
  font-weight:500;
  min-height:0;
  line-height:1.5;
}
.reg-err:empty{display:none}

/* قدرت رمز */
.reg-strength{
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:8px;
}
.reg-strength .bar{
  flex:1 1 0;
  height:3.5px;
  border-radius:99px;
  background:var(--qa-line);
  overflow:hidden;
}
.reg-strength .bar i{
  display:block;
  height:100%;
  border-radius:99px;
  background:var(--qa-ink4);
  transition:width .3s var(--qa-ease), background .3s var(--qa-ease);
}
.reg-strength span{
  font-size:10.5px;
  font-weight:600;
  color:var(--qa-ink4);
  min-width:52px;
  text-align:end;
  transition:color .3s;
}

/* موبایل + دکمهٔ ارسال کد */
.reg-mobile-row{
  display:flex;
  gap:8px;
}
.reg-mobile-row .reg-input-wrap{flex:1 1 auto; min-width:0}
.reg-otp-btn{
  flex:0 0 auto;
  height:46px;
  padding:0 16px;
  border:1.5px solid var(--qa-line2);
  border-radius:12px;
  background:var(--qa-paper2);
  color:var(--qa-ink2);
  font-family:inherit;
  font-size:12.5px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  transition:background .2s, border-color .2s, color .2s, transform .15s;
}
.reg-otp-btn:hover:not(:disabled){background:#EDEAE0; border-color:var(--qa-ink4); color:var(--qa-ink)}
.reg-otp-btn:active:not(:disabled){transform:scale(.97)}
.reg-otp-btn:disabled{opacity:.5; cursor:not-allowed}

/* پنل OTP */
.reg-otp-panel{
  margin-top:14px;
  padding:16px;
  border-radius:14px;
  background:var(--qa-paper2);
  border:1px solid var(--qa-line);
  animation:regSlide .35s var(--qa-ease);
}
@keyframes regSlide{
  from{opacity:0; transform:translateY(-6px)}
  to{opacity:1; transform:translateY(0)}
}
.reg-otp-head{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  font-weight:600;
  color:var(--qa-ink2);
  margin-bottom:12px;
}
.reg-otp-head i{color:var(--qa-ink3); font-size:12px}
.reg-otp-boxes{
  display:flex;
  gap:7px;
  direction:ltr;
  justify-content:center;
}
.reg-otp-boxes input{
  width:40px !important;
  height:48px !important;
  padding:0 !important;
  text-align:center;
  font-size:18px !important;
  font-weight:700;
  font-family:ui-monospace,monospace;
  border:1.5px solid var(--qa-line2) !important;
  border-radius:10px;
  background:#fff !important;
  color:var(--qa-ink);
  transition:border-color .18s, box-shadow .18s;
}
.reg-otp-boxes input:focus{
  outline:none;
  border-color:var(--qa-ink) !important;
  box-shadow:0 0 0 3px rgba(10,17,40,.08);
}
.reg-otp-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:11px;
  gap:10px;
}
.reg-countdown{font-size:11px; color:var(--qa-ink4)}
.reg-countdown b{color:var(--qa-ink2); font-variant-numeric:tabular-nums}
.reg-resend{
  border:0;
  background:transparent;
  color:var(--qa-ink2);
  font-family:inherit;
  font-size:11.5px;
  font-weight:700;
  cursor:pointer;
  padding:4px 8px;
  border-radius:7px;
  transition:background .18s, color .18s;
}
.reg-resend:hover:not(:disabled){background:rgba(10,17,40,.06)}
.reg-resend:disabled{color:var(--qa-ink4); cursor:not-allowed; opacity:.6}

/* قوانین */
.reg-terms{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin:18px 0 4px;
  cursor:pointer;
  user-select:none;
}
.reg-terms input{position:absolute; opacity:0; width:0; height:0}
.reg-terms .box{
  width:19px; height:19px;
  border:1.5px solid var(--qa-line2);
  border-radius:6px;
  background:#fff;
  display:flex; align-items:center; justify-content:center;
  flex:0 0 auto;
  margin-top:1px;
  transition:all .2s var(--qa-ease);
}
.reg-terms .box i{
  font-size:9px;
  color:transparent;
  transition:color .18s;
}
.reg-terms input:checked + .box{
  background:var(--qa-ink);
  border-color:var(--qa-ink);
}
.reg-terms input:checked + .box i{color:var(--qa-paper)}
.reg-terms input:focus-visible + .box{box-shadow:0 0 0 3px rgba(10,17,40,.12)}
.reg-terms .txt{
  font-size:12px;
  color:var(--qa-ink3);
  line-height:1.75;
}
.reg-terms .txt a{
  color:var(--qa-ink);
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid var(--qa-line2);
  transition:border-color .18s;
}
.reg-terms .txt a:hover{border-color:var(--qa-ink)}

/* دکمهٔ ثبت‌نام */
.reg-submit{
  position:relative;
  width:100%;
  height:50px;
  margin-top:18px;
  border:0;
  border-radius:13px;
  background:linear-gradient(180deg,#1B2438,#0A1128);
  color:var(--qa-paper);
  font-family:inherit;
  font-size:14.5px;
  font-weight:700;
  cursor:pointer;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(10,17,40,.18), 0 10px 24px -12px rgba(10,17,40,.55);
  transition:background .2s var(--qa-ease), transform .15s var(--qa-ease), box-shadow .2s var(--qa-ease);
}
.reg-submit .txt{
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:opacity .18s, transform .18s;
}
.reg-submit .spin{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transition:opacity .18s;
}
.reg-submit:hover:not(:disabled){
  background:linear-gradient(180deg,#2A3352,#0A1128);
  transform:translateY(-1px);
  box-shadow:0 2px 4px rgba(10,17,40,.18), 0 14px 30px -12px rgba(10,17,40,.6);
}
.reg-submit:active:not(:disabled){transform:translateY(0) scale(.99)}
.reg-submit:disabled{opacity:.55; cursor:not-allowed; box-shadow:none}
.reg-submit.is-loading .txt{opacity:0; transform:scale(.94)}
.reg-submit.is-loading .spin{opacity:1}

.reg-submit-hint{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin:10px 0 0;
  font-size:11.5px;
  color:var(--qa-ink4);
  text-align:center;
}
.reg-submit-hint i{font-size:11px}

/* لینک‌های پایین */
.reg-foot-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--qa-line);
  font-size:12px;
  color:var(--qa-ink4);
}
.reg-foot-links a{
  color:var(--qa-ink2);
  font-weight:600;
  text-decoration:none;
  transition:color .18s;
}
.reg-foot-links a:hover{color:var(--qa-ink)}
.reg-foot-links .sep{color:var(--qa-line2)}

/* ── ستون معرفی ── */
.reg-side{
  position:sticky;
  top:0;
  align-self:stretch;
  display:flex;
  align-items:center;
  padding:40px 0 40px 40px;
}
.reg-side-inner{
  position:relative;
  overflow:hidden;
  width:100%;
  padding:34px 30px;
  border-radius:24px;
  background:linear-gradient(155deg,#0A1128 0%,#0A1128 58%,#060B1A 100%);
  color:var(--qa-paper);
  box-shadow:0 28px 60px -28px rgba(10,17,40,.55);
}
.reg-side-inner::before{
  content:'';
  position:absolute;
  top:-30%; right:-20%;
  width:340px; height:340px;
  background:radial-gradient(circle, rgba(200,241,53,.13), transparent 62%);
  pointer-events:none;
}
.reg-side-inner > *{position:relative; z-index:1}

.reg-side-badge{
  width:44px; height:44px;
  border-radius:13px;
  background:rgba(200,241,53,.14);
  border:1px solid rgba(200,241,53,.24);
  color:var(--qa-lime);
  display:flex; align-items:center; justify-content:center;
  font-size:17px;
  margin-bottom:18px;
}
.reg-side h2{
  margin:0 0 8px;
  font-size:21px;
  font-weight:800;
  letter-spacing:-.028em;
  line-height:1.35;
  color:#FBFAF7;
}
.reg-side > .reg-side-inner > p{
  margin:0 0 24px;
  font-size:12.5px;
  line-height:1.8;
  color:rgba(251,250,247,.58);
}

.reg-feats{
  list-style:none;
  margin:0 0 22px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:15px;
}
.reg-feats li{
  display:flex;
  gap:11px;
  align-items:flex-start;
}
.reg-feats .ic{
  width:32px; height:32px;
  border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  font-size:12px;
  flex:0 0 auto;
  background:rgba(251,250,247,.07);
  border:1px solid rgba(251,250,247,.1);
  color:rgba(251,250,247,.82);
}
.reg-feats .ic.is-blue{color:#8FB4FF; background:rgba(143,180,255,.1); border-color:rgba(143,180,255,.18)}
.reg-feats .ic.is-green{color:#7EE2A8; background:rgba(126,226,168,.1); border-color:rgba(126,226,168,.18)}
.reg-feats .ic.is-amber{color:#F5C86B; background:rgba(245,200,107,.1); border-color:rgba(245,200,107,.18)}
.reg-feats .ic.is-violet{color:#C0AAFF; background:rgba(192,170,255,.1); border-color:rgba(192,170,255,.18)}
.reg-feats b{
  display:block;
  font-size:12.5px;
  font-weight:700;
  color:#FBFAF7;
  margin-bottom:2px;
  line-height:1.5;
}
.reg-feats span{
  display:block;
  font-size:11px;
  line-height:1.7;
  color:rgba(251,250,247,.5);
}

.reg-side-note{
  display:flex;
  gap:9px;
  align-items:flex-start;
  padding:12px 14px;
  border-radius:11px;
  background:rgba(251,250,247,.05);
  border:1px solid rgba(251,250,247,.09);
  font-size:11px;
  line-height:1.7;
  color:rgba(251,250,247,.6);
}
.reg-side-note i{color:var(--qa-lime); font-size:11.5px; margin-top:2px; flex:0 0 auto}

/* ══════════════════════════════════════════════════════════════════
   ریسپانسیو
   ══════════════════════════════════════════════════════════════════ */

@media (max-width:900px){
  .reg-shell{
    grid-template-columns:1fr;
    max-width:520px;
    padding:0 16px;
  }
  .reg-main{
    padding:32px 0 30px;
    max-width:100%;
    justify-self:stretch;
  }
  .reg-side{
    position:static;
    padding:0 0 32px;
    order:2;
  }
  .reg-side-inner{padding:26px 22px; border-radius:20px}
  .reg-side h2{font-size:18px}
}

@media (max-width:640px){
  .qz-auth-wrap{padding:22px 14px 20px}
  .qz-auth-brandbar{margin-bottom:20px}
  .qz-auth-card{padding:24px 18px 20px; border-radius:17px}
  .qz-auth-title{font-size:20px}
  .qz-auth-sub{font-size:12.5px; margin-bottom:20px}
  .qz-input,.qz-field input{height:44px; font-size:15px}
  .qz-btn{height:46px}
  .qz-auth-tab{font-size:11.5px; height:38px; gap:5px}
  .qz-auth-tab i{font-size:11px}
  .qz-otp-boxes{gap:6px}
  .qz-otp-boxes input{width:40px !important; height:48px !important; font-size:17px !important}

  .reg-head h1{font-size:23px}
  .reg-head p{font-size:12.5px}
  .reg-steps{gap:0; margin-bottom:20px}
  .reg-step{font-size:10.5px; gap:6px}
  .reg-step .n{width:21px; height:21px; font-size:10px}
  .reg-step-line{margin:0 7px}
  .reg-input-wrap input{height:44px; font-size:15px}
  .reg-mobile-row{flex-wrap:wrap}
  .reg-otp-btn{width:100%; height:42px}
  .reg-otp-boxes input{width:38px !important; height:46px !important; font-size:17px !important}
  .reg-submit{height:48px; font-size:14px}
  .reg-side-inner{padding:22px 18px}
  .reg-feats{gap:13px}
  .reg-feats b{font-size:12px}
  .reg-feats span{font-size:10.5px}
}

@media (max-width:380px){
  .reg-steps{flex-wrap:wrap; gap:6px}
  .reg-step-line{display:none}
  .qz-otp-boxes input{width:36px !important}
  .reg-otp-boxes input{width:34px !important}
}

/* احترام به کاهش حرکت */
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms !important; transition-duration:.01ms !important}
}

/* ══════════════════════════════════════════════════════════════════
   غلبه بر maz-auth.css — دکمه‌ها و فیلدها
   maz-auth.css از متغیرهای --az-* استفاده می‌کند که تعریف نشده‌اند
   و به آبی پیش‌فرض می‌افتند. اینجا با specificity بالاتر بسته می‌شوند.
   ══════════════════════════════════════════════════════════════════ */

body.qz-auth .qz-btn.qz-btn-primary{
  background:linear-gradient(180deg,#1B2438,#0A1128) !important;
  color:#FBFAF7 !important;
  border-color:transparent !important;
  box-shadow:0 1px 2px rgba(10,17,40,.18), 0 10px 22px -12px rgba(10,17,40,.55) !important;
}
body.qz-auth .qz-btn.qz-btn-primary:hover{
  background:linear-gradient(180deg,#2A3352,#0A1128) !important;
  color:#FBFAF7 !important;
}
body.qz-auth .qz-btn.qz-btn-outline{
  background:transparent !important;
  color:#2A3352 !important;
  border-color:#D8D4C9 !important;
  height:44px !important;
}
body.qz-auth .qz-btn.qz-btn-outline:hover{
  background:#F4F1EA !important;
  border-color:#8B93A8 !important;
  color:#0A1128 !important;
}
body.qz-auth .qz-btn.qz-btn-ghost{
  background:transparent !important;
  color:#5A6480 !important;
  border-color:transparent !important;
  height:40px !important;
}
body.qz-auth .qz-btn.qz-btn-ghost:hover{
  background:#F4F1EA !important;
  color:#2A3352 !important;
}

/* فیلدها */
body.qz-auth .qz-input,
body.qz-auth .qz-field input{
  background:#FBFAF7 !important;
  border:1.5px solid #D8D4C9 !important;
  color:#0A1128 !important;
  height:46px !important;
  border-radius:12px !important;
  padding:0 14px !important;
}
body.qz-auth .qz-input:focus,
body.qz-auth .qz-field input:focus{
  background:#fff !important;
  border-color:#0A1128 !important;
  box-shadow:0 0 0 3.5px rgba(10,17,40,.07) !important;
}
body.qz-auth .qz-pass-wrap input{padding-inline-end:46px !important}

/* تب‌ها */
body.qz-auth .qz-auth-tab{
  background:transparent !important;
  color:#5A6480 !important;
  border:0 !important;
  box-shadow:none !important;
}
body.qz-auth .qz-auth-tab.is-active{
  background:#fff !important;
  color:#0A1128 !important;
  box-shadow:0 1px 2px rgba(10,17,40,.06), 0 2px 8px -4px rgba(10,17,40,.12) !important;
}

/* کارت */
body.qz-auth .qz-auth-card{
  background:#fff !important;
  border:1px solid #E7E4DC !important;
  border-radius:20px !important;
}

/* لینک‌ها */
body.qz-auth .qz-auth-links a{color:#5A6480 !important}
body.qz-auth .qz-auth-links a:hover{color:#0A1128 !important}
body.qz-auth .qz-auth-divider{color:#8B93A8 !important}
body.qz-auth .qz-auth-divider .line{background:#E7E4DC !important}

/* ثبت‌نام */
body.qz-auth .reg-submit{
  background:linear-gradient(180deg,#1B2438,#0A1128) !important;
  color:#FBFAF7 !important;
  border:0 !important;
}
body.qz-auth .reg-submit:hover:not(:disabled){
  background:linear-gradient(180deg,#2A3352,#0A1128) !important;
}
body.qz-auth .reg-input-wrap input{
  background:#fff !important;
  border:1.5px solid #D8D4C9 !important;
  color:#0A1128 !important;
}
body.qz-auth .reg-input-wrap input:focus{
  border-color:#0A1128 !important;
  box-shadow:0 0 0 3.5px rgba(10,17,40,.07) !important;
}
body.qz-auth .reg-otp-btn{
  background:#F4F1EA !important;
  border:1.5px solid #D8D4C9 !important;
  color:#2A3352 !important;
}
body.qz-auth .reg-otp-btn:hover:not(:disabled){
  background:#EDEAE0 !important;
  border-color:#8B93A8 !important;
  color:#0A1128 !important;
}
body.qz-auth .reg-terms .box{
  border:1.5px solid #D8D4C9 !important;
  background:#fff !important;
}
body.qz-auth .reg-terms input:checked + .box{
  background:#0A1128 !important;
  border-color:#0A1128 !important;
}
body.qz-auth .reg-step .n{
  border:1.5px solid #D8D4C9 !important;
  background:#fff !important;
  color:#8B93A8 !important;
}
body.qz-auth .reg-step.is-active .n{
  background:#0A1128 !important;
  border-color:#0A1128 !important;
  color:#FBFAF7 !important;
}
body.qz-auth .reg-step.is-done .n{
  background:#C8F135 !important;
  border-color:#C8F135 !important;
  color:#0A1128 !important;
}
body.qz-auth .reg-otp-boxes input{
  background:#fff !important;
  border:1.5px solid #D8D4C9 !important;
  color:#0A1128 !important;
}
body.qz-auth .reg-otp-boxes input:focus{
  border-color:#0A1128 !important;
  box-shadow:0 0 0 3px rgba(10,17,40,.08) !important;
}
body.qz-auth .reg-otp-panel{
  background:#F4F1EA !important;
  border:1px solid #E7E4DC !important;
}
body.qz-auth .reg-resend{color:#2A3352 !important}
body.qz-auth .reg-resend:hover:not(:disabled){background:rgba(10,17,40,.06) !important}
body.qz-auth .reg-foot-links a{color:#2A3352 !important}
body.qz-auth .reg-foot-links a:hover{color:#0A1128 !important}
body.qz-auth .reg-hint,
body.qz-auth .reg-countdown{color:#8B93A8 !important}
body.qz-auth .reg-terms .txt{color:#5A6480 !important}
body.qz-auth .reg-terms .txt a{color:#0A1128 !important}
body.qz-auth .reg-field > label{color:#2A3352 !important}
body.qz-auth .qz-field label{color:#2A3352 !important}
body.qz-auth .qz-auth-title{color:#0A1128 !important}
body.qz-auth .qz-auth-sub{color:#5A6480 !important}
body.qz-auth .reg-head h1{color:#0A1128 !important}
body.qz-auth .reg-head p{color:#5A6480 !important}
body.qz-auth .qz-auth-foot{color:#8B93A8 !important}

/* ══════════════════════════════════════════════════════════════════
   اصلاحات — دور دوم
   ══════════════════════════════════════════════════════════════════ */

/* ۱. نوار قدرت رمز: قاعدهٔ `.reg-strength span` نوار را هدف می‌گرفت
      و لیبل را به یک بلوک پرعرض تبدیل می‌کرد. */
body.qz-auth .reg-strength{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}
body.qz-auth .reg-strength .bar{
  flex:1 1 0 !important;
  min-width:0 !important;
  display:block !important;
  height:4px !important;
  border-radius:99px !important;
  background:#EDEAE0 !important;
  overflow:hidden !important;
  width:auto !important;
}
body.qz-auth .reg-strength .bar i{
  display:block !important;
  height:100% !important;
  border-radius:99px !important;
  transition:width .3s cubic-bezier(.16,1,.3,1), background .3s !important;
}
body.qz-auth .reg-strength .lbl{
  flex:0 0 auto !important;
  width:auto !important;
  min-width:0 !important;
  font-size:10.5px !important;
  font-weight:700 !important;
  color:#8B93A8 !important;
  text-align:start !important;
  background:none !important;
  border-radius:0 !important;
  white-space:nowrap !important;
}

/* ۲. ستون فرم در موبایل: کارت سفید با گوشهٔ گرد و حاشیه */
@media (max-width:900px){
  body.qz-auth .reg-shell{
    padding:0 14px !important;
  }
  body.qz-auth .reg-main{
    background:#fff !important;
    border:1px solid #E7E4DC !important;
    border-radius:20px !important;
    padding:26px 20px 24px !important;
    margin:20px 0 18px !important;
    box-shadow:0 1px 2px rgba(10,17,40,.04), 0 12px 32px -20px rgba(10,17,40,.16) !important;
  }
}
@media (max-width:640px){
  body.qz-auth .reg-main{
    padding:22px 16px 20px !important;
    border-radius:17px !important;
    margin:16px 0 14px !important;
  }
}

/* ۳. متن‌های کمکی: فاصله از لبه و شکست درست */
body.qz-auth .reg-hint,
body.qz-auth .reg-err{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  padding-inline:1px !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}
body.qz-auth .reg-field > label{
  flex-wrap:wrap !important;
  row-gap:3px !important;
}
body.qz-auth .reg-field > label .req{
  margin-inline-start:auto !important;
}

/* ۴. نوار مراحل در موبایل: بدون سرریز */
@media (max-width:640px){
  body.qz-auth .reg-steps{
    gap:0 !important;
    padding:10px 10px !important;
    border-radius:12px !important;
    background:#F4F1EA !important;
    border:1px solid #E7E4DC !important;
  }
  body.qz-auth .reg-step{
    font-size:10px !important;
    gap:5px !important;
    flex:0 1 auto !important;
    min-width:0 !important;
  }
  body.qz-auth .reg-step > span:not(.n){
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    max-width:74px !important;
  }
  body.qz-auth .reg-step-line{
    margin:0 5px !important;
    min-width:8px !important;
  }
}
@media (max-width:380px){
  body.qz-auth .reg-step > span:not(.n){max-width:58px !important}
  body.qz-auth .reg-step{font-size:9.5px !important}
}

/* ۵. ستون معرفی در موبایل: فاصله و خوانایی */
@media (max-width:900px){
  body.qz-auth .reg-side{
    padding:0 0 24px !important;
  }
  body.qz-auth .reg-side-inner{
    border-radius:18px !important;
    padding:24px 18px !important;
  }
  body.qz-auth .reg-feats b{font-size:12.5px !important}
  body.qz-auth .reg-feats span{font-size:11px !important; line-height:1.75 !important}
  body.qz-auth .reg-side h2{font-size:19px !important}
  body.qz-auth .reg-side > .reg-side-inner > p{font-size:12px !important}
}

/* ۶. چک‌باکس قوانین: تراز درست */
body.qz-auth .reg-terms{
  align-items:flex-start !important;
  gap:10px !important;
}
body.qz-auth .reg-terms .txt{
  flex:1 1 auto !important;
  min-width:0 !important;
  font-size:12px !important;
  line-height:1.85 !important;
}

/* ۷. لینک‌های پایین: بدون فشردگی */
body.qz-auth .reg-foot-links{
  flex-wrap:wrap !important;
  row-gap:6px !important;
  font-size:12px !important;
}

/* ۸. دکمهٔ ارسال کد در موبایل: تمام‌عرض و مرتب */
@media (max-width:640px){
  body.qz-auth .reg-mobile-row{
    flex-direction:column !important;
    gap:8px !important;
  }
  body.qz-auth .reg-otp-btn{
    width:100% !important;
    height:42px !important;
    font-size:13px !important;
  }
}

/* ۹. خانه‌های OTP: پهنای مناسب در موبایل */
@media (max-width:400px){
  body.qz-auth .reg-otp-boxes{gap:6px !important}
  body.qz-auth .reg-otp-boxes input{
    width:calc((100vw - 100px) / 6) !important;
    max-width:42px !important;
    min-width:32px !important;
    height:46px !important;
    font-size:17px !important;
  }
  body.qz-auth .qz-otp-boxes input{
    width:calc((100vw - 100px) / 6) !important;
    max-width:42px !important;
    min-width:32px !important;
  }
}

/* ۱۰. بازیابی رمز: تب‌ها و کپچا */
body.qz-auth .qz-captcha-row{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  flex-wrap:wrap !important;
}
body.qz-auth .qz-captcha-row .qz-input{
  flex:1 1 110px !important;
  min-width:0 !important;
}
body.qz-auth .qz-captcha-img{
  flex:0 0 auto !important;
  display:flex !important;
  align-items:center !important;
  border-radius:10px !important;
  overflow:hidden !important;
  border:1px solid #E7E4DC !important;
  background:#F4F1EA !important;
}
body.qz-auth .qz-captcha-img img{
  display:block !important;
  height:44px !important;
  width:auto !important;
}
body.qz-auth .qz-captcha-refresh{
  flex:0 0 auto !important;
  width:38px !important;
  height:38px !important;
  border:1px solid #D8D4C9 !important;
  border-radius:10px !important;
  background:#F4F1EA !important;
  color:#5A6480 !important;
  cursor:pointer !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:12px !important;
  transition:background .18s, color .18s !important;
}
body.qz-auth .qz-captcha-refresh:hover{
  background:#EDEAE0 !important;
  color:#0A1128 !important;
}

/* تب‌های بازیابی: بدون استایل اینلاین آبی */
body.qz-auth .qz-auth-tabs .qz-auth-tab{
  background:transparent !important;
  border:0 !important;
  color:#5A6480 !important;
}
body.qz-auth .qz-auth-tabs .qz-auth-tab.is-active{
  background:#fff !important;
  color:#0A1128 !important;
  box-shadow:0 1px 2px rgba(10,17,40,.06), 0 2px 8px -4px rgba(10,17,40,.12) !important;
}

/* ۱۱. کارت بازیابی: بدنه بدون پس‌زمینهٔ جدا */
body.qz-auth .qz-auth-body{
  background:transparent !important;
  border-radius:0 !important;
}

/* ۱۲. اطمینان از گردی همهٔ کنترل‌ها */
body.qz-auth input:not([type=checkbox]):not([type=radio]),
body.qz-auth button,
body.qz-auth .qz-btn,
body.qz-auth .reg-submit,
body.qz-auth .reg-otp-btn{
  border-radius:12px !important;
}
body.qz-auth .reg-otp-boxes input,
body.qz-auth .qz-otp-boxes input{
  border-radius:10px !important;
}
body.qz-auth .reg-terms .box{
  border-radius:6px !important;
}

/* ══════════════════════════════════════════════════════════════════
   اصلاح قطعی گوشه‌های تیز
   ══════════════════════════════════════════════════════════════════ */

/* کارت سفید ثبت‌نام — در همهٔ عرض‌ها گرد */
body.qz-auth .reg-main{
  background:#fff !important;
  border:1px solid #E7E4DC !important;
  border-radius:20px !important;
  padding:28px 24px 26px !important;
  margin:22px 0 18px !important;
  box-shadow:0 1px 2px rgba(10,17,40,.04), 0 12px 32px -20px rgba(10,17,40,.16) !important;
  overflow:hidden !important;
}
@media (max-width:640px){
  body.qz-auth .reg-main{
    padding:22px 16px 20px !important;
    border-radius:17px !important;
    margin:16px 0 14px !important;
  }
}

/* بدنهٔ بازیابی رمز — بدون کادر جدا */
body.qz-auth .qz-auth-body{
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  padding:0 !important;
}

/* ══════════════════════════════════════════════════════════════════
   گوشه‌های گردتر — ثبت‌نام و ورود
   ══════════════════════════════════════════════════════════════════ */

/* فیلدهای متنی */
body.qz-auth .reg-input-wrap input,
body.qz-auth .qz-input,
body.qz-auth .qz-field input[type="text"],
body.qz-auth .qz-field input[type="password"],
body.qz-auth .qz-field input[type="tel"],
body.qz-auth .qz-field input[type="email"]{
  border-radius:16px !important;
}

/* دکمه‌ها */
body.qz-auth .reg-submit{
  border-radius:16px !important;
}
body.qz-auth .reg-otp-btn{
  border-radius:16px !important;
}
body.qz-auth .qz-btn,
body.qz-auth .qz-btn-primary,
body.qz-auth .qz-btn-outline,
body.qz-auth .qz-btn-ghost{
  border-radius:16px !important;
}

/* کارت‌ها و پنل‌ها */
body.qz-auth .reg-main{
  border-radius:24px !important;
}
body.qz-auth .qz-auth-card{
  border-radius:24px !important;
}
body.qz-auth .reg-otp-panel{
  border-radius:18px !important;
}
body.qz-auth .reg-steps{
  border-radius:16px !important;
}
body.qz-auth .reg-terms{
  border-radius:14px !important;
}
body.qz-auth .reg-side-inner{
  border-radius:26px !important;
}
body.qz-auth .qz-auth-tabs{
  border-radius:16px !important;
}
body.qz-auth .qz-auth-tab{
  border-radius:12px !important;
}
body.qz-auth .qz-alert{
  border-radius:14px !important;
}
body.qz-auth .reg-side-note{
  border-radius:14px !important;
}

/* خانه‌های کد */
body.qz-auth .reg-otp-boxes input,
body.qz-auth .qz-otp-boxes input{
  border-radius:14px !important;
}

/* دکمهٔ چشم */
body.qz-auth .reg-eye,
body.qz-auth .qz-pass-toggle{
  border-radius:12px !important;
}

@media (max-width:640px){
  body.qz-auth .reg-main{border-radius:20px !important}
  body.qz-auth .qz-auth-card{border-radius:20px !important}
  body.qz-auth .reg-side-inner{border-radius:20px !important}
  body.qz-auth .reg-input-wrap input,
  body.qz-auth .qz-input{border-radius:14px !important}
  body.qz-auth .reg-submit,
  body.qz-auth .reg-otp-btn,
  body.qz-auth .qz-btn{border-radius:14px !important}
}

/* ثبت‌نام: register.css با .reg-input-wrap input غالب است — بستن قطعی */
html body.qz-auth .reg-input-wrap input,
html body.qz-auth .reg-field input,
html body.qz-auth input#name,
html body.qz-auth input#username,
html body.qz-auth input#password,
html body.qz-auth input#email,
html body.qz-auth input#mobile{
  border-radius:16px !important;
}
html body.qz-auth .reg-otp-boxes input{
  border-radius:14px !important;
}
@media (max-width:640px){
  html body.qz-auth .reg-input-wrap input,
  html body.qz-auth .reg-field input,
  html body.qz-auth input#name,
  html body.qz-auth input#username,
  html body.qz-auth input#password,
  html body.qz-auth input#email,
  html body.qz-auth input#mobile{
    border-radius:14px !important;
  }
}
