/* ============================================================
   کارنگار dev2 — تم پاییزی پاستلی
   سبز ملایم برای سطح و دکمه‌ها؛ نارنجی و زرد برای تاکید.
   بعد از tokens.css و shell.css بار شود.
   ============================================================ */

/* ورود کارکنان و فرم متقاضی */
.old-login,
.old-apply{
  background-color:#f6f3e8 !important;
  background-image:
    linear-gradient(165deg,rgba(255,244,214,.78),rgba(223,238,208,.62) 46%,rgba(255,224,176,.70)),
    url("/static/img/background.png") !important;
  background-size:cover !important;
  background-position:center center !important;
}
.old-login .login-container,
.old-apply .login-container{
  background:rgba(255,252,245,.94) !important;
  border:1px solid #ead9b4 !important;
  box-shadow:0 18px 40px rgba(120,72,16,.14) !important;
}
.old-login .title,
.old-apply .title{color:#2a382c !important}
.old-login .subtitle,
.old-apply .subtitle,
.old-apply .subtitle-small{color:#4d5c48 !important}
.old-login .login-tabs{border-color:#f0d59a !important}
.old-login .login-tab{background:#fff6e4 !important;color:#6a5430 !important}
.old-login .login-tab.active{background:#e08a2f !important;color:#fff !important}
.old-login input,
.old-apply input,
.old-apply .otp{
  border-color:#e4d3aa !important;
  background:#fffdf8 !important;
  color:#2a382c !important;
}
.old-login input:focus,
.old-apply input:focus,
.old-apply .otp:focus{
  outline:2px solid rgba(230,179,37,.45) !important;
  border-color:#e6b325 !important;
}
.old-login button.btn-primary,
.old-apply button{
  background:#3f7a3a !important;
  color:#fff !important;
}
.old-login button.btn-primary:hover,
.old-apply button:hover{background:#2f5c2c !important}
.old-login .info-box{
  background:#fff6d8 !important;
  border-color:#f0d48a !important;
  color:#7a5410 !important;
}
.old-login button.btn-secondary{
  color:#6d5a32 !important;
  border-color:#e6d3a4 !important;
  background:transparent !important;
}
.old-apply .sms-note{
  background:#e7f3df !important;
  border-color:#b7d3a8 !important;
  color:#2f5c2c !important;
}
.old-apply .bot-note{
  background:#fff3e0 !important;
  border-color:#f0c27a !important;
  color:#8a5b00 !important;
}
.old-login .footer,
.old-apply .footer{color:#3e5344 !important}

/* پیشخوان: قهرمان و سندها */
html:not(.theme-dark) .hero{
  background:
    radial-gradient(900px 420px at 88% -20%,rgba(255,214,120,.40),transparent 58%),
    radial-gradient(520px 280px at 0% 120%,rgba(255,255,255,.16),transparent 60%),
    linear-gradient(135deg,#2f5c2c 0%,#3f7a3a 46%,#e08a2f 100%) !important;
}
html:not(.theme-dark) .bar{box-shadow:inset 0 -2px 0 #f0d48a}
.doc-h{border-bottom-color:var(--autumn,#e08a2f) !important}
.doc .net{background:var(--gold-soft,#fff6d6) !important}

/* آزمون: ته رنگ خزانی به‌جای نیلی. چراغ دوربین دست نخورده است. */
body:has(.q-header)::before{
  background:linear-gradient(135deg,rgba(47,92,44,.78) 0%,rgba(184,112,24,.55) 58%,rgba(42,36,22,.66) 100%) !important;
}
body:has(.q-header) .q-header{
  background:rgba(36,48,30,.92) !important;
  border-bottom-color:rgba(230,179,37,.38) !important;
}
body:has(.q-header) .q-num,
body:has(.q-header) .btn-prev,
body:has(.q-header) .face-block-status{color:#f3dd9a !important}
body:has(.q-header) .progress-fill,
body:has(.q-header) .advance-fill{background:linear-gradient(90deg,#e6b325,#e08a2f) !important}
body:has(.q-header) .ring-fill{stroke:#e6b325 !important}
body:has(.q-header) .iq-b{
  background:rgba(224,138,47,.22) !important;
  color:#f6d48a !important;
  border-color:rgba(224,138,47,.38) !important;
}
body:has(.q-header) .opt:hover{border-color:#e08a2f !important}
body:has(.q-header) .opt.sel{
  background:#fff6e4 !important;
  border-color:#e08a2f !important;
  box-shadow:0 4px 16px rgba(224,138,47,.28) !important;
}
body:has(.q-header) .opt.sel .opt-letter{background:#e08a2f !important;color:#fff !important}
body:has(.q-header) .opt-letter{background:rgba(63,122,58,.12) !important;color:#3f7a3a !important}
body:has(.q-header) .btn-prev{border-color:rgba(230,179,37,.45) !important}
body:has(.q-header) .btn-next{
  background:linear-gradient(135deg,#3f7a3a,#e08a2f) !important;
  box-shadow:0 4px 14px rgba(63,122,58,.35) !important;
}
body:has(.q-header) .scan-ring{border-color:rgba(230,179,37,.28) !important;border-top-color:#e6b325 !important}
body:has(.q-header) .m-box{background:#2a3820 !important;border-color:rgba(230,179,37,.45) !important}
body:has(.q-header) .m-ok{background:#3f7a3a !important}

/* متغیرهای HSL فرانت نکست، فقط روی صفحه‌های ورود و درخواست */
body:has(.old-login),
body:has(.old-apply){
  --background:47 44% 94%;
  --foreground:130 18% 16%;
  --card:40 60% 99%;
  --card-foreground:130 18% 16%;
  --primary:115 36% 35%;
  --primary-foreground:42 45% 97%;
  --secondary:38 45% 92%;
  --secondary-foreground:130 14% 20%;
  --muted:40 30% 92%;
  --muted-foreground:100 8% 36%;
  --accent:31 74% 53%;
  --accent-foreground:30 40% 14%;
  --border:38 32% 78%;
  --input:38 32% 78%;
  --ring:44 78% 52%;
}
