/* Registration / auth pages with hero-style blurred background */
html:has(.auth-register-page),
html:has(.auth-register-page) body {
  overflow-x: hidden;
  max-width: 100%;
}

.auth-register-page {
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

.auth-register-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.auth-register-bg-image {
  position: absolute;
  top: -8%;
  left: 50%;
  width: 116%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  filter: blur(12px) saturate(1.35) brightness(0.92) contrast(1.05);
  transform: translateX(-50%) scale(1.05);
  transform-origin: center center;
}

.auth-register-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(135deg, rgba(221, 0, 0, 0.18) 0%, transparent 48%, rgba(255, 204, 0, 0.14) 100%),
    radial-gradient(700px 360px at 12% 25%, rgba(221, 0, 0, 0.2), transparent 62%),
    radial-gradient(620px 320px at 88% 35%, rgba(255, 204, 0, 0.16), transparent 58%);
}

.auth-register-inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.auth-register-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
  width: 100%;
  box-sizing: border-box;
  padding: 14px clamp(16px, 3vw, 48px);
  backdrop-filter: blur(16px);
  overflow: visible;
}

.auth-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-inline-start: 0;
}

.sr-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.auth-register-page .topbar.landing-top {
  position: relative;
  z-index: 2;
}

.auth-register-main {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 16px 28px;
}

.auth-register-page .auth-card,
.register-gate-card,
.register-info-card {
  width: min(100%, calc(100vw - 32px));
  max-width: 440px;
  margin-inline: auto;
  margin-block: 0;
  background: rgba(22, 22, 22, 0.92);
  border: 1px solid rgba(255, 204, 0, 0.22);
  border-radius: 24px;
  padding: 14px 16px 12px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  animation: authCardIn 0.35s ease;
}

.auth-register-page.auth-page .auth-card {
  margin: 0;
}

.register-info-card {
  max-width: 460px;
}

@keyframes authCardIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: none; }
}

.register-gate-card h1,
.register-info-card h1,
.auth-register-page .auth-card h1 {
  margin: 0 0 4px;
  font-size: 1.55rem;
}

.register-gate-card .sub,
.register-info-card .sub,
.auth-register-page .auth-card .sub {
  margin: 0 0 10px;
}

.register-gate-form {
  display: grid;
  gap: 14px;
}

.register-gate-form label {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.register-gate-form label strong {
  color: var(--gold);
  font-size: 1.1em;
}

.register-gate-form[aria-busy="true"] [data-register-submit] {
  opacity: 0.75;
  pointer-events: none;
}

.register-gate-status {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.register-info-steps {
  margin: 0 0 14px;
  padding-inline-start: 20px;
  line-height: 1.65;
  color: var(--text);
}

.register-info-steps li + li {
  margin-top: 4px;
}

.register-info-actions {
  display: grid;
  gap: 10px;
}

.btn.whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  border: 0;
}

.btn.whatsapp svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn.whatsapp:hover {
  filter: brightness(1.06);
}

.btn.glow {
  box-shadow: 0 0 24px rgba(255, 204, 0, 0.35);
}

.btn.glow:hover {
  box-shadow: 0 0 32px rgba(255, 204, 0, 0.5);
}

.register-info-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.auth-messages {
  max-width: 440px;
  width: 100%;
  margin: 0 auto 12px;
}

.auth-message {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin: 0 0 8px;
}

.auth-message.error {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.35);
  color: #ffb4b4;
}

label .error {
  display: block;
  margin-top: 0.35rem;
  color: #ffb4b4;
  font-size: 0.82rem;
}

.auth-message.success {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #9ef0bd;
}

.auth-message.warning {
  background: rgba(255, 204, 0, 0.12);
  border: 1px solid rgba(255, 204, 0, 0.35);
  color: #ffe08a;
}

.session-superseded-notice {
  margin: 0 0 1rem;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid rgba(255, 204, 0, 0.35);
  text-align: center;
}

.session-superseded-title {
  margin: 0 0 0.35rem;
  font-weight: 800;
  color: #ffdf70;
  font-size: 0.98rem;
}

.session-superseded-text {
  margin: 0;
  color: #f5e6a8;
  font-size: 0.88rem;
  line-height: 1.65;
}

.register-form-note {
  margin: 0 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 204, 0, 0.08);
  border: 1px solid rgba(255, 204, 0, 0.2);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.register-form-note a {
  color: #25d366;
  font-weight: 600;
}

/* Step 3: horizontal compact form — use .auth-card.register-form-card so rules beat .auth-register-page .auth-card */
.auth-register-page .auth-card.register-form-card {
  max-width: min(680px, calc(100vw - 32px));
  padding: 14px 16px 12px;
  margin: 0;
}

