/* register-only: WhatsApp block + two-column reg stack (extends he-auth) */

/* =========================================================
   Register v2 — matches Login modern futuristic system (#010)
   Scope: .login-container.auth-register
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap");

body:has(.login-container.auth-register) {
  --text-dark: #eef2ff;
  --text-light: rgba(226, 232, 240, 0.72);
  --bg-dark: #0b1020;
  --accent-color: #101a33;
  --primary-color: #ff6a00; /* cosmic orange */
  --primary-dark: #cc5200;
  --primary-light: #ffd2b3;
  --secondary-color: #ffffff;
  --border-glass: rgba(148, 163, 184, 0.18);
  --bg-glass: rgba(16, 26, 51, 0.62);
  --shadow-glass: 0 22px 60px rgba(3, 6, 23, 0.55);
  font-family: "DM Sans", system-ui, sans-serif;
  background-color: #0b1020;
  background-image:
    radial-gradient(ellipse 110% 70% at 50% -10%, rgba(255, 106, 0, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 80% 55% at 100% 55%, rgba(255, 255, 255, 0.09) 0%, transparent 52%),
    radial-gradient(ellipse 80% 60% at 0% 90%, rgba(255, 210, 179, 0.10) 0%, transparent 55%),
    linear-gradient(180deg, #0b1020 0%, #101a33 55%, #0b1020 100%);
  color: var(--text-dark);
}

/* No animated background layer on register */
body:has(.login-container.auth-register) .animated-bg,
body:has(.login-container.auth-register) .particles,
body:has(.login-container.auth-register) .gradient-orb,
body:has(.login-container.auth-register) .particle {
  display: none !important;
}

body:has(.login-container.auth-register) {
  display: flex;
  padding: 0;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
}

body:has(.login-container.auth-register) .login-container.auth-register {
  width: 95vw;
  max-width: 95vw;
}

body:has(.login-container.auth-register) .auth-login__stack {
  width: 100%;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
}

/* Reward strip (top, centered, NO outer card) */
body:has(.login-container.auth-register) .reg-reward--top {
  width: 95%;
  margin: 0 auto 6px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

body:has(.login-container.auth-register) .reg-reward__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

body:has(.login-container.auth-register) .reg-reward__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.22);
  color: rgba(238, 242, 255, 0.92);
  font-weight: 700;
}

body:has(.login-container.auth-register) .reg-reward__badge .fab {
  color: #4ade80;
}

body:has(.login-container.auth-register) .reg-reward__trust {
  color: var(--text-light);
  font-size: 0.8rem;
}

/* reg-reward headline removed */

/* reg-reward track removed */


body:has(.login-container.auth-register) .auth-login__header {
  width: 95%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

body:has(.login-container.auth-register) .auth-login__brand--hero {
  width: clamp(72px, 16vw, 112px);
  height: clamp(72px, 16vw, 112px);
  object-fit: contain;
  border-radius: 16px;
}

body:has(.login-container.auth-register) .auth-login__brandname {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(238, 242, 255, 0.96);
  font-size: clamp(1.18rem, 4.4vw, 1.55rem);
}

body:has(.login-container.auth-register) .auth-login__tagline {
  margin: 0;
  margin-top: -2px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text-light);
  max-width: 34ch;
}

body:has(.login-container.auth-register) .auth-login__main {
  width: 95%;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 16px;
}

body:has(.login-container.auth-register) .auth-login__form {
  width: 100%;
  display: grid;
  gap: 20px;
}

/* Fields (reuse login’s system) */
body:has(.login-container.auth-register) .auth-field {
  display: grid;
  gap: 10px;
  width: 100%;
}

body:has(.login-container.auth-register) .auth-field__control {
  position: relative;
  display: flex;
  align-items: center;
  height: 58px;
  border-radius: 999px;
  background: rgba(16, 26, 51, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

body:has(.login-container.auth-register) .auth-field__icon {
  position: absolute;
  left: 18px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.95rem;
  pointer-events: none;
}

body:has(.login-container.auth-register) .auth-field__input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-dark);
  font: inherit;
  font-size: 0.95rem;
  padding: 0 18px 0 46px;
}

