/* ═══════════════════════════════════════════════════════════════
   صفحات ورود / ثبت‌نام — پورتال کاربران (نسخه ۸)
   چیدمان دوتکه: پنل برند شیشه‌ای + کارت فرم | پس‌زمینه اورورا سرمه‌ای
   ═══════════════════════════════════════════════════════════════ */

.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 500px at 85% -10%, #16295c 0%, transparent 60%),
    radial-gradient(900px 500px at 0% 110%, #0d1b3e 0%, transparent 55%),
    var(--navy-950, #060d1f);
  color: var(--on-navy, #f4f6fc);
  font-family: 'Vazirmatn', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  position: relative;
  overflow-x: hidden;
}

/* اورورا متحرک */
.auth-aurora span {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  pointer-events: none;
  animation: authFloat 14s ease-in-out infinite alternate;
}
.auth-aurora span:nth-child(1) { width: 420px; height: 420px; background: #24407a; top: -120px; right: -80px; }
.auth-aurora span:nth-child(2) { width: 340px; height: 340px; background: #c9a24b33; bottom: -100px; left: -60px; animation-delay: -5s; }
.auth-aurora span:nth-child(3) { width: 260px; height: 260px; background: #1a3160aa; top: 40%; left: 30%; animation-delay: -9s; }
@keyframes authFloat {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(30px,-24px,0) scale(1.12); }
}

/* ── پوسته اصلی ── */
.auth-shell {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  display: grid;
  gap: 0;
}
.auth-shell--wide { width: min(640px, 100%); }

@media (min-width: 940px) {
  .auth-shell, .auth-shell--wide { width: min(1000px, 100%); grid-template-columns: 1.05fr 1fr; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.65); }
  .auth-shell--wide { grid-template-columns: 1fr 1.35fr; }
}

/* ── پنل برند ── */
.auth-brand {
  display: none;
  background:
    linear-gradient(160deg, rgba(36,64,122,.5) 0%, rgba(13,27,62,.65) 55%, rgba(6,13,31,.7) 100%),
    radial-gradient(600px 300px at 80% 10%, #c9a24b22 0%, transparent 55%);
  border: 1px solid rgba(255,255,255,.08);
  border-right: 0;
  border-radius: 28px 0 0 28px;
  padding: 44px 40px 32px;
  backdrop-filter: blur(18px);
  flex-direction: column;
  gap: 26px;
}
@media (min-width: 940px) { .auth-brand { display: flex; } }

.auth-brand__logo { display: inline-flex; }
.auth-brand__img { height: 54px; width: auto; }
.auth-brand__body h2 { font-size: 25px; font-weight: 800; line-height: 1.55; margin: 8px 0 10px; }
.auth-brand__body h2::after { content: ''; display: block; width: 74px; height: 3px; border-radius: 3px; margin-top: 14px; background: var(--gold-grad, #c9a24b); }
.auth-brand__body p { color: #c7d2ea; font-size: 14.5px; line-height: 2; margin: 0 0 18px; }
.auth-brand__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-brand__list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #dde5f5; }
.auth-brand__list svg { color: var(--gold-400, #dbb869); flex: none; }
.auth-brand__foot { margin-top: auto; font-size: 12.5px; color: #9daac8; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }

/* ── کارت فرم ── */
.auth-card {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 26px;
  padding: 34px 30px 30px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
}
@media (min-width: 940px) { .auth-card { border-radius: 0 28px 28px 0; border-right: 0; padding: 44px 42px 36px; } }

.auth-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.auth-card__back { display: inline-flex; align-items: center; gap: 6px; color: #9daac8; font-size: 13px; text-decoration: none; transition: color .2s; }
.auth-card__back:hover { color: #fff; }
.auth-card__logo { height: 40px; width: auto; display: inline-flex; }
@media (min-width: 940px) { .auth-card__logo--sm { display: none; } }

.auth-head h1 { font-size: 23px; font-weight: 800; margin: 0 0 8px; }
.auth-head p { color: #b7c3de; font-size: 13.8px; line-height: 1.9; margin: 0 0 22px; }
.auth-otp-badge {
  width: 64px; height: 64px; border-radius: 20px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #dbb869, #b08a35);
  color: #060d1f; margin-bottom: 14px;
  box-shadow: 0 14px 34px -12px #c9a24b66;
}

/* ── فرم‌ها (نسخه تیره) ── */
.auth-form { display: grid; gap: 15px; }
.auth-form .field { margin: 0; }
.auth-form .field label { color: #c7d2ea; }
.auth-form .field input, .auth-form .field select, .auth-form .field textarea {
  width: 100%;
  background: rgba(6,13,31,.55);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  color: #f4f6fc;
  padding: 12px 14px;
  font: inherit;
  font-size: 14.5px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-form .field input:focus, .auth-form .field select:focus {
  outline: none;
  border-color: var(--gold-400, #dbb869);
  box-shadow: 0 0 0 4px rgba(201,162,75,.16);
  background: rgba(6,13,31,.75);
}
.auth-form .field input::placeholder { color: #5c6a8e; }
.auth-form .field select option { background: #0a1630; color: #f4f6fc; }
.auth-form .field__error { color: #ff9d9d; font-size: 12px; margin-top: 6px; display: block; }

.auth-form__grid { display: grid; gap: 15px; }
@media (min-width: 560px) { .auth-form__grid { grid-template-columns: 1fr 1fr; } }

.req { color: var(--gold-400, #dbb869); }

/* ورودی کد OTP */
.otp-input {
  text-align: center !important;
  font-size: 24px !important;
  font-weight: 800;
  letter-spacing: 10px;
  padding: 13px 14px !important;
}

/* ── کپچا ── */
.captcha-box {
  display: flex; align-items: center; gap: 12px;
  background: rgba(6,13,31,.45);
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 12px;
}
.captcha-box--invalid { border-color: #ff9d9d66; }
.captcha-box__img { flex: none; width: 132px; }
.captcha-box__img svg { display: block; border-radius: 10px; }
.captcha-box__in { flex: 1; }
.captcha-box__in label { color: #c7d2ea; font-size: 12.5px; display: block; margin-bottom: 6px; }
.captcha-box__in input {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  color: #fff; padding: 9px 12px; font: inherit; font-size: 15px;
}
.captcha-box__in input:focus { outline: none; border-color: var(--gold-400, #dbb869); }
.captcha-box__refresh {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: #c7d2ea; cursor: pointer; transition: all .2s;
}
.captcha-box__refresh:hover { background: rgba(201,162,75,.2); color: #fff; }

/* ── هشدارها و پیام‌ها ── */
.auth-alert {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255, 90, 90, .1);
  border: 1px solid rgba(255, 90, 90, .3);
  color: #ffc9c9; border-radius: 12px;
  padding: 11px 14px; font-size: 13px; line-height: 1.8;
}
.auth-alert--ok { background: rgba(46, 204, 133, .1); border-color: rgba(46, 204, 133, .3); color: #b8f0d5; }
.auth-alert svg { flex: none; }

/* ── انتخاب نقش ── */
.role-grid { display: grid; gap: 13px; margin: 4px 0 18px; }
.role-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  grid-template-areas: "ic body go";
  align-items: center; column-gap: 15px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 17px;
  padding: 17px 18px;
  color: inherit; text-decoration: none;
  transition: transform .2s, border-color .2s, background .2s;
}
.role-card:hover { transform: translateY(-3px); border-color: var(--gold-400, #dbb869); background: rgba(201,162,75,.08); }
.role-card__ic {
  grid-area: ic;
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #24407a, #152a52);
  color: var(--gold-300, #e8cd8a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.role-card b { grid-area: body; font-size: 16px; font-weight: 800; }
.role-card small { grid-area: body; grid-row: 2; color: #9daac8; font-size: 12.3px; line-height: 1.7; margin-top: 3px; }
.role-card b, .role-card small { display: block; }
.role-card b { margin-bottom: 2px; }
.role-card__go { grid-area: go; color: #5c6a8e; transition: color .2s, transform .2s; }
.role-card:hover .role-card__go { color: var(--gold-400, #dbb869); transform: translateX(-4px); }

@media (min-width: 560px) {
  .role-grid { grid-template-columns: 1fr; }
}

/* ── لینک پایین ── */
.auth-alt { text-align: center; color: #9daac8; font-size: 13px; margin-top: 4px; }
.auth-alt a { color: var(--gold-300, #e8cd8a); text-decoration: none; font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }

.auth-empty { text-align: center; padding: 30px 0; }
.auth-empty svg { color: var(--gold-400, #dbb869); margin-bottom: 10px; }
.auth-empty h2 { margin: 0 0 8px; font-size: 19px; }
.auth-empty p { color: #b7c3de; font-size: 13.5px; margin: 0 0 18px; }

/* دکمه تمام‌عرض */
.btn--block { width: 100%; justify-content: center; padding: 13px 18px; font-size: 15px; }

/* توست روی پوسته تیره */
.auth-card .toast { margin-bottom: 16px; }
