/* Page-specific styles extracted from signup.html for browser caching. */
body.page-signup {
  --signup-ink: #F7F2FF;
  --signup-muted: #6f6987;
  --signup-brand: #4d2997;
  --signup-brand-2: #7a4fd1;
  --signup-cyan: #49bfd2;
  --signup-gold: #d2a14c;
  --signup-success: #1b8a5a;
  --signup-reveal-distance: 28px;
}

body.page-signup .page-content {
  padding: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 12%, rgba(73, 191, 210, 0.14), transparent 24%),
    radial-gradient(circle at 90% 4%, rgba(77, 41, 151, 0.16), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(210, 161, 76, 0.08), transparent 28%),
    linear-gradient(180deg, #f8f4ff 0%, #fcfbfe 40%, #f8fbff 100%);
}

html body.mobile-web-parity.page-signup #top-navbar,
html body.mobile-web-parity.page-signup #top-navbar.nw-global-topbar,
html body.mobile-web-parity.page-signup #site-footer,
html body.mobile-web-parity.page-signup #bottom-nav,
html body.mobile-web-parity.page-signup .sidebar-overlay {
  display: none !important;
}

html body.mobile-web-parity.page-signup main,
html body.mobile-web-parity.page-signup .page-content {
  padding-bottom: 0 !important;
}

body.page-signup .signup-premium-page {
  min-height: 100svh;
  width: 100%;
  padding: clamp(14px, 3.8vw, 28px) clamp(12px, 3.6vw, 20px) clamp(28px, 7vw, 56px);
  align-items: center;
  justify-content: flex-start;
}

body.page-signup .signup-shell {
  position: relative;
  width: min(100%, 980px);
  max-width: none;
  padding: 0;
  display: grid;
  gap: 20px;
}

body.page-signup .signup-shell > * {
  min-width: 0;
}

body.page-signup .signup-shell::before,
body.page-signup .signup-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

body.page-signup .signup-shell::before {
  inset: -20px auto auto -70px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 50% 50%, rgba(73, 191, 210, 0.16), rgba(73, 191, 210, 0));
  animation: signupFloatOne 16s ease-in-out infinite;
}

body.page-signup .signup-shell::after {
  inset: auto -54px 110px auto;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle at 50% 50%, rgba(77, 41, 151, 0.12), rgba(77, 41, 151, 0));
  animation: signupFloatTwo 19s ease-in-out infinite;
}

body.page-signup .signup-showcase,
body.page-signup .signup-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(77, 41, 151, 0.12);
  box-shadow: 0 28px 60px rgba(28, 20, 55, 0.1);
}

body.page-signup .signup-showcase {
  padding: 24px 22px;
  background:
    linear-gradient(150deg, rgba(45, 24, 90, 0.97), rgba(78, 47, 151, 0.94)),
    radial-gradient(circle at top right, rgba(73, 191, 210, 0.22), transparent 38%);
  color: #fff;
}

body.page-signup .signup-showcase::before,
body.page-signup .signup-card::after {
  content: "";
  position: absolute;
  inset: -30% auto auto -18%;
  width: 170px;
  height: 240px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  opacity: 0;
  transform: rotate(18deg);
  pointer-events: none;
}

body.page-signup.signup-animate-in .signup-showcase::before,
body.page-signup.signup-animate-in .signup-card::after {
  animation: signupSweep 1.15s ease-out forwards;
}

body.page-signup .signup-showcase::after {
  content: "";
  position: absolute;
  inset: auto auto -56px -34px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(210, 161, 76, 0.28), rgba(210, 161, 76, 0));
}

body.page-signup .signup-showcase-badge,
body.page-signup .signup-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

body.page-signup .signup-showcase-badge {
  color: #fff5d8;
  background: rgba(255, 255, 255, 0.12);
}

body.page-signup .signup-card-badge {
  color: var(--signup-brand);
  background: rgba(77, 41, 151, 0.08);
}

body.page-signup .signup-showcase-title {
  margin: 14px 0 8px;
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}

body.page-signup .signup-showcase-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 700;
  max-width: 46ch;
}

body.page-signup .signup-showcase-points {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

body.page-signup .signup-showcase-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 700;
}

body.page-signup .signup-showcase-points li {
  color: rgba(255, 255, 255, 0.92);
}

body.page-signup .signup-showcase-points li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 18px;
  border-radius: 999px;
}