body:has(.login-container.auth-register) .auth-field__control--has-action .auth-field__input {
  padding-right: 56px;
}

body:has(.login-container.auth-register) .auth-field__input::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

body:has(.login-container.auth-register) .auth-field__control:has(.auth-field__input:focus) {
  border-color: rgba(255, 106, 0, 0.55);
  background: rgba(16, 26, 51, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.16);
}

body:has(.login-container.auth-register) .auth-field__action.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.72);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Error messages */
body:has(.login-container.auth-register) .error-message {
  display: block;
  font-size: 0.75rem;
  color: #fca5a5;
  margin-top: 0;
  min-height: 0;
  line-height: 1.35;
}
body:has(.login-container.auth-register) .error-message:empty {
  display: none;
  margin: 0;
}

body:has(.login-container.auth-register) .error-message--above {
  margin-bottom: 8px;
  text-align: left;
  width: 100%;
  padding-left: 6px;
}

/* Primary CTA matches login */
body:has(.login-container.auth-register) .auth-register__submit.login-btn {
  width: 100%;
  border-radius: 999px;
  height: 54px;
  padding: 0 18px;
  justify-content: center;
  font-size: 0.95rem;
  background: var(--primary-color);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

body:has(.login-container.auth-register) .reg-reward__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 6px;
}

body:has(.login-container.auth-register) .reg-reward__value {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(238, 242, 255, 0.98);
  text-shadow: 0 0 22px rgba(255, 106, 0, 0.18);
  margin-bottom: 4px;
}

body:has(.login-container.auth-register) .reg-reward__hint {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.3;
}

/* reg-reward track removed */

body:has(.login-container.auth-register) .reg-reward__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: rgba(238, 242, 255, 0.9);
  font-size: 0.9rem;
}

/* Spacing between CTA button and sign-in link */
body:has(.login-container.auth-register) .auth-register__signin {
  margin-top: 14px;
}

body.he-auth--register .he-auth-page--register {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100vh;
}

body.he-auth--register .he-auth-slab--register {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

body.he-auth--register .he-auth-hero--reg {
  order: 1;
}

/* Mobile: brand (page) → hero line → WhatsApp + form */
body.he-auth--register .he-auth-reg-stack {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.he-auth--register .he-auth-whatsapp {
  order: 1;
  position: relative;
  margin: 0 0 0;
  padding: var(--he-space-m) 6vw;
  color: var(--he-ink);
  background: linear-gradient(100deg, var(--he-void) 0%, var(--he-void-soft) 100%);
  color: #e7e2d8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.he-auth--register .he-auth-whatsapp__rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #22c55e, #0d9488 60%, #22c55e);
}

body.he-auth--register .he-auth-whatsapp__core {
  position: relative;
  padding-left: 0.5rem;
}

body.he-auth--register .he-auth-whatsapp__tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 var(--he-space-2xs);
  font-weight: 600;
}

body.he-auth--register .he-auth-whatsapp__tag .fab {
  color: #4ade80;
  font-size: 1.1em;
}

body.he-auth--register .he-auth-whatsapp__pitch {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 var(--he-space-s);
  max-width: 22rem;
}

body.he-auth--register .he-auth-whatsapp__figures {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--he-space-s);
}

body.he-auth--register .he-auth-whatsapp__metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.he-auth--register .he-auth-whatsapp__metric-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}

body.he-auth--register .he-auth-whatsapp__metric-val {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #f5f0e6;
}

body.he-auth--register .he-auth-whatsapp__divider {
  width: 1px;
  align-self: stretch;
  min-height: 2.2rem;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 0.1rem;
}

body.he-auth--register .he-auth-slab--register .he-auth-panel {
  order: 2;
  padding-top: var(--he-space-m);
}

