/**
 * صفحات تسجيل الدخول وإنشاء الحساب
 * ألوان: حب، ثقة، هدوء، رومانسية
 */
.auth-page {
  --auth-bg: linear-gradient(160deg, #fdf2f8 0%, #fce7f3 20%, #fbcfe8 40%, #e9d5ff 60%, #ede9fe 80%, #f5f3ff 100%);
  --auth-card-bg: rgba(255, 255, 255, 0.92);
  --auth-card-shadow: 0 25px 50px -12px rgba(190, 118, 153, 0.15), 0 0 0 1px rgba(251, 207, 232, 0.3);
  --auth-primary: #be185d;
  --auth-primary-hover: #9d174d;
  --auth-primary-soft: rgba(190, 24, 93, 0.12);
  --auth-text: #4c1d95;
  --auth-text-muted: #6b21a8;
  --auth-link: #831843;
  --auth-link-hover: #9d174d;
  --auth-border: rgba(190, 24, 93, 0.2);
  --auth-input-bg: rgba(255, 255, 255, 0.9);
  --auth-input-focus: rgba(190, 24, 93, 0.35);
  --auth-header-bg: rgba(253, 242, 248, 0.85);
  --auth-ghost-bg: rgba(253, 242, 248, 0.8);
  --auth-ghost-hover: rgba(251, 207, 232, 0.6);
  --auth-error: #b91c1c;
  --auth-radius: 20px;
  --auth-radius-sm: 14px;
  min-height: 100vh;
  background: var(--auth-bg);
  background-attachment: fixed;
  color: var(--auth-text);
}

.auth-page .header {
  background: var(--auth-header-bg);
  border-bottom: 1px solid var(--auth-border);
  backdrop-filter: blur(12px);
}

.auth-page .logo {
  color: var(--auth-text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-page .btn-ghost {
  background: var(--auth-ghost-bg);
  color: var(--auth-text-muted);
  border: 1px solid var(--auth-border);
}

.auth-page .btn-ghost:hover {
  background: var(--auth-ghost-hover);
  color: var(--auth-link);
}

.auth-page .auth-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.auth-page .auth-card {
  background: var(--auth-card-bg);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-card-shadow);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(16px);
}

.auth-page .auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--auth-text);
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
}

.auth-page .auth-subtitle {
  font-size: 0.95rem;
  color: var(--auth-text-muted);
  margin: 0 0 1.5rem 0;
  font-weight: 500;
}

.auth-page .form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.auth-page .form-stack label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--auth-text-muted);
}

.auth-page .form-stack input[type="text"],
.auth-page .form-stack input[type="email"],
.auth-page .form-stack input[type="password"],
.auth-page .form-stack input[type="tel"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--auth-radius-sm);
  border: 1.5px solid var(--auth-border);
  background: var(--auth-input-bg);
  color: var(--auth-text);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-page .form-stack input::placeholder {
  color: var(--auth-text-muted);
  opacity: 0.7;
}

.auth-page .form-stack input:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px var(--auth-primary-soft);
}

.auth-page .form-stack input[type="file"] {
  padding: 0.6rem;
  font-size: 0.9rem;
  border-radius: var(--auth-radius-sm);
  border: 1.5px dashed var(--auth-border);
  background: var(--auth-input-bg);
  color: var(--auth-text-muted);
}

