/* ============================================================================
   register.css — تجربهٔ ورود/ثبت‌نام (طراحیِ سینماییِ ۲۰۲۶)
   این فایل فقط در صفحهٔ /register بارگذاری می‌شود، پس همهٔ قواعد آن
   به‌صورت محلی به همین صفحه محدود است (حتی override روی body و #preloader).
   ============================================================================ */

:root {
  --drs-navy:       #0C2C47;
  --drs-navy-deep:  #071a2e;
  --drs-green:      #2E5749;
  --drs-green-soft: #3C7361;
  --drs-gold:       #DA9B2B;
  --drs-gold-soft:  #EFC065;
  --drs-brick:      #BF512C;
  --drs-cream:      #F5ECEA;
  --drs-ink:        #15324b;
  --drs-muted:      #6b7c8c;
  --drs-line:       #e6ddd8;
  --drs-radius:     26px;
  --drs-radius-sm:  14px;
}

/* پس‌زمینهٔ کل صفحه را با تمِ سرمه‌ای یکدست می‌کنیم تا فاصلهٔ زیرِ نوار بالا
   و دور و برِ فوتر هم در همان فضای سینمایی محو شود. */
body {
  background: var(--drs-navy-deep) !important;
}

/* پیش‌لودرِ پیش‌فرضِ سراسری (اسپینر) را در این صفحه خاموش می‌کنیم؛
   به‌جایش splashِ موشنِ لوگو را داریم. */
#preloader { display: none !important; }