body.he-auth--register .he-auth-optional {
  text-transform: none;
  letter-spacing: 0.05em;
  font-size: 0.65em;
  color: var(--he-trace);
  font-weight: 400;
}

/* Password strength */
body.he-auth--register .he-auth-strength {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: var(--he-space-2xs);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.25s var(--he-ramp-ease),
    opacity 0.2s var(--he-ramp-ease);
}

body.he-auth--register .he-auth-strength.is-visible {
  max-height: 2.5rem;
  opacity: 1;
}

body.he-auth--register .he-auth-strength__track {
  height: 3px;
  background: var(--he-wash);
  overflow: hidden;
  border-radius: 1px;
}

body.he-auth--register .he-auth-strength__fill {
  height: 100%;
  width: 0%;
  background: var(--he-trace);
  transition: width 0.2s var(--he-ramp-ease), background 0.2s var(--he-ramp-ease);
}

body.he-auth--register .he-auth-strength__fill.is-weak {
  width: 30%;
  background: #b91c1c;
}
body.he-auth--register .he-auth-strength__fill.is-medium {
  width: 60%;
  background: #ca8a04;
}
body.he-auth--register .he-auth-strength__fill.is-strong {
  width: 100%;
  background: #0f766e;
}

body.he-auth--register .he-auth-strength__copy {
  font-size: 0.7rem;
  color: var(--he-mist);
  letter-spacing: 0.04em;
}

body.he-auth--register .he-auth-strength__copy.is-weak {
  color: #b91c1c;
}
body.he-auth--register .he-auth-strength__copy.is-medium {
  color: #ca8a04;
}
body.he-auth--register .he-auth-strength__copy.is-strong {
  color: #0f766e;
}

/* Field error hints */
body.he-auth--register .he-auth-hint {
  font-size: 0.75rem;
  min-height: 0;
  line-height: 1.35;
  color: transparent;
  transition: color 0.15s;
}

body.he-auth--register .he-auth-hint.is-error:empty {
  min-height: 0;
  margin: 0;
  padding: 0;
  display: none;
}

body.he-auth--register .he-auth-hint.is-error.is-show,
body.he-auth--register .he-auth-hint.is-error.show {
  display: block;
  color: #b91c1c;
  min-height: 1em;
  margin-top: 0.15rem;
}

body.he-auth--register .he-auth-form {
  max-width: 20rem;
}

/* Large: WhatsApp and form in one column beside hero */
@media (min-width: 900px) {
  body.he-auth--register .he-auth-slab--register {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.18fr);
    border-top: 1px solid var(--he-trace);
  }

  body.he-auth--register .he-auth-hero--reg {
    order: 1;
    border-top: none;
    border-right: 1px solid var(--he-trace);
  }

  body.he-auth--register .he-auth-reg-stack {
    order: 2;
    border-left: none;
  }

  body.he-auth--register .he-auth-whatsapp {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  body.he-auth--register .he-auth-whatsapp,
  body.he-auth--register .he-auth-slab--register .he-auth-panel {
    padding: var(--he-space-m) 8vw;
  }

  body.he-auth--register .he-auth-slab--register .he-auth-panel {
    border-top: 1px solid var(--he-trace);
    flex: 1;
  }
}

/* —— Legacy register template (login-container + register.js he-auth-strength classes) —— */
body:has(.login-container) .register-earnings-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  font-size: 0.8rem;
}

body:has(.login-container) .register-earnings-inline__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.65rem;
}

body:has(.login-container) .register-earnings-inline__value {
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.88rem;
  text-shadow: 0 0 20px rgba(255, 106, 0, 0.35);
  font-family: "Orbitron", "Inter", sans-serif;
  letter-spacing: 0.02em;
}

body:has(.login-container) .form-group .optional,
body:has(.login-container) .optional {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.85em;
}

body:has(.login-container) .error-message {
  display: block;
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 0.3rem;
  min-height: 0;
  line-height: 1.35;
}

body:has(.login-container) .error-message:empty {
  display: none;
  margin: 0;
}