.auth-page .btn-primary {
  background: linear-gradient(135deg, var(--auth-primary) 0%, #a21caf 100%);
  color: #fff;
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--auth-radius-sm);
  margin-top: 0.5rem;
  box-shadow: 0 4px 14px rgba(190, 24, 93, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}

.auth-page .btn-primary:hover {
  background: linear-gradient(135deg, var(--auth-primary-hover) 0%, #86198f 100%);
  box-shadow: 0 6px 20px rgba(190, 24, 93, 0.4);
  transform: translateY(-1px);
}

.auth-page .auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.auth-page .auth-footer a {
  color: var(--auth-link);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-page .auth-footer a:hover {
  color: var(--auth-link-hover);
}

.auth-page .error-msg {
  background: rgba(185, 28, 28, 0.1);
  color: var(--auth-error);
  padding: 0.75rem 1rem;
  border-radius: var(--auth-radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(185, 28, 28, 0.2);
}

.auth-page .auth-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--auth-border), transparent);
  margin: 1rem 0;
}

/* زخرفة خفيفة في الخلفية */
.auth-page::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -30%;
  width: 80vmax;
  height: 80vmax;
  background: radial-gradient(circle, rgba(251, 207, 232, 0.4) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.auth-page::after {
  content: '';
  position: fixed;
  bottom: -40%;
  left: -20%;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(circle, rgba(233, 213, 255, 0.35) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.auth-page .header,
.auth-page .auth-wrap {
  position: relative;
  z-index: 1;
}

/* ========== صفحة إعداد البث (نفس ثيم الحب والثقة والهدوء) ========== */
.go-live-page {
  --auth-bg: linear-gradient(160deg, #fdf2f8 0%, #fce7f3 20%, #fbcfe8 40%, #e9d5ff 60%, #ede9fe 80%, #f5f3ff 100%);
  --auth-card-bg: rgba(255, 255, 255, 0.92);
  --auth-card-shadow: 0 25px 50px -12px rgba(190, 118, 153, 0.15), 0 0 0 1px rgba(251, 207, 232, 0.3);
  --auth-primary: #be185d;
  --auth-primary-hover: #9d174d;
  --auth-primary-soft: rgba(190, 24, 93, 0.12);
  --auth-text: #4c1d95;
  --auth-text-muted: #6b21a8;
  --auth-border: rgba(190, 24, 93, 0.2);
  --auth-input-bg: rgba(255, 255, 255, 0.9);
  --auth-input-focus: rgba(190, 24, 93, 0.35);
  --auth-header-bg: rgba(253, 242, 248, 0.85);
  --auth-ghost-bg: rgba(253, 242, 248, 0.8);
  --auth-ghost-hover: rgba(251, 207, 232, 0.6);
  --auth-radius: 20px;
  --auth-radius-sm: 14px;
  min-height: 100vh;
  background: var(--auth-bg);
  background-attachment: fixed;
  color: var(--auth-text);
}

.go-live-page .header {
  background: var(--auth-header-bg);
  border-bottom: 1px solid var(--auth-border);
  backdrop-filter: blur(12px);
}

.go-live-page .logo {
  color: var(--auth-text);
  font-weight: 800;
}

.go-live-page .btn-ghost {
  background: var(--auth-ghost-bg);
  color: var(--auth-text-muted);
  border: 1px solid var(--auth-border);
}

.go-live-page .btn-ghost:hover {
  background: var(--auth-ghost-hover);
  color: #831843;
}

.go-live-page .status-msg {
  color: var(--auth-text-muted);
  font-size: 0.9rem;
}

.go-live-setup-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  position: relative;
  z-index: 1;
}

.go-live-page .go-live-card {
  background: var(--auth-card-bg);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-card-shadow);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(16px);
}

.go-live-page .go-live-card .auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--auth-text);
  margin: 0 0 0.25rem 0;
}

.go-live-page .go-live-card .auth-subtitle {
  font-size: 0.95rem;
  color: var(--auth-text-muted);
  margin: 0 0 1.5rem 0;
}

.go-live-page .go-live-card .form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.go-live-page .go-live-card .form-stack label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--auth-text-muted);
}

.go-live-page .go-live-card .form-stack input[type="text"],
.go-live-page .go-live-card .form-stack input[type="file"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--auth-radius-sm);
  border: 1.5px solid var(--auth-border);
  background: var(--auth-input-bg);
  color: var(--auth-text);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.go-live-page .go-live-card .form-stack input:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px var(--auth-primary-soft);
}

.go-live-page .go-live-card .form-stack input[type="file"] {
  padding: 0.6rem;
  border: 1.5px dashed var(--auth-border);
}

.go-live-page .go-live-card .btn-primary {
  background: linear-gradient(135deg, var(--auth-primary) 0%, #a21caf 100%);
  color: #fff;
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--auth-radius-sm);
  margin-top: 0.25rem;
  box-shadow: 0 4px 14px rgba(190, 24, 93, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}

.go-live-page .go-live-card .btn-primary:hover {
  background: linear-gradient(135deg, var(--auth-primary-hover) 0%, #86198f 100%);
  box-shadow: 0 6px 20px rgba(190, 24, 93, 0.4);
  transform: translateY(-1px);
}

.go-live-page::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -30%;
  width: 80vmax;
  height: 80vmax;
  background: radial-gradient(circle, rgba(251, 207, 232, 0.4) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.go-live-page::after {
  content: '';
  position: fixed;
  bottom: -40%;
  left: -20%;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(circle, rgba(233, 213, 255, 0.35) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* عند البث الفعلي: العودة للخلفية الداكنة */
.go-live-page.broadcast-active {
  background: #0f0f12;
}

.go-live-page.broadcast-active::before,
.go-live-page.broadcast-active::after {
  display: none;
}

.go-live-page.broadcast-active .header {
  background: #1a1a1f;
  border-bottom-color: #2d2d35;
}

.go-live-page.broadcast-active .logo,
.go-live-page.broadcast-active .status-msg {
  color: #f1f5f9;
}

.go-live-page.broadcast-active .btn-ghost {
  background: #222228;
  color: #f1f5f9;
  border-color: #2d2d35;
}

.go-live-page.broadcast-active .btn-ghost:hover {
  background: #2d2d35;
  color: #f1f5f9;
}