body.page-signup .signup-showcase-points li::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 22%, transparent 24%),
    linear-gradient(135deg, rgba(73, 191, 210, 0.95), rgba(210, 161, 76, 0.95));
}

body.page-signup .signup-showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

body.page-signup .signup-showcase-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8f4ff;
  font-size: 12px;
  font-weight: 800;
}

body.page-signup .signup-card {
  width: 100%;
  max-width: 100%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(247, 242, 255, 0.95)),
    radial-gradient(circle at top right, rgba(73, 191, 210, 0.1), transparent 40%);
  padding: 24px 22px;
}

body.page-signup .signup-card::before {
  content: "";
  position: absolute;
  inset: auto -50px -50px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(77, 41, 151, 0.1), rgba(77, 41, 151, 0));
}

body.page-signup .signup-card::after {
  inset: auto -10% -34% auto;
}

body.page-signup .signup-card-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

body.page-signup .auth-header {
  position: relative;
  overflow: hidden;
  text-align: right;
  margin-bottom: 0;
  display: grid;
  gap: 10px;
  padding: 22px 20px;
  border-radius: 26px;
  border: 1px solid rgba(92, 58, 171, 0.14);
  background:
    radial-gradient(circle at top left, rgba(73, 191, 210, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(54, 28, 109, 0.98), rgba(91, 58, 171, 0.94));
  box-shadow: 0 24px 46px rgba(43, 26, 86, 0.18);
}

body.page-signup .auth-header::before,
body.page-signup .auth-header::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

body.page-signup .auth-header::before {
  inset: auto auto -54px -24px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at 50% 50%, rgba(210, 161, 76, 0.24), rgba(210, 161, 76, 0));
}

body.page-signup .auth-header::after {
  inset: -36px -22px auto auto;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

body.page-signup .auth-logo {
  width: 58px;
  height: 58px;
  margin: 0;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: 0 14px 30px rgba(24, 12, 52, 0.20);
}

body.page-signup .auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 7px;
  background: #fff;
}

body.page-signup .auth-logo svg {
  width: 30px;
  height: 30px;
  display: block;
}

body.page-signup .auth-title {
  margin: 0;
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.page-signup .auth-desc {
  margin: 0;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 700;
  max-width: 52ch;
}

body.page-signup .signup-card-badge {
  position: relative;
  z-index: 1;
  justify-self: start;
  color: #fff5d8;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-signup .signup-soft-panel {
  border-radius: 24px;
  border: 1px solid rgba(77, 41, 151, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 255, 0.84));
  transition: transform 0.38s ease, border-color 0.28s ease, box-shadow 0.32s ease, background 0.32s ease;
}

body.page-signup .signup-soft-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
}

body.page-signup .signup-soft-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--signup-brand), var(--signup-brand-2));
  box-shadow: 0 12px 24px rgba(77, 41, 151, 0.2);
  transition: transform 0.36s ease, box-shadow 0.36s ease;
}

body.page-signup .signup-soft-copy strong {
  color: var(--signup-ink);
  font-size: 15px;
  font-weight: 900;
}

body.page-signup .signup-soft-copy strong {
  display: block;
}

body.page-signup .signup-soft-copy p {
  margin: 4px 0 0;
  color: #5f5977;
  font-size: 13px;
  line-height: 1.75;
  font-weight: 700;
}

body.page-signup .signup-form-grid {
  display: grid;
  gap: 14px;
  width: 100%;
}

body.page-signup .signup-progress {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(77, 41, 151, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 255, 0.84));
}

body.page-signup .signup-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--signup-ink);
  font-size: 13px;
  font-weight: 900;
}

body.page-signup .signup-progress-track {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(77, 41, 151, 0.12);
}

body.page-signup .signup-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--signup-brand), var(--signup-cyan));
  transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-theme="dark"] body.page-signup .signup-progress {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(33, 29, 48, 0.94), rgba(25, 22, 37, 0.9));
}

[data-theme="dark"] body.page-signup .signup-progress-head {
  color: #f4efff;
}

[data-theme="dark"] body.page-signup .signup-progress-track {
  background: rgba(255, 255, 255, 0.12);
}

body.page-signup .signup-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

body.page-signup .auth-grid,
body.page-signup .signup-location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

