/* BAZRGARI — ADMIN SIGN-IN · Independent from storefront assets */
:root {
  --ad-burgundy: #811923;
  --ad-wine: #4b111b;
  --ad-ink: #2e2423;
  --ad-muted: #94817c;
  --ad-gold: #c6a16c;
  --ad-cream: #faf6f1;
  --ad-line: #eee2da;
  --ad-white: #fffcfa;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f7f1ec;
  color: var(--ad-ink);
  font-family: Vazirmatn, IRANSans, Tahoma, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid #c7a26b; outline-offset: 3px; }
.ad-shell { min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.ad-shell::before {
  content: ""; position: fixed; pointer-events: none; z-index: 0; inset: 0;
  background:
    radial-gradient(ellipse 54% 65% at -4% 4%, #edd7cd 0%, transparent 67%),
    radial-gradient(ellipse 40% 40% at 103% 100%, #efe1d8 0%, transparent 68%),
    #f9f5f1;
}
.ad-topbar, .ad-main, .ad-footer { position: relative; z-index: 1; }
.ad-topbar {
  width: min(1280px, calc(100% - 76px));
  margin: 0 auto; min-height: 105px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.ad-topbar__brand { display: flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 900; letter-spacing: -.05em; color: #811923; }
.ad-topbar__brand small { display: block; font-size: 9px; color: #9d8277; font-weight: 650; letter-spacing: .02em; margin-top: -1px; }
.ad-mark {
  display: grid; place-items: center; flex: 0 0 45px; width: 45px; height: 45px;
  border: 1px solid #eadbd1; background: #fffcf9; border-radius: 16px;
  font-size: 25px; color: #b49469; box-shadow: 0 8px 20px #552c2110;
}
.ad-topbar__right { display: flex; align-items: center; gap: 9px; color: #8c7771; font-size: 11px; }
.ad-status-dot { width: 7px; height: 7px; background: #7f9d78; border-radius: 50%; box-shadow: 0 0 0 4px #7f9d7818; }
.ad-topbar__split { height: 17px; background: #e6d6cc; width: 1px; margin: 0 14px; }
#ad-live-clock { color: #967b70; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.ad-main { flex: 1; width: min(1280px, calc(100% - 76px)); margin: 0 auto; display: grid; align-items: center; padding: 10px 0 32px; }
.ad-auth-shell {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  min-height: min(690px, calc(100vh - 188px)); border-radius: 31px;
  overflow: hidden; border: 1px solid #eaded5; background: #fffdfa;
  box-shadow: 0 38px 100px #49251a1c, 0 9px 25px #693a2d0a;
}
.ad-visual {
  background: radial-gradient(ellipse at 20% 11%, #ab4550 0%, transparent 44%),
              radial-gradient(ellipse at 88% 82%, #5c111a 0%, transparent 49%),
              linear-gradient(144deg, #831b29 2%, #60131f 50%, #410d17 100%);
  color: #fff5ed; position: relative; min-height: 570px; isolation: isolate;
  display: flex; flex-direction: column; padding: 37px 46px 32px;
}
.ad-visual::before {
  content: ""; position: absolute; inset: 14% -16% 0 24%; z-index: -1;
  border: 1px solid #e6b57728; border-radius: 52% 48% 20% 80%; transform: rotate(-18deg);
}
.ad-visual::after {
  content: ""; position: absolute; width: 470px; height: 470px; right: -170px; bottom: -250px;
  border: 1px solid #e6b57730; border-radius: 50%; pointer-events: none;
}
.ad-visual__light { position: absolute; pointer-events: none; border-radius: 50%; }
.ad-visual__light--top { height: 300px; width: 300px; background: radial-gradient(circle, #c78c6a24, transparent 67%); top: -150px; right: -50px; }
.ad-visual__light--bottom { height: 450px; width: 450px; background: radial-gradient(circle, #e2a66010, transparent 70%); bottom: -210px; left: -190px; }
.ad-visual__top { display: flex; align-items: center; justify-content: space-between; color: #e5c9b6; font: 600 10px/1.6 "Segoe UI", Tahoma, sans-serif; letter-spacing: .19em; direction: ltr; }
.ad-visual__star { font-size: 28px; color: #e2bc88; letter-spacing: normal; }
.ad-visual__emblem { height: 228px; position: relative; display: grid; place-items: center; }
.ad-visual__emblem span { font-size: 128px; font-weight: 750; line-height: 1; color: #ddba8929; transform: rotate(-12deg); }
.ad-visual__emblem i { width: 184px; height: 184px; border: 1px solid #f1c8992a; position: absolute; border-radius: 50%; transform: rotate(15deg); }
.ad-visual__emblem i::after { content: ""; position: absolute; inset: 18px; border: 1px solid #f1c89923; border-radius: 50%; }
.ad-visual__emblem b { font-size: 28px; font-weight: 400; color: #edd4ac; position: absolute; bottom: 26px; right: calc(50% - 11px); }
.ad-visual__body { margin-top: auto; position: relative; }
.ad-overline { font: 600 10px/2 "Segoe UI", Tahoma, sans-serif; letter-spacing: .18em; color: #d0a87c; }
.ad-visual h1 { font-size: clamp(34px, 3.3vw, 52px); line-height: 1.65; font-weight: 850; letter-spacing: -.065em; margin: 14px 0 13px; }
.ad-visual h1 em { color: #f0cf9f; font-style: normal; }
.ad-visual p { max-width: 455px; font-size: 13px; line-height: 2.5; color: #ebd8d1; margin: 0; }
.ad-visual__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ad-visual__chips span { padding: 9px 13px; border: 1px solid #e6bca33c; border-radius: 8px; color: #f5ddd2; background: #fff6ef0a; font-size: 11px; }
.ad-visual__foot { border-top: 1px solid #e9c5a839; padding-top: 25px; margin-top: 32px; display: flex; justify-content: space-between; align-items: center; direction: ltr; letter-spacing: .15em; font: 600 9px/1.4 "Segoe UI", Tahoma, sans-serif; color: #e0b79d; }
.ad-visual__foot b { font-weight: 400; color: #b38461; margin: 0 6px; }
.ad-visual__foot > span:last-child { font-size: 24px; color: #dab98b; }
.ad-login { display: grid; align-items: center; padding: 46px clamp(28px, 5vw, 80px); position: relative; }
.ad-login::before { content: ""; position: absolute; top: -100px; left: -112px; width: 270px; height: 270px; border: 1px solid #f2e5db; border-radius: 50%; pointer-events: none; }
.ad-login__inner { width: 100%; max-width: 445px; margin: 0 auto; position: relative; }
.ad-login__eyebrow { display: flex; align-items: center; gap: 10px; font: 650 10px/1.5 "Segoe UI", Tahoma, sans-serif; letter-spacing: .12em; direction: ltr; color: #bd9972; }
.ad-login__eyebrow-line { width: 25px; height: 1px; background: #bd9972; }
.ad-login__eyebrow span:last-child { color: #b7a299; }
.ad-login__symbol { font-size: 35px; color: #caa36b; margin: 30px 0 7px; }
.ad-login h2 { font-size: clamp(29px, 2.65vw, 38px); font-weight: 850; letter-spacing: -.05em; margin: 0 0 10px; line-height: 1.6; }
.ad-login__intro { color: #8d8078; font-size: 12.5px; line-height: 2.3; max-width: 400px; margin: 0 0 31px; }
.ad-login__intro strong { color: #811923; }
.ad-auth-form { display: grid; gap: 20px; }
.ad-field label { display: block; font-weight: 740; font-size: 12px; color: #52403b; margin-bottom: 9px; }
.ad-field__control { position: relative; }
.ad-field__control > svg { position: absolute; width: 21px; height: 21px; right: 18px; top: 50%; transform: translateY(-50%); color: #aa8a7b; pointer-events: none; }
.ad-field input { display: block; width: 100%; height: 60px; border: 1px solid #e9ddd6; background: #fcfaf8; color: #3a2d2a; border-radius: 13px; padding: 0 52px 0 45px; text-align: right; transition: .2s border-color, .2s box-shadow, .2s background; font: 500 13px/1.6 "Segoe UI", Tahoma, sans-serif; }
.ad-field input[dir=ltr] { text-align: left; }
.ad-field input:focus { outline: none; border-color: #bf9985; box-shadow: 0 0 0 4px #a5533510; background: white; }
.ad-field input::placeholder { color: #c0aca2; }
.ad-password-toggle { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; width: 37px; height: 37px; color: #a38b84; border-radius: 9px; display: grid; place-items: center; }
.ad-password-toggle:hover { background: #f0e7e1; color: #811923; }
.ad-password-toggle svg { width: 19px; height: 19px; }
.ad-caps { color: #8a1b28; font-size: 11px; margin: 7px 0 0; }
.ad-form-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 10px; color: #9b8c84; line-height: 1.8; margin-top: -2px; }
.ad-form-meta > span:first-child { color: #816f67; }
.ad-form-meta > span:first-child span { color: #bb976b; margin-left: 4px; }
.ad-submit { border: 0; background: linear-gradient(100deg, #991f2f, #761721); color: #fff8f3; border-radius: 13px; min-height: 62px; display: flex; justify-content: space-between; align-items: center; padding: 11px 12px 11px 20px; box-shadow: 0 13px 25px #81192321; font-size: 13px; font-weight: 780; transition: transform .2s, box-shadow .2s, filter .2s; }
.ad-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 28px #81192335; filter: brightness(1.035); }
.ad-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.ad-submit__arrow { background: #f0d6aa; color: #6b1820; border-radius: 10px; width: 42px; height: 40px; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.ad-login__help { display: flex; align-items: flex-start; gap: 10px; padding: 22px 0 0; border-top: 1px solid #f2eae4; margin-top: 29px; }
.ad-login__help > span { color: #c09b6f; font-size: 18px; }
.ad-login__help p { font-size: 11px; line-height: 2; margin: 0; color: #9a8981; }
.ad-login__signature { margin-top: 35px; font: 650 9px/1.7 "Segoe UI", Tahoma, sans-serif; letter-spacing: .11em; color: #b6a8a0; direction: ltr; text-align: center; }
.ad-login__signature span { color: #c8a372; margin: 0 9px; }
.ad-alert { display: flex; align-items: flex-start; gap: 9px; color: #8c2430; background: #fff3f1; border: 1px solid #f0d3d0; border-radius: 11px; line-height: 2; padding: 12px 14px; font-size: 11px; margin: 0 0 23px; }
.ad-alert span { border: 1px solid currentColor; border-radius: 50%; width: 17px; height: 17px; text-align: center; flex: 0 0 17px; line-height: 15px; font-weight: 800; margin-top: 2px; }
.ad-success-mark { width: 62px; height: 62px; border-radius: 18px; background: #edf5e8; color: #477044; display: grid; place-items: center; font-size: 32px; margin: 35px 0 24px; }
.ad-welcome-note { border: 1px solid #ece2d7; background: #f9f5ef; border-radius: 13px; display: flex; gap: 13px; padding: 20px; margin-bottom: 26px; }
.ad-welcome-note__icon { color: #b89262; font-size: 25px; }
.ad-welcome-note p { line-height: 2.25; font-size: 12px; margin: 0; color: #74645e; }
.ad-footer { width: min(1280px, calc(100% - 76px)); margin: 0 auto; display: flex; justify-content: space-between; padding: 15px 0 30px; gap: 15px; color: #a18b81; font-size: 10px; }
.ad-footer > span:last-child { direction: ltr; font: 650 9px/1.7 "Segoe UI", Tahoma, sans-serif; letter-spacing: .09em; }
.ad-footer b { color: #b89568; font-size: 14px; margin: 0 8px; font-weight: 400; }
@media (max-width: 980px) {
  .ad-topbar, .ad-main, .ad-footer { width: min(720px, calc(100% - 40px)); }
  .ad-auth-shell { grid-template-columns: minmax(0, 1fr); }
  .ad-login { grid-row: 1; padding: 48px clamp(22px, 6vw, 60px) 38px; }
  .ad-visual { grid-row: 2; min-height: 385px; padding: 28px 34px; }
  .ad-visual__emblem { display: none; }
  .ad-visual h1 { font-size: 32px; margin-top: 25px; }
  .ad-visual__body { margin-top: 18px; }
  .ad-visual__chips { margin-top: 20px; }
  .ad-visual__foot { margin-top: 22px; }
}
@media (max-width: 560px) {
  .ad-topbar, .ad-main, .ad-footer { width: calc(100% - 22px); }
  .ad-topbar { min-height: 77px; }
  .ad-topbar__brand { font-size: 18px; }
  .ad-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
  .ad-topbar__right > span:not(.ad-status-dot) { display: none; }
  .ad-auth-shell { border-radius: 21px; }
  .ad-login { padding: 32px 20px 30px; }
  .ad-login h2 { font-size: 29px; }
  .ad-login__intro { font-size: 12px; }
  .ad-login__symbol { margin-top: 23px; }
  .ad-field input { height: 55px; }
  .ad-form-meta { flex-direction: column; }
  .ad-visual { min-height: 338px; padding: 26px 23px; }
  .ad-visual h1 { font-size: 27px; }
  .ad-visual p { font-size: 11px; }
  .ad-visual__chips span { font-size: 10px; }
  .ad-footer > span:last-child { display: none; }
  .ad-footer { padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Admin dashboard destination, displayed only if the user posts directly while signed in. */
.ad-dashboard-link{margin-bottom:12px;justify-content:center;text-decoration:none;display:flex}
