/* ---------- REGISTER ---------- */
/* Split-screen premium layout: welcome/branding + the registration
   form. Built entirely in this file — assets/css/auth.css (shared by
   all 6 auth pages: login, register, otp, forgot/reset-password,
   profile-completion) is left completely untouched, so this redesign
   never reshapes the other pages. Only safe, generic primitives already
   defined there/in components.css are reused as-is on new markup:
   .auth-topbar (unmodified), .auth-card__title/__sub/__foot/__terms
   (typography only), .eyebrow, .field*, .btn*, .alert.

   The welcome half is DOM-first, so it's the RTL reading-start (right)
   side with no left/right hack, and correctly becomes the LTR-start
   (left) side on the English toggle for free.

   Ambient backdrop: the page's existing .bg/.bg__grid/.bg__blob layer
   (assets/css/app.css, already present in register.html's markup and
   shared with the homepage) already delivers the "black + subtle grid
   + soft gold glow" atmosphere the brief asks for — no new background
   layer is added here. */

.register-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 96px;
}

/* ---------- Welcome / academy branding half ---------- */
.register-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px var(--pad-x) 8px;
  text-align: center;
}
.register-hero__inner { max-width: 34rem; }
.register-hero__title {
  font-size: clamp(26px, 4.4vw, 42px);
  font-weight: 800;
  line-height: 1.32;
  text-wrap: balance;
}
.register-hero__brand {
  display: inline-block;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--accent), var(--gold) 62%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.register-hero__sub {
  margin-top: 18px;
  color: var(--text);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
}
.register-hero__extra {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

/* ---------- Form half ---------- */
/* width: min(100% - gutters, cap) centers the card within its grid
   track AND guarantees a side gutter at narrow widths — no separate
   wrapper element or margin-auto needed. */
.register-card {
  position: relative;
  z-index: 1;
  justify-self: center;
  align-self: center;
  width: min(100% - 2 * var(--pad-x), 460px);
  margin-block: 20px 56px;
  padding: clamp(26px, 4vw, 38px);
  border-radius: 18px;
  border: 1px solid rgba(244, 196, 48, .18);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Password show/hide toggle ---------- */
.field__control { position: relative; }
.field__control .field__input { padding-inline-end: 46px; }
.field__toggle {
  position: absolute;
  top: 50%;
  inset-inline-end: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.field__toggle:hover { color: var(--gold); background: var(--surface-hover); }
.field__toggle:focus-visible { outline: 2px solid rgba(244, 196, 48, .6); outline-offset: 1px; }
.field__toggle-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.field__toggle-icon--hide { display: none; }
.field__toggle.is-visible .field__toggle-icon--show { display: none; }
.field__toggle.is-visible .field__toggle-icon--hide { display: block; }

@media (max-width: 460px) {
  .register-shell { padding-top: 84px; }
}

@media (min-width: 64rem) {
  .register-shell { grid-template-columns: 1fr 1fr; }
  .register-hero { text-align: start; padding-inline: clamp(32px, 4vw, 64px); }
}