body.page-signup .form-group {
  display: grid;
  gap: 8px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

body.page-signup .form-label {
  margin: 0;
  color: #362f4f;
  font-size: 13px;
  font-weight: 900;
}

body.page-signup .form-input,
body.page-signup .form-select {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border-radius: 18px;
  border-color: rgba(111, 97, 148, 0.2);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 8px 16px rgba(34, 24, 63, 0.04);
  font-size: 14px;
  font-weight: 800;
  /* الحقول ذات خلفية فاتحة، فيجب أن يكون نص الإدخال داكنًا ومقروءًا
     (لا --signup-ink المخصّص للنصوص فوق اللوحة الداكنة) — وإلا اختفى ما يكتبه المستخدم. */
  color: #241836;
  -webkit-text-fill-color: #241836;
  caret-color: var(--signup-brand);
  transition: transform 0.28s ease, border-color 0.24s ease, box-shadow 0.28s ease, background 0.28s ease;
}

body.page-signup .form-input:focus,
body.page-signup .form-select:focus {
  border-color: rgba(77, 41, 151, 0.38);
  box-shadow: 0 0 0 4px rgba(77, 41, 151, 0.1), 0 16px 30px rgba(34, 24, 63, 0.1);
}

body.page-signup .form-input::placeholder {
  color: #978fae;
}

body.page-signup .form-hint {
  color: #7b7590;
  font-size: 12px;
  line-height: 1.75;
  font-weight: 700;
  transition: color 0.22s ease, transform 0.24s ease, opacity 0.24s ease;
}

body.page-signup .form-hint.ok {
  color: var(--signup-success);
}

body.page-signup .form-hint.bad,
body.page-signup .form-error {
  color: #bb4257;
}

body.page-signup .form-error,
body.page-signup .signup-general-error {
  border-radius: 16px;
  font-size: 12px;
  font-weight: 800;
}

body.page-signup .signup-general-error {
  padding: 12px 14px;
  border: 1px solid rgba(187, 66, 87, 0.16);
  background: linear-gradient(180deg, rgba(255, 247, 249, 0.96), rgba(255, 238, 242, 0.92));
}

body.page-signup .signup-location-callout {
  display: grid;
  gap: 8px;
  padding: 14px;
}

body.page-signup .signup-location-toggle {
  justify-self: start;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(77, 41, 151, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94));
  color: var(--signup-brand);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(28, 20, 55, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

body.page-signup .signup-location-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 41, 151, 0.24);
  box-shadow: 0 18px 34px rgba(28, 20, 55, 0.1);
}

body.page-signup .signup-map-panel {
  gap: 14px;
}

body.page-signup .signup-map-panel.is-collapsed,
body.page-signup .signup-location-grid.is-collapsed {
  display: none;
}

body.page-signup .signup-map-panel .signup-soft-copy {
  display: block;
}

body.page-signup .signup-map-toolbar {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

body.page-signup .signup-map-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(77, 41, 151, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94));
  color: var(--signup-brand);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(28, 20, 55, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

body.page-signup .signup-map-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 41, 151, 0.24);
  box-shadow: 0 18px 34px rgba(28, 20, 55, 0.1);
}

body.page-signup .signup-map-btn:disabled {
  transform: none;
  opacity: 0.72;
  cursor: wait;
}

body.page-signup .signup-map-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.page-signup .signup-map-status,
body.page-signup .signup-map-coordinates {
  color: #6f6987;
  font-size: 12px;
  line-height: 1.75;
  font-weight: 800;
}

body.page-signup .signup-map-status.ok {
  color: var(--signup-success);
}

body.page-signup .signup-map-status.bad {
  color: #bb4257;
}

body.page-signup .signup-map-shell {
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(77, 41, 151, 0.14);
  background:
    radial-gradient(circle at top left, rgba(73, 191, 210, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(247, 242, 255, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 16px 32px rgba(34, 24, 63, 0.08);
}

body.page-signup .signup-location-map {
  width: 100%;
  height: clamp(240px, 38vh, 320px);
}

body.page-signup .signup-location-map .google-maps-control-attribution {
  font-size: 10px;
}

body.page-signup .signup-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.page-signup .signup-optional-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(73, 191, 210, 0.24);
  background: rgba(73, 191, 210, 0.1);
  color: #11687f;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

body.page-signup .signup-location-input[readonly] {
  cursor: default;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.9)),
    linear-gradient(90deg, rgba(77, 41, 151, 0.03), rgba(73, 191, 210, 0.04));
}

body.page-signup .signup-location-input[readonly]:focus {
  outline: none;
}

body.page-signup .signup-motion-item {
  opacity: 0;
  transform: translate3d(0, var(--signup-reveal-distance), 0) scale(0.985);
  filter: blur(10px);
}

body.page-signup.signup-animate-in .signup-motion-item {
  animation: signupRevealUp 0.82s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--signup-delay, 0ms);
}