.auth-register-page .auth-card.register-form-card h1 {
  margin: 0;
  font-size: 1.25rem;
}

.auth-register-page .auth-card.register-form-card form.register-form-grid {
  gap: 6px;
}

.auth-register-page .auth-card.register-form-card .register-form-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 0 10px;
  align-items: baseline;
  margin-bottom: 2px;
}

.auth-register-page .auth-card.register-form-card .register-form-head .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 12px;
}

.auth-register-page .auth-card.register-form-card .register-form-head h1 {
  grid-column: 1 / -1;
  grid-row: 2;
}

.auth-register-page .auth-card.register-form-card .register-form-head .sub {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.auth-register-page .auth-card.register-form-card .register-form-note {
  margin: 0 0 6px;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.3;
  border-radius: 10px;
}

.auth-register-page .auth-card.register-form-card .register-form-row {
  gap: 6px;
}

.auth-register-page .auth-card.register-form-card .register-form-row label {
  gap: 2px;
  font-size: 12px;
  margin: 0;
}

.auth-register-page .auth-card.register-form-card .register-form-row input {
  padding: 7px 9px;
  font-size: 13px;
  border-radius: 10px;
}

.auth-register-page .auth-card.register-form-card .register-info-note {
  margin: 6px 0 0;
  font-size: 12px;
}

/* Legacy aliases (kept for markup hooks; overridden above when combined with .auth-card) */
.register-form-card {
  max-width: 680px;
}

.register-form-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 0 12px;
  align-items: baseline;
  margin-bottom: 4px;
}

.register-form-head .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 12px;
}

.register-form-head h1 {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  font-size: 1.3rem;
}

.register-form-card .register-form-head .sub {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0 0 2px;
  font-size: 13px;
  line-height: 1.35;
}

.register-form-card .register-form-note {
  margin: 0 0 8px;
  padding: 5px 9px;
  font-size: 12px;
  line-height: 1.3;
}

.register-form-grid {
  display: grid;
  gap: 8px;
}

.register-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.register-form-row label {
  gap: 4px;
  font-size: 13px;
}

.register-form-row input {
  padding: 8px 10px;
  font-size: 14px;
}

.register-terms {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 4px;
  direction: rtl;
  text-align: start;
  width: 100%;
}

.register-terms-check {
  flex-shrink: 0;
  line-height: 1;
  padding-top: 3px;
}

.register-terms-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gold, #ffcc00);
  cursor: pointer;
}

.register-terms-copy {
  flex: 1;
  min-width: 0;
  margin: 0;
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.register-terms-copy a {
  color: var(--gold, #ffcc00);
  font-weight: 600;
}

.register-terms-error {
  flex: 1 1 100%;
  margin-top: 2px;
  color: #ff7b7b;
}

.activation-card .activation-steps {
  margin: 0 0 18px;
  padding: 0 1.2rem 0 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.activation-actions {
  display: grid;
  gap: 10px;
}

.activation-actions form {
  margin: 0;
}

.activation-pending-page .auth-register-main {
  min-height: 70vh;
}

.activation-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.activation-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.activation-modal-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 204, 0, 0.28);
  background: #161616;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.activation-modal-eyebrow {
  margin: 0 0 8px;
  color: #ffcc00;
  font-size: 0.85rem;
  font-weight: 700;
}

.activation-modal-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.35;
}

.activation-modal-lead {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.activation-modal-list {
  margin: 0 0 18px;
  padding: 0 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.activation-modal-actions {
  display: grid;
  gap: 10px;
}

body.activation-modal-open {
  overflow: hidden;
}

.register-form-card .register-info-note,
.auth-register-page .auth-card .register-info-note {
  margin: 8px 0 0;
  font-size: 12px;
}

.auth-register-page .auth-card form {
  display: grid;
  gap: 8px;
}

@media (max-width: 520px) {
  .auth-register-main {
    padding: 10px 12px 24px;
  }

  .auth-register-page .auth-card.register-form-card {
    padding: 12px 12px 10px;
  }

  .register-form-card {
    max-width: 100%;
    width: min(100%, calc(100vw - 24px));
  }

  .register-form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .register-form-row label {
    font-size: 12px;
  }

  .register-form-row input {
    padding: 9px 10px;
    font-size: 13px;
  }

  .register-form-head h1 {
    font-size: 1.2rem;
  }
}

.register-country-other.is-hidden {
  display: none;
}

.register-form-row select,
.auto-profile-form select {
  width: 100%;
  padding: 7px 9px;
  font-size: 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 22, 0.72);
  color: inherit;
}

.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(226, 232, 248, 0.62);
  line-height: 1.45;
}

.register-phone-field {
  grid-column: 1 / -1;
}
