/* --- پایه --- */
html, body { height: 100%; }
body.creator-auth {
  margin: 0;
  background: #f9fafb; /* سفید خیلی نرم */
  color: #111827;       /* مشکی مایل به خاکستری */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
}

/* ظرف کلی */
.auth-wrap {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: #fff;
}

/* سمت چپ: فول‌اسکرین هیرو */
.auth-left {
  position: relative;
  flex: 1 1 auto;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
}

/* ویدیو داخل سمت چپ */
.auth-left .hero {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
  text-align: center;
}

.auth-left .hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.auth-left .hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* گرادیان روشن برای خوانایی متن روی ویدیو */
.auth-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.7), rgba(255,255,255,0.9));
  z-index: 1;
}

/* متن‌های روی ویدیو */
.auth-left .hero > *:not(.hero-video) {
  position: relative;
  z-index: 2;
  color: #111;
}

.auth-left .hero h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
}

.auth-left .hero p {
  margin: 0 0 18px;
  color: #374151;
  font-size: clamp(14px, 1.6vw, 16px);
}

.auth-left .features {
  margin: 14px 0 0;
  padding: 10px 14px;
  list-style: none;
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #374151;
  font-size: 13px;
  background: rgba(255,255,255,.6);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* سمت راست: فرم ورود */
.auth-right {
  flex: 0 0 460px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  background: #fff;
  border-left: 1px solid #e5e7eb;
}

/* کارت فرم */
.panel {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 26px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.05);
}

.panel h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.panel .muted {
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 14px;
}

/* فرم‌ها */
.stack { display: grid; gap: 10px; }
.stack label { font-size: 13px; color: #374151; }
.stack input, .rw-select, .stack textarea {
  width: 100%;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  color: #111827;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .2s ease;
}
.stack input:focus { border-color: #111; }

/* دکمه‌ها */
.rw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: transform .05s ease, background .2s ease, opacity .2s ease;
}
.rw-btn.primary {
  background: #111;
  border-color: #111;
  color: #fff;
  font-weight: 700;
}
.rw-btn.primary:hover { background: #000; }

.rw-btn.ghost {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #111;
}
.rw-btn.ghost:hover {
  background: #f3f4f6;
}

.rw-btn.is-disabled,
.rw-btn:disabled {
  opacity: .5;
  pointer-events: none;
  cursor: not-allowed;
}

/* وضعیت‌ها */
.rw-status { margin-top: 10px; font-size: 14px; }
.rw-status.info    { color: #2563eb; }
.rw-status.success { color: #16a34a; }
.rw-status.error   { color: #dc2626; }

/* موبایل */
@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-right {
    flex: 1 1 auto;
    width: 100%;
    min-height: 100vh;
    border-left: 0;
    padding: 20px 14px;
  }
  .panel {
    max-width: 480px;
    margin: 0 auto;
    border-radius: 14px;
  }
}
/* force-hide any [hidden] inside the auth layout */
.auth-right [hidden] { display: none !important; }