body.page-signup .signup-showcase-points li,
body.page-signup .signup-showcase-tag {
  transition: transform 0.26s ease, opacity 0.26s ease, background 0.26s ease;
}

body.page-signup.signup-animate-in .signup-showcase-points li,
body.page-signup.signup-animate-in .signup-showcase-tag {
  animation: signupFadeSlide 0.72s ease forwards;
  animation-delay: calc(var(--signup-delay, 0ms) + 140ms);
}

body.page-signup .signup-showcase-points li,
body.page-signup .signup-showcase-tag {
  opacity: 0;
  transform: translateY(14px);
}

body.page-signup .form-group.is-live {
  transform: translateY(-2px);
}

body.page-signup .form-group.is-live .form-label {
  color: var(--signup-brand);
}

body.page-signup .form-group.is-live .form-input,
body.page-signup .form-group.is-live .form-select {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 4px rgba(77, 41, 151, 0.08), 0 18px 34px rgba(34, 24, 63, 0.08);
}

body.page-signup .form-group.is-highlighted .form-select,
body.page-signup .form-group.is-highlighted .form-input,
body.page-signup .signup-soft-panel.is-highlighted {
  animation: signupPulseGlow 0.72s ease;
}

body.page-signup .signup-location-callout.is-updated {
  border-color: rgba(77, 41, 151, 0.22);
  box-shadow: 0 18px 36px rgba(77, 41, 151, 0.1);
}

body.page-signup .signup-location-callout.is-updated .signup-soft-icon {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 28px rgba(77, 41, 151, 0.24);
}

body.page-signup .signup-location-callout strong {
  color: var(--signup-ink);
  font-size: 14px;
  font-weight: 900;
}

body.page-signup .signup-location-callout p {
  margin: 0;
  color: #625c79;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

body.page-signup .terms-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(77, 41, 151, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 249, 255, 0.82));
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

body.page-signup .terms-check input {
  margin-top: 3px;
}

body.page-signup .terms-check span {
  color: #534d6a;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 800;
}

body.page-signup .terms-check a {
  color: var(--signup-brand);
  font-weight: 900;
}

body.page-signup .signup-submit-btn {
  min-height: 56px;
  border-radius: 20px;
  white-space: normal;
  box-shadow: 0 18px 34px rgba(77, 41, 151, 0.22);
  background: linear-gradient(135deg, var(--signup-brand), var(--signup-brand-2));
  font-size: 15px;
  font-weight: 900;
  transition: transform 0.24s ease, box-shadow 0.28s ease, background 0.28s ease;
}

body.page-signup .signup-submit-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #412184, #6840bc);
  box-shadow: 0 22px 38px rgba(77, 41, 151, 0.26);
}

body.page-signup .signup-submit-btn {
  width: 100%;
}

body.page-signup .signup-skip-btn {
  min-height: 56px;
  min-width: 156px;
  max-width: 100%;
  padding: 0 18px;
  border-radius: 20px;
  border: 1px solid rgba(77, 41, 151, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 241, 255, 0.94));
  color: var(--signup-brand);
  box-shadow: 0 14px 28px rgba(28, 20, 55, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.24s ease, box-shadow 0.28s ease, border-color 0.24s ease, background 0.24s ease;
}

body.page-signup .signup-skip-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 41, 151, 0.22);
  box-shadow: 0 20px 34px rgba(28, 20, 55, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 235, 255, 0.95));
}

body.page-signup .signup-skip-btn:disabled,
body.page-signup .signup-submit-btn:disabled {
  transform: none;
}