/* ===================== SPLASH: لوگوی موشنِ نیلوفر ===================== */
.drs-splash {
  position: fixed;
  inset: 0;
  z-index: 100050;                 /* بالاتر از نوار بالا و پیش‌لودر */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  /* پس‌زمینهٔ روشن و گلبهیِ نرم (هم‌رنگِ سایت)، نه سرمه‌ای */
  background:
    radial-gradient(120% 90% at 50% 38%, #ffffff 0%, #FAF3F1 46%, var(--drs-cream) 100%);
  /* محوشدنِ خودکار با CSS (حتی اگر JS اجرا نشود، splash گیر نمی‌کند) */
  animation: drsSplashOut .8s cubic-bezier(.4,0,.2,1) 2.5s forwards;
  will-change: opacity;
}
.drs-splash.is-hiding { animation: drsSplashOut .55s cubic-bezier(.4,0,.2,1) forwards; }

@keyframes drsSplashOut {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.drs-splash__halo {
  position: absolute;
  width: min(70vmin, 440px);
  height: min(70vmin, 440px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218,155,43,.16) 0%, rgba(218,155,43,0) 64%);
  filter: blur(6px);
  opacity: 0;
  animation: drsHaloIn 1.6s ease .5s forwards, drsHaloPulse 3s ease-in-out 1.8s infinite;
}
@keyframes drsHaloIn   { to { opacity: 1; } }
@keyframes drsHaloPulse{ 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.drs-splash__lotus {
  width: min(46vmin, 230px);
  height: auto;
  overflow: visible;
  transform-origin: 50% 90%;
  animation: drsLotusRise 1.2s cubic-bezier(.18,.9,.25,1) both;
}
@keyframes drsLotusRise {
  0%   { transform: translateY(26px) scale(.86); opacity: 0; }
  100% { transform: translateY(0)    scale(1);   opacity: 1; }
}

/* گلبرگ‌ها به‌صورتِ خط‌نقاشی (line-art) خودشان را «می‌کشند» */
.drs-splash__lotus .petal {
  fill: rgba(255,255,255,.02);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drsDraw 1s ease forwards;
}
.drs-splash__lotus .vein {
  fill: none;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drsDraw .7s ease forwards;
}
@keyframes drsDraw { to { stroke-dashoffset: 0; } }

.petal.p-gold  { stroke: var(--drs-gold);  }
.petal.p-green { stroke: var(--drs-green-soft); }
.petal.p-brick { stroke: var(--drs-brick); }
.vein.v-gold   { stroke: var(--drs-gold-soft); }

/* ترتیبِ کشیده‌شدن: مرکز → میانی → بیرونی → رگبرگ */
.d0 { animation-delay: .15s; }
.d1 { animation-delay: .42s; }
.d2 { animation-delay: .70s; }
.d3 { animation-delay: 1.02s; }

.drs-splash__lotus .lotus-core {
  fill: var(--drs-gold);
  opacity: 0;
  transform-origin: center;
  animation: drsCoreIn .7s cubic-bezier(.2,1.3,.3,1) 1.05s forwards;
}
@keyframes drsCoreIn { 0% { opacity: 0; transform: scale(.2);} 100% { opacity: 1; transform: scale(1);} }

.drs-splash__word {
  color: var(--drs-navy);
  font-weight: 800;
  font-size: clamp(1rem, 3.4vw, 1.5rem);
  letter-spacing: .2px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  animation: drsWordIn .9s ease 1.15s forwards;
}
.drs-splash__word small {
  display: block;
  margin-top: 6px;
  font-size: .62em;
  font-weight: 600;
  color: var(--drs-green);
  letter-spacing: .3px;
}
@keyframes drsWordIn { to { opacity: 1; transform: translateY(0); } }

/* ===================== صحنهٔ اصلیِ ورود ===================== */
.drs-auth {
  position: relative;
  min-height: 100vh;
  /* نوارِ بالای سایت در صفحهٔ ورود حذف شده (body.drs-appshell)، پس بدونِ جبرانِ ۸۰px */
  padding: 48px 18px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(115% 85% at 50% 0%, #0f3357 0%, var(--drs-navy) 48%, var(--drs-navy-deep) 100%);
}

/* هاله‌های نرمِ رنگی (aurora) که آرام جابه‌جا می‌شوند */
.drs-auth::before,
.drs-auth::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.drs-auth::before {
  width: 46vmax; height: 46vmax;
  top: -16vmax; inset-inline-end: -10vmax;
  background: radial-gradient(circle, rgba(218,155,43,.55), rgba(218,155,43,0) 70%);
  animation: drsDrift1 16s ease-in-out infinite alternate;
}
.drs-auth::after {
  width: 42vmax; height: 42vmax;
  bottom: -16vmax; inset-inline-start: -12vmax;
  background: radial-gradient(circle, rgba(46,87,73,.6), rgba(46,87,73,0) 70%);
  animation: drsDrift2 19s ease-in-out infinite alternate;
}
@keyframes drsDrift1 { from { transform: translate(0,0); } to { transform: translate(-5vmax, 5vmax); } }
@keyframes drsDrift2 { from { transform: translate(0,0); } to { transform: translate(5vmax, -4vmax); } }

/* لکهٔ سومِ آجری برای کامل‌شدنِ سه‌رنگِ برند */
.drs-auth__blob--brick {
  position: absolute;
  width: 30vmax; height: 30vmax;
  border-radius: 50%;
  top: 38%; inset-inline-start: 6%;
  filter: blur(80px);
  opacity: .4;
  background: radial-gradient(circle, rgba(191,81,44,.6), rgba(191,81,44,0) 70%);
  pointer-events: none;
  z-index: 0;
  animation: drsDrift1 22s ease-in-out infinite alternate;
}

/* ---------- کارتِ شیشه‌ای ---------- */
.drs-auth__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 940px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border-radius: var(--drs-radius);
  overflow: hidden;
  background: rgba(255,255,255,.96);
  box-shadow:
    0 30px 80px rgba(0,0,0,.45),
    0 2px 0 rgba(255,255,255,.5) inset;
  border: 1px solid rgba(255,255,255,.5);
  animation: drsCardIn .8s cubic-bezier(.2,.8,.2,1) .2s both;
}
@keyframes drsCardIn {
  from { opacity: 0; transform: translateY(26px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ---------- ستونِ برند ---------- */
.drs-auth__brand {
  position: relative;
  padding: 44px 38px;
  color: #fff;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(218,155,43,.35), rgba(218,155,43,0) 55%),
    linear-gradient(155deg, var(--drs-navy) 0%, #123a52 55%, var(--drs-green) 130%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.drs-auth__brand .drs-auth__brand-glow {
  position: absolute;
  inset: auto;
  top: -20%; inset-inline-end: -20%;
  width: 70%; height: 70%;
  opacity: .55;
  background: radial-gradient(circle, rgba(218,155,43,.5), rgba(218,155,43,0) 70%);
  animation: none;
}
.drs-auth__brand-inner { position: relative; z-index: 1; width: 100%; }

.drs-auth__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px; height: 92px;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  margin-bottom: 22px;
  animation: drsFloat 5s ease-in-out infinite;
}
.drs-auth__logo img { width: 62px; height: auto; display: block; }
@keyframes drsFloat { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-7px);} }

.drs-auth__brand-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 8px;
  color: #fff;
}
.drs-auth__brand-sub {
  font-size: .95rem;
  color: rgba(255,255,255,.82);
  margin: 0 0 26px;
}

.drs-auth__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.drs-auth__points li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: rgba(255,255,255,.92); }
.drs-auth__points i {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  color: var(--drs-gold-soft);
  font-size: 1.05rem;
  border: 1px solid rgba(255,255,255,.14);
}

/* ---------- ستونِ فرم ---------- */
.drs-auth__form {
  padding: 44px 40px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.drs-auth__head { margin-bottom: 22px; }
.drs-auth__title { font-size: 1.5rem; font-weight: 800; color: var(--drs-navy); margin: 0 0 6px; }
.drs-auth__lead  { font-size: .92rem; color: var(--drs-muted); margin: 0; line-height: 1.8; }

/* ---------- نشانگرِ مرحله ---------- */
.drs-steps {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0 0 26px;
  font-size: .82rem;
  color: var(--drs-muted);
}
.drs-steps li { display: flex; align-items: center; gap: 8px; font-weight: 600; transition: color .3s; }
.drs-steps__num {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--drs-cream);
  color: var(--drs-muted);
  font-weight: 800;
  border: 1.5px solid var(--drs-line);
  transition: all .3s;
}
.drs-steps li.is-active { color: var(--drs-navy); }
.drs-steps li.is-active .drs-steps__num {
  background: linear-gradient(135deg, var(--drs-gold), var(--drs-gold-soft));
  color: var(--drs-navy);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(218,155,43,.4);
}
.drs-steps li.is-done .drs-steps__num {
  background: var(--drs-green); color: #fff; border-color: transparent;
}
.drs-steps__line { flex: 1; height: 2px; background: var(--drs-line); border-radius: 2px; }

/* ---------- فیلدها ---------- */
.drs-field { margin-bottom: 18px; }
.drs-field > label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--drs-ink);
  margin-bottom: 8px;
}
.drs-input {
  position: relative;
  display: flex;
  align-items: center;
}
.drs-input__icon {
  position: absolute;
  inset-inline-start: 14px;
  color: var(--drs-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: color .25s;
}
.drs-input input,
.drs-input select {
  width: 100%;
  height: 54px;
  padding-inline-start: 44px;
  padding-inline-end: 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--drs-ink);
  background: #f7f9fb;
  border: 1.5px solid var(--drs-line);
  border-radius: var(--drs-radius-sm);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
}
.drs-input input::placeholder { color: #aab6c0; letter-spacing: 1px; }
.drs-input input:focus,
.drs-input select:focus {
  border-color: var(--drs-gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(218,155,43,.16);
}
.drs-input:focus-within .drs-input__icon { color: var(--drs-gold); }

.drs-input--otp input {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .55em;
  padding-inline: 44px;
  color: var(--drs-navy);
}

/* ---------- دکمه‌ها ---------- */
.drs-btn {
  position: relative;
  width: 100%;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: var(--drs-radius-sm);
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .25s ease, filter .2s;
}
.drs-btn:active { transform: translateY(1px) scale(.995); }

/* طلایی با متنِ سرمه‌ای (کنتراست AA) + درخششِ عبوری */
.drs-btn--gold {
  margin-top: 6px;
  color: var(--drs-navy);
  background: linear-gradient(135deg, var(--drs-gold) 0%, var(--drs-gold-soft) 100%);
  box-shadow: 0 12px 26px rgba(218,155,43,.42);
}
.drs-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(218,155,43,.5); filter: brightness(1.04); }
.drs-btn--gold::after {
  content: "";
  position: absolute;
  top: 0; inset-inline-start: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  transition: inset-inline-start .6s ease;
}
.drs-btn--gold:hover::after { inset-inline-start: 130%; }

.drs-btn--ghost {
  margin-top: 10px;
  color: var(--drs-navy);
  background: transparent;
  border: 1.5px solid var(--drs-line);
}
.drs-btn--ghost:hover { background: var(--drs-cream); border-color: var(--drs-gold); }

/* ---------- پیام‌ها / بارگذاری ---------- */
.drs-alert {
  border-radius: var(--drs-radius-sm);
  padding: 12px 14px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.drs-alert--success, .drs-alert--info {
  background: #e9f6f0; color: #1d6b4f; border-color: #bfe6d5;
}
.drs-alert--danger, .drs-alert--error {
  background: #fdecec; color: #b3261e; border-color: #f6c9c6;
}
.drs-alert--warning { background: #fff6e5; color: #8a5a00; border-color: #ffe2ad; }

.drs-message { margin-top: 6px; }
/* پیام‌هایی که با JS داخلِ #message تزریق می‌شوند هم هم‌سبک می‌شوند */
.drs-message .alert { border-radius: var(--drs-radius-sm); padding: 12px 14px; font-size: .9rem; font-weight: 600; }
.drs-message .alert-danger  { background: #fdecec; color: #b3261e; border: 1px solid #f6c9c6; }
.drs-message .alert-success { background: #e9f6f0; color: #1d6b4f; border: 1px solid #bfe6d5; }

.drs-loading {
  text-align: center;
  color: var(--drs-muted);
  font-size: .9rem;
  margin: 10px 0;
}
.drs-loading .fa { color: var(--drs-gold); }

.drs-passkey-hint {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: .78rem;
  line-height: 1.7;
  color: var(--drs-muted);
}

.drs-auth__secure {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--drs-line);
  text-align: center;
  font-size: .82rem;
  color: var(--drs-muted);
}
.drs-auth__secure .fa { color: var(--drs-green); margin-inline-end: 4px; }

/* لینکِ بازکردنِ وب‌سایتِ کلینیک از داخلِ وب‌اپ */
.drs-auth__website {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  font-size: .84rem;
  font-weight: 700;
  color: var(--drs-green);
  text-decoration: none;
  transition: color .2s;
}
.drs-auth__website .fa { font-size: .9rem; }
.drs-auth__website:hover { color: var(--drs-gold); text-decoration: underline; }

/* ===================== واکنش‌گرا ===================== */
@media (max-width: 820px) {
  .drs-auth { padding: 36px 14px 36px; }
  .drs-auth__card { grid-template-columns: 1fr; max-width: 480px; }
  .drs-auth__brand {
    padding: 30px 28px;
    text-align: center;
    flex-direction: column;
  }
  .drs-auth__logo { margin-inline: auto; width: 78px; height: 78px; }
  .drs-auth__logo img { width: 52px; }
  .drs-auth__brand-title { font-size: 1.3rem; }
  .drs-auth__points { display: none; }      /* روی موبایل، نوارِ برند را جمع‌وجور نگه می‌داریم */
  .drs-auth__form { padding: 32px 24px; }
}

@media (max-width: 380px) {
  .drs-auth__form { padding: 26px 18px; }
  .drs-input--otp input { letter-spacing: .4em; font-size: 1.35rem; }
}

/* ===================== احترام به کاهشِ حرکت ===================== */
@media (prefers-reduced-motion: reduce) {
  .drs-splash { animation: drsSplashOut .3s ease .3s forwards; }
  .drs-splash__lotus { animation: none; opacity: 1; transform: none; }
  .drs-splash__lotus .petal,
  .drs-splash__lotus .vein { animation: none; stroke-dashoffset: 0; }
  .drs-splash__lotus .lotus-core { animation: none; opacity: 1; }
  .drs-splash__halo { animation: drsHaloIn .3s ease forwards; }
  .drs-splash__word { animation: drsWordIn .3s ease forwards; }
  .drs-auth::before, .drs-auth::after,
  .drs-auth__blob--brick, .drs-auth__brand-glow, .drs-auth__logo { animation: none; }
  .drs-auth__card { animation: none; opacity: 1; transform: none; }
}