body.page-signup .signup-skip-icon,
body.page-signup .signup-skip-spinner {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-signup .signup-skip-note {
  margin: -4px 0 0;
  color: #7b7590;
  font-size: 11px;
  line-height: 1.8;
  font-weight: 700;
}

[data-theme="dark"] body.page-signup {
  --signup-ink: #f4efff;
  --signup-muted: #c5badf;
}

[data-theme="dark"] body.page-signup .page-content {
  background:
    radial-gradient(circle at 12% 12%, rgba(73, 191, 210, 0.08), transparent 24%),
    radial-gradient(circle at 90% 4%, rgba(122, 79, 209, 0.12), transparent 28%),
    linear-gradient(180deg, #111827 0%, #171323 48%, #111827 100%);
}

[data-theme="dark"] body.page-signup .signup-card {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(31, 27, 44, 0.98), rgba(26, 22, 38, 0.96)),
    radial-gradient(circle at top right, rgba(73, 191, 210, 0.08), transparent 40%);
}

[data-theme="dark"] body.page-signup .signup-soft-panel,
[data-theme="dark"] body.page-signup .terms-check {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(33, 29, 48, 0.94), rgba(25, 22, 37, 0.9));
}

[data-theme="dark"] body.page-signup .form-label,
[data-theme="dark"] body.page-signup .signup-location-callout strong,
[data-theme="dark"] body.page-signup .signup-soft-copy strong {
  color: #f4efff;
}

[data-theme="dark"] body.page-signup .auth-desc,
[data-theme="dark"] body.page-signup .signup-soft-copy p,
[data-theme="dark"] body.page-signup .signup-location-callout p,
[data-theme="dark"] body.page-signup .form-hint,
[data-theme="dark"] body.page-signup .signup-map-status,
[data-theme="dark"] body.page-signup .signup-map-coordinates,
[data-theme="dark"] body.page-signup .signup-skip-note,
[data-theme="dark"] body.page-signup .terms-check span {
  color: #c5badf;
}

[data-theme="dark"] body.page-signup .form-input,
[data-theme="dark"] body.page-signup .form-select,
[data-theme="dark"] body.page-signup .signup-location-input[readonly] {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(17, 24, 39, 0.92);
  color: #f4efff;
  -webkit-text-fill-color: #f4efff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 22px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] body.page-signup .form-input::placeholder {
  color: #9188ac;
}

[data-theme="dark"] body.page-signup .signup-map-btn,
[data-theme="dark"] body.page-signup .signup-location-toggle,
[data-theme="dark"] body.page-signup .signup-skip-btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(33, 29, 48, 0.98), rgba(24, 21, 36, 0.94));
  color: #d8c8ff;
}

[data-theme="dark"] body.page-signup .terms-check a {
  color: #d8c8ff;
}

body.page-signup .signup-soft-panel:hover,
body.page-signup .terms-check:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 41, 151, 0.16);
  box-shadow: 0 20px 38px rgba(34, 24, 63, 0.08);
}

body.page-signup .signup-showcase-tag:hover,
body.page-signup .signup-showcase-points li:hover {
  transform: translateX(-4px);
}

body.page-signup .signup-general-error:not(.hidden) {
  animation: signupRevealUp 0.46s ease forwards;
}

@keyframes signupRevealUp {
  0% {
    opacity: 0;
    transform: translate3d(0, var(--signup-reveal-distance), 0) scale(0.985);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes signupFadeSlide {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes signupPulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(77, 41, 151, 0);
  }
  45% {
    box-shadow: 0 0 0 7px rgba(77, 41, 151, 0.11);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(77, 41, 151, 0);
  }
}

@keyframes signupFloatOne {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(10px, 14px, 0);
  }
}

@keyframes signupFloatTwo {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-12px, -10px, 0);
  }
}

@keyframes signupSweep {
  0% {
    opacity: 0;
    transform: translate3d(-30px, 12px, 0) rotate(18deg);
  }
  35% {
    opacity: 0.52;
  }
  100% {
    opacity: 0;
    transform: translate3d(300px, -12px, 0) rotate(18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-signup .signup-shell::before,
  body.page-signup .signup-shell::after,
  body.page-signup .signup-motion-item,
  body.page-signup .signup-showcase-points li,
  body.page-signup .signup-showcase-tag,
  body.page-signup .signup-showcase::before,
  body.page-signup .signup-card::after,
  body.page-signup .form-group,
  body.page-signup .form-input,
  body.page-signup .form-select,
  body.page-signup .signup-soft-panel,
  body.page-signup .terms-check,
  body.page-signup .signup-submit-btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

@media (min-width: 960px) {
  body.page-signup .signup-premium-page {
    padding: 34px 20px 64px;
  }

  body.page-signup .signup-shell {
    max-width: min(1120px, calc(100vw - 48px));
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  body.page-signup .signup-card {
    padding: 18px;
    border-radius: 38px;
  }

  body.page-signup .signup-showcase {
    padding: 34px 34px 30px;
  }

  body.page-signup .auth-header {
    min-height: 238px;
    padding: 34px 38px 30px;
    align-content: end;
    gap: 14px;
  }

  body.page-signup .auth-title {
    font-size: clamp(40px, 4.3vw, 58px);
    max-width: 12ch;
  }

  body.page-signup .auth-desc {
    font-size: 16px;
    max-width: 58ch;
  }

  body.page-signup .signup-form-grid {
    max-width: 780px;
    margin-inline: auto;
    gap: 18px;
  }

  body.page-signup .form-group {
    gap: 10px;
  }

  body.page-signup .form-label {
    font-size: 14px;
  }

  body.page-signup .form-input,
  body.page-signup .form-select {
    min-height: 60px;
    padding-inline: 18px;
    font-size: 15px;
  }

  body.page-signup .signup-soft-panel,
  body.page-signup .terms-check,
  body.page-signup .signup-general-error {
    padding: 18px 20px;
  }

  body.page-signup .signup-location-callout {
    gap: 10px;
  }

  body.page-signup .signup-map-toolbar {
    justify-content: space-between;
  }

  body.page-signup .signup-submit-btn {
    width: min(100%, 360px);
    min-height: 62px;
    justify-self: start;
    font-size: 16px;
  }

  body.page-signup .signup-skip-btn {
    min-height: 62px;
    min-width: 172px;
    font-size: 15px;
  }
}

@media (max-width: 720px) {
  body.page-signup .auth-grid-2,
  body.page-signup .signup-location-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body.page-signup .signup-premium-page {
    padding: 12px 10px 34px;
  }

  body.page-signup .signup-shell::before,
  body.page-signup .signup-shell::after,
  body.page-signup .auth-header::before,
  body.page-signup .auth-header::after {
    display: none;
  }

  body.page-signup .signup-showcase,
  body.page-signup .signup-card {
    border-radius: 22px;
    box-shadow: 0 16px 34px rgba(28, 20, 55, 0.09);
  }

  body.page-signup .auth-title {
    font-size: 24px;
    line-height: 1.35;
  }

  body.page-signup .auth-desc {
    font-size: 13px;
    line-height: 1.75;
  }

  body.page-signup .signup-card-inner {
    gap: 14px;
  }

  body.page-signup .signup-form-grid {
    gap: 12px;
  }

  body.page-signup .signup-actions {
    grid-template-columns: 1fr;
  }

  body.page-signup .signup-skip-btn {
    width: 100%;
    min-width: 0;
  }

  body.page-signup .signup-map-toolbar,
  body.page-signup .signup-field-label {
    flex-direction: column;
    align-items: flex-start;
  }

  body.page-signup .signup-map-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  body.page-signup .signup-premium-page {
    padding: 12px 10px 32px;
  }

  body.page-signup .signup-shell {
    gap: 16px;
    max-width: 100%;
  }

  body.page-signup .signup-showcase,
  body.page-signup .signup-card {
    padding: 14px 12px;
    border-radius: 20px;
  }

  body.page-signup .auth-header {
    padding: 16px 12px;
    border-radius: 18px;
  }

  body.page-signup .signup-soft-panel {
    grid-template-columns: 1fr;
  }

  body.page-signup .terms-check {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  body.page-signup .terms-check input {
    margin-top: 5px;
  }

  body.page-signup .form-input,
  body.page-signup .form-select {
    min-height: 50px;
    border-radius: 15px;
    font-size: 13px;
  }

  body.page-signup .signup-location-callout {
    padding: 12px;
  }

  body.page-signup .signup-soft-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}

@media (max-width: 360px) {
  body.page-signup .signup-showcase-badge,
  body.page-signup .signup-card-badge,
  body.page-signup .signup-showcase-tag {
    width: 100%;
    justify-content: center;
  }

  body.page-signup .signup-submit-btn,
  body.page-signup .signup-skip-btn {
    min-height: 52px;
    border-radius: 16px;
  }
}
