/* LMS design — member flow (13-06): login / register / find. Ported from the React auth components. */

/* ===== auth/AuthSplit.module.css (prefix .au-) ===== */
html.is-auth {
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background:
    radial-gradient(900px 520px at 50% -12%, rgba(47, 91, 255, 0.18), transparent 58%),
    radial-gradient(640px 380px at 100% 110%, rgba(29, 78, 216, 0.1), transparent 50%),
    #e8eef8;
}

html.is-auth body {
  height: 100%;
}

html.is-auth #root,
html.is-auth #top {
  min-height: 0 !important;
  height: 100%;
  overflow: visible;
  background: transparent;
}

html.is-auth main {
  min-height: 0;
  height: 100%;
}

html.is-auth #top > header,
html.is-auth #top > footer,
html.is-auth p[hidden] {
  display: none !important;
}

.au-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1120px, 100%);
  height: min(780px, calc(100vh - 56px));
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 24px 60px rgba(23, 37, 84, 0.16);
}

.au-tools {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: 22px 32px 8px;
}

.au-toolsTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.au-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.au-back {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  color: #344054;
  background: #f2f4f8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.au-back:hover {
  color: #12141a;
  background: #e7ebf3;
}

.au-logo {
  display: inline-flex;
  align-items: center;
  color: #12141a;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.au-logo span {
  margin-left: 0.28em;
  color: #2f5bff;
}

html.is-auth .au-lang {
  display: inline-flex;
  height: auto;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: #f2f4f8;
}

html.is-auth .au-lang button {
  min-width: 34px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

html.is-auth .au-lang button[aria-pressed="true"] {
  background: #12141a;
  color: #fff;
}

.au-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #f2f4f8;
}

.au-switch a {
  min-height: 34px;
  border-radius: 9px;
  color: #3c4453;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.au-switch a[aria-current="page"] {
  background: #2f5bff;
  color: #fff;
  box-shadow: 0 6px 14px rgba(47, 91, 255, 0.28);
}

.au-formPane {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  overflow: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
}

html.is-auth:not(.is-auth-join) .au-formPane {
  display: flex;
  align-items: center;
}

html.is-auth:not(.is-auth-join) .au-formPane > * {
  width: 100%;
}

.au-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto;
  min-height: 0;
  padding: 36px 28px 32px;
  border-radius: 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(165deg, #3f6fff 0%, #2a55f6 42%, #1a46d6 100%);
}

.au-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 1.1px, transparent 1.1px);
  background-size: 16px 16px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  pointer-events: none;
}

.au-visual {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.au-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 68%);
  filter: blur(2px);
  animation: auth-pulse 4.8s ease-in-out infinite;
}

.au-orbit {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  animation: auth-spin 16s linear infinite;
}

.au-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.95);
}

.au-orbit span:nth-child(1) { top: -6px; left: calc(50% - 6px); }
.au-orbit span:nth-child(2) { left: -6px; bottom: 22%; width: 8px; height: 8px; }
.au-orbit span:nth-child(3) { right: 8%; bottom: -4px; background: #d7e2ff; }

.au-stage {
  position: relative;
  z-index: 1;
  width: min(320px, 92%);
  animation: auth-float 5.6s ease-in-out infinite;
}

html.is-auth-join .au-stage {
  width: min(360px, 94%);
}

.au-card {
  position: relative;
  width: 100%;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: #fff;
  color: #172033;
  box-shadow: 0 18px 40px rgba(12, 32, 92, 0.22);
}

.au-cardTitle {
  margin: 0 0 10px;
  color: #123f91;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.au-card ol {
  counter-reset: auth-fact;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.au-card li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  color: #344054;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.au-card li::before {
  content: counter(auth-fact);
  counter-increment: auth-fact;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #eef2ff;
  color: #2f5bff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.au-cardKicker {
  margin: 0 0 4px;
  color: #2f5bff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.au-steps .au-cardTitle {
  margin-bottom: 14px;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.au-card .au-rail {
  counter-reset: none;
  gap: 0;
}

.au-card .au-rail li {
  position: relative;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 10px 8px;
  border-radius: 12px;
}

.au-card .au-rail li::before {
  content: none;
}

.au-card .au-rail li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  left: 24px;
  width: 1px;
  height: calc(100% - 22px);
  background: #d9e1f2;
}

.au-railNo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef2ff;
  color: #2f5bff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.au-railCopy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.au-railCopy strong {
  color: #172033;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.au-railCopy em {
  color: #667085;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.au-now {
  display: none;
  grid-column: 2;
  justify-self: start;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #2f5bff;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

html[data-auth-step="1"] .au-rail li[data-step="1"],
html[data-auth-step="2"] .au-rail li[data-step="2"],
html[data-auth-step="3"] .au-rail li[data-step="3"] {
  grid-template-columns: 34px minmax(0, 1fr);
  background: #f3f6ff;
}

html[data-auth-step="1"] .au-rail li[data-step="1"] .au-now,
html[data-auth-step="2"] .au-rail li[data-step="2"] .au-now,
html[data-auth-step="3"] .au-rail li[data-step="3"] .au-now {
  display: inline-flex;
}

html[data-auth-step="2"] .au-rail li[data-step="1"] .au-railNo,
html[data-auth-step="3"] .au-rail li[data-step="1"] .au-railNo,
html[data-auth-step="3"] .au-rail li[data-step="2"] .au-railNo {
  background: #123f91;
  color: #fff;
}

.au-copy {
  position: relative;
  z-index: 1;
}

.au-copy h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.au-copy p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  word-break: keep-all;
}

html.is-auth-join .au-loginOnly,
html.is-auth:not(.is-auth-join) .au-joinOnly {
  display: none !important;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

@keyframes auth-pulse {
  0%, 100% { transform: scale(0.86); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes auth-float {
  0%, 100% { transform: translateY(10px); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .au-glow,
  .au-orbit,
  .au-stage {
    animation: none;
  }
}

@media (max-width: 800px) {
  html.is-auth {
    align-items: stretch;
    padding: 12px;
  }

  .au-shell {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 24px);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .au-panel {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    padding: 16px 18px;
    flex-direction: row;
    align-items: center;
  }

  .au-tools {
    grid-column: 1;
    grid-row: 2;
    padding: 16px 18px 6px;
  }

  .au-formPane {
    grid-column: 1;
    grid-row: 3;
  }

  .au-visual {
    display: none;
  }

  .au-copy {
    width: 100%;
  }

  .au-copy h2 {
    font-size: 18px;
  }
}

/* ===== auth/AuthForm.module.css (prefix .af-) ===== */
.af-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

.af-header {
  padding: 28px 0 12px;
}

.af-eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.af-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.af-desc {
  max-width: 42em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.7;
  word-break: keep-all;
}

.af-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
  padding-top: 28px;
}

.af-narrow {
  max-width: 520px;
}

.af-form {
  display: grid;
  gap: 18px;
}

.af-field {
  display: grid;
  gap: 8px;
}

.af-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.af-optional {
  color: var(--muted);
  font-weight: 600;
}

.af-input {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  font: inherit;
  font-size: 15px;
}

.af-inputInvalid {
  border-color: #c2410c;
}

.af-hint,
.af-error {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.af-hint {
  color: var(--muted);
}

.af-error {
  color: #c2410c;
}

.af-checkRow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.af-checkRow input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--ink);
}

.af-checkRow label {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.af-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
}

.af-links a {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.af-links a:hover,
.af-links a:focus-visible {
  color: var(--accent);
}

.af-signupLink {
  color: #153f73;
  font-weight: 900;
}

.af-identityBox {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.af-verifiedNote {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  word-break: keep-all;
}

.af-notice p {
  margin: 0;
}

.af-notice p + p {
  margin-top: 8px;
}

.af-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.af-submit,
.af-secondary,
.af-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.af-submit {
  color: var(--bg);
  background: var(--ink);
  border: 0;
  text-decoration: none;
}

.af-stepPane {
  padding-top: 28px;
}

.af-submit:disabled,
.af-secondary:disabled,
.af-danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.af-secondary {
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
}

.af-danger {
  color: var(--bg);
  background: var(--ink);
  border: 1px dashed #f59e0b;
}

.af-notice,
.af-bypass {
  margin: 0;
  padding: 14px 16px;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  word-break: keep-all;
}

.af-bypass {
  border-color: #f59e0b;
  background: rgb(245 158 11 / 0.08);
}

.af-bypass strong {
  display: block;
  margin-bottom: 6px;
  color: #92400e;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.af-side {
  padding: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.af-side h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.af-side p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}

.af-side a {
  color: var(--text);
  font-weight: 800;
}

.af-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.af-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
}

.af-step::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 28px;
  width: calc(100% - 16px);
  height: 1px;
  background: var(--border);
}

.af-step:last-child::after {
  display: none;
}

.af-stepCurrent,
.af-stepDone {
  color: var(--text);
}

.af-node {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.af-stepCurrent .af-node {
  color: var(--accent);
}

.af-stepTitle {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  word-break: keep-all;
}

.af-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.af-rules li {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.af-ruleMet {
  color: var(--text);
}

.af-consentList {
  display: grid;
  gap: 16px;
}

.af-consentBlock {
  padding: 4px 0 0;
}

.af-consentInvalid {
  padding-left: 12px;
  border-left: 2px solid #c2410c;
}

.af-consentCopy {
  min-width: 0;
  flex: 1;
}

.af-consentLabel {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
  cursor: pointer;
}

.af-requiredMark {
  color: var(--accent);
  font-weight: 700;
}

.af-consentMeta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.af-toggle {
  margin: 4px 0 0;
  min-height: 44px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.af-toggle:hover,
.af-toggle:focus-visible {
  color: var(--accent);
}

.af-full {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.af-full p,
.af-full a {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  word-break: keep-all;
}

.af-full a {
  color: var(--text);
  font-weight: 700;
}

.af-groupTitle {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.af-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  color: var(--bg);
  background: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 1023px) {
  .af-page {
    padding: 0 16px 64px;
  }

  .af-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .af-progress {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 24px;
    padding-left: 18px;
    border-left: 1px solid var(--border);
  }

  .af-step {
    padding: 0 0 24px 8px;
  }

  .af-step:last-child {
    padding-bottom: 0;
  }

  .af-step::after {
    display: none;
  }

  .af-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.af-stage {
  box-sizing: border-box;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 28px 20px;
}

.af-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1080px, 100%);
  min-height: min(760px, calc(100vh - 56px));
  overflow: hidden;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgb(18 36 74 / 0.12);
}

.af-tools {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px 28px 0;
}

.af-home {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.af-switch {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.af-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.af-switch a[aria-current='page'] {
  background: #153f73;
  color: #fff;
}

.af-formPane {
  min-width: 0;
  overflow: auto;
}

.af-formPane .af-page {
  max-width: none;
  padding: 8px 28px 32px;
}

.af-formPane .af-layout {
  grid-template-columns: 1fr;
  gap: 24px;
  padding-top: 8px;
}

.af-formPane .af-narrow {
  max-width: none;
}

.af-panel {
  min-width: 0;
  padding: 12px 32px 36px;
  background:
    radial-gradient(420px 240px at 100% 0%, rgb(86 189 182 / 0.28), transparent 70%),
    #f4f7fb;
}

.af-panelKicker {
  margin: 0 0 12px;
  color: #4873b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.af-panel h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.af-panel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  word-break: keep-all;
  white-space: pre-line;
}

.af-stage .af-input {
  border-radius: 12px;
}

.af-home:focus-visible,
.af-switch a:focus-visible,
.af-stage .af-links a:focus-visible,
.af-stage .af-input:focus-visible,
.af-stage .af-submit:focus-visible,
.af-stage .af-secondary:focus-visible,
.af-stage .af-toggle:focus-visible,
.af-panel:focus-visible {
  outline: 2px solid #153f73;
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .af-stage {
    align-items: stretch;
    min-height: 100vh;
    padding: 12px;
  }

  .af-card {
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: visible;
    border-radius: 18px;
  }

  .af-tools {
    padding: 16px 16px 0;
  }

  .af-switch {
    width: 100%;
    margin-left: 0;
  }

  .af-switch a {
    flex: 1;
    justify-content: center;
  }

  .af-formPane {
    overflow: visible;
  }

  .af-formPane .af-page {
    padding: 4px 16px 20px;
  }

  .af-panel {
    padding: 4px 16px 24px;
  }
}

html.is-auth .af-side {
  display: none !important;
}

html.is-auth .af-page {
  max-width: 560px;
  margin: 0;
  padding: 2px 32px 24px;
  background: transparent;
}

html.is-auth .af-header {
  padding: 2px 0 0;
}

html.is-auth .af-title {
  font-size: 30px;
  letter-spacing: -0.05em;
}

html.is-auth .af-desc {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.55;
}

html.is-auth .af-layout {
  display: block;
  padding-top: 8px;
}

html.is-auth .af-narrow,
html.is-auth .af-form {
  max-width: none;
}

html.is-auth .af-form,
html.is-auth form.af-form {
  gap: 12px;
}

html.is-auth .af-label {
  font-size: 13px;
}

html.is-auth .af-input {
  min-height: 46px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

html.is-auth .af-input:focus {
  background: #fff;
  border-color: #2f5bff;
  outline: 3px solid rgba(47, 91, 255, 0.16);
}

html.is-auth .af-progress {
  margin-top: 14px;
  gap: 8px;
}

html.is-auth .af-stepTitle {
  font-size: 13px;
}

html.is-auth .af-actions {
  display: flex;
  padding-top: 2px;
}

html.is-auth .af-actions .af-submit,
html.is-auth .af-actions .af-secondary {
  min-height: 46px;
  border-radius: 12px;
}

html.is-auth .af-actions .af-submit {
  flex: 1;
  width: auto;
  box-shadow: 0 10px 22px rgba(47, 91, 255, 0.24);
}

html.is-auth .af-links a {
  color: #2f5bff;
}

html.is-auth-join .af-groupTitle {
  margin: 12px 2px 0;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

html.is-auth-join .af-form > .af-checkRow {
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid #d5e0ff;
  border-radius: 14px;
  background: #eef2ff;
}

html.is-auth-join .af-form > .af-checkRow:has(input:checked) {
  border-color: #2f5bff;
  background: #e4ebff;
}

html.is-auth-join .af-form > .af-checkRow input,
html.is-auth-join .af-consentBlock input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #2f5bff;
}

html.is-auth-join .af-form > .af-checkRow label {
  font-size: 15px;
  font-weight: 800;
}

html.is-auth-join .af-consentList {
  gap: 8px;
}

html.is-auth-join .af-consentBlock {
  padding: 0;
  border: 1px solid #e4e9f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

html.is-auth-join .af-consentBlock:has(input:checked) {
  border-color: #b9c9ff;
  background: #f7f9ff;
}

html.is-auth-join .af-consentInvalid {
  padding-left: 0;
  border-color: #c2410c;
  background: #fff8f5;
}

html.is-auth-join .af-consentBlock .af-checkRow {
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

html.is-auth-join .af-consentCopy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: center;
}

html.is-auth-join .af-consentLabel {
  grid-column: 1;
  font-size: 14px;
  line-height: 1.35;
}

html.is-auth-join .af-requiredMark,
html.is-auth-join .af-consentLabel .af-optional {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  vertical-align: 1px;
}

html.is-auth-join .af-requiredMark {
  color: #2448d6;
  background: #e7edff;
}

html.is-auth-join .af-consentLabel .af-optional {
  color: #667085;
  background: #f2f4f8;
}

html.is-auth-join .af-consentMeta {
  grid-column: 1;
  margin: 2px 0 0;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

html.is-auth-join .af-toggle {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  border-radius: 999px;
  color: #2448d6;
  background: #f2f5ff;
  font-size: 12px;
  text-decoration: none;
}

html.is-auth-join .af-toggle:hover,
html.is-auth-join .af-toggle:focus-visible {
  background: #e4ebff;
  color: #1d3fbe;
}

html.is-auth-join .af-full {
  grid-column: 1 / -1;
  margin-top: 10px;
}

html.is-auth form.af-stepPane {
  padding-top: 6px;
  gap: 14px;
}

html.is-auth form.af-stepPane .af-hint,
html.is-auth form.af-stepPane .af-identityBox .af-verifiedNote {
  color: #667085;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  word-break: keep-all;
}

html.is-auth form.af-stepPane .af-rules {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

html.is-auth form.af-stepPane .af-rules li {
  min-height: 36px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #e7ecf4;
  border-radius: 10px;
  background: #f4f6fb;
  color: #475467;
  font-size: 12.5px;
  line-height: 1.35;
  display: flex;
  align-items: center;
}

html.is-auth form.af-stepPane .af-rules li.af-ruleMet {
  border-color: #abefc6;
  background: #ecfdf3;
  color: #067647;
}

html.is-auth form.af-stepPane .af-rules li:last-child {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 2px 2px 0;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
}

html.is-auth form.af-stepPane .af-identityBox {
  gap: 8px;
  margin-top: 2px;
  padding: 14px;
  border: 1px solid #d5e0ff;
  border-radius: 16px;
  background: linear-gradient(180deg, #f4f7ff 0%, #fff 72%);
}

html.is-auth form.af-stepPane .af-identityBox .af-actions {
  padding-top: 2px;
}

html.is-auth form.af-stepPane .af-identityBox .af-submit {
  width: 100%;
  min-height: 42px;
  color: #2448d6;
  background: #fff;
  border: 1px solid #c5d2ff;
  box-shadow: none;
}

html.is-auth form.af-stepPane .af-identityBox:has(.af-verifiedNote) {
  border-color: #abefc6;
  background: #f6fef9;
}

html.is-auth form.af-stepPane .af-identityBox:has(.af-verifiedNote) .af-submit {
  opacity: 1;
  color: #067647;
  background: #fff;
  border-color: #abefc6;
}

html.is-auth form.af-stepPane > .af-actions {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  padding-top: 4px;
}

html.is-auth form.af-stepPane > .af-actions > * {
  width: 100%;
}

html.is-auth form.af-stepPane > .af-actions .af-secondary {
  min-height: 46px;
  border-radius: 12px;
  color: #344054;
  background: #fff;
  border: 1px solid #e4e9f2;
  box-shadow: none;
}

@media (max-width: 800px) {
  html.is-auth .af-page {
    max-width: none;
    padding: 2px 18px 20px;
  }

  html.is-auth form.af-stepPane .af-rules {
    grid-template-columns: 1fr;
  }
}

/* ===== PHP port additions ===== */
html.is-auth .sh-chrome, html.is-auth .fm-overlay, html.is-auth .so-overlay, html.is-auth .sf-footer, html.is-auth .pf-section { display: none !important; }
html.is-auth .pl-main { display:flex; align-items:center; justify-content:center; min-height:0; height:100%; }

/* normal page mode (header/footer visible): card centred in the content area */
.au-wrap{display:flex;justify-content:center;padding:48px 20px 72px;background:radial-gradient(900px 520px at 50% -12%,rgba(47,91,255,.14),transparent 58%),#f3f6fd}
.au-wrap .au-shell{height:auto;min-height:0}
.au-wrap .au-tools{padding-top:28px}
.au-wrap .au-formPane{padding-top:8px}
@media (width <= 900px){.au-wrap{padding:16px 12px 40px}.au-wrap .au-shell{grid-template-columns:1fr;grid-template-rows:auto auto auto}.au-wrap .au-panel{grid-column:1;grid-row:3;min-height:0}}

/* ===== PHP port additions: form helpers ===== */
.af-phone{display:flex;align-items:center;gap:8px}.af-phone .af-input{min-width:0;text-align:center}.af-phone span{color:var(--muted)}
.af-inline{display:flex;gap:8px}.af-inline .af-input{flex:1;min-width:0}.af-inline .af-secondary{flex:none;white-space:nowrap;padding:0 16px}
.af-captcha{height:44px;border:1px solid #e4e7ec;border-radius:10px;cursor:pointer}
.af-status{display:block;margin-top:6px;font-size:13px}.af-status .fcblue{color:#2f5bff}.af-status .fcred{color:#d82020}
.af-consentAll{font-size:16px}
.af-consentItem{position:relative;padding:12px 0;border-top:1px solid #eef0f4}
.af-consentItem .af-consentMore{position:absolute;right:0;top:12px;padding:4px 8px;border:0;background:transparent;color:#667085;font-size:13px;font-weight:700;cursor:pointer}
.af-consentText{max-height:220px;overflow:auto;margin-top:10px;padding:12px 14px;border:1px solid #e4e7ec;border-radius:10px;background:#f8fafc;font-size:13px;line-height:1.6;color:#475467}
.af-consentSub{display:flex;gap:18px;margin-top:8px;padding-left:28px;font-size:14px}
.af-consentMeta{margin:4px 0 0 28px;color:#b54708;font-size:13px}
.af-actions .af-secondary{margin-top:8px}

/* ===== 2026-10 restyle (matches the site header): one source of truth for the member card.
   Prefixed `html .au-wrap .au-shell` so it outranks the older is-auth / is-auth-join layers above. ===== */
.au-wrap {
  padding: 56px 20px 88px;
  background:
    radial-gradient(760px 420px at 18% -10%, rgb(47 91 255 / 0.10), transparent 62%),
    radial-gradient(640px 380px at 100% 0%, rgb(109 139 255 / 0.10), transparent 60%),
    #f6f8fb;
}

html .au-wrap .au-shell {
  width: min(1080px, 100%);
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  border: 1px solid #e6e9ef;
  border-radius: 24px;
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.04), 0 24px 56px -12px rgb(18 32 80 / 0.14);
}

/* login / join switch — segmented, same language as the header */
html .au-wrap .au-shell .au-tools {
  padding: 36px 52px 0;
}

html .au-wrap .au-shell .au-switch {
  width: min(320px, 100%);
  padding: 4px;
  gap: 2px;
  border-radius: 12px;
  background: #f2f4f7;
}

html .au-wrap .au-shell .au-switch a {
  min-height: 38px;
  border-radius: 9px;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.15s ease, background 0.15s ease;
}

html .au-wrap .au-shell .au-switch a:hover {
  color: #12141a;
}

html .au-wrap .au-shell .au-switch a[aria-current="page"] {
  color: #12141a;
  background: #fff;
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.08), 0 2px 8px rgb(16 24 40 / 0.05);
}

html .au-wrap .au-shell .au-switch a:focus-visible {
  outline: 2px solid #2f5bff;
  outline-offset: 1px;
}

html .au-wrap .au-shell .au-formPane {
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

html .au-wrap .au-shell .af-page {
  width: 100%;
  max-width: 500px;
  margin: 0;
  padding: 32px 52px 52px;
}

html.is-auth-join .au-wrap .au-shell .af-page {
  max-width: 580px;
}

/* heading */
html .au-wrap .au-shell .af-header {
  padding: 0 0 8px;
}

html .au-wrap .au-shell .af-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #2f5bff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

html .au-wrap .au-shell .af-title {
  color: #12141a;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

html .au-wrap .au-shell .af-desc {
  margin-top: 8px;
  color: #667085;
  font-size: 15px;
  line-height: 1.6;
}

/* fields */
html .au-wrap .au-shell .af-form {
  gap: 18px;
  padding-top: 20px;
}

html .au-wrap .au-shell .af-field {
  gap: 8px;
}

html .au-wrap .au-shell .af-label {
  color: #344054;
  font-size: 13.5px;
  font-weight: 700;
}

html .au-wrap .au-shell .af-input {
  min-height: 48px;
  padding: 0 14px;
  color: #12141a;
  background: #fff;
  border: 1px solid #d9dee6;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.04);
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html .au-wrap .au-shell .af-input::placeholder {
  color: #98a2b3;
}

html .au-wrap .au-shell .af-input:hover {
  border-color: #c4cad4;
}

html .au-wrap .au-shell .af-input:focus {
  outline: none;
  border-color: #2f5bff;
  box-shadow: 0 0 0 4px rgb(47 91 255 / 0.14);
}

html .au-wrap .au-shell .af-inputInvalid,
html .au-wrap .au-shell .af-inputInvalid:focus {
  border-color: #d92d20;
  box-shadow: 0 0 0 4px rgb(217 45 32 / 0.10);
}

html .au-wrap .au-shell .af-error {
  color: #d92d20;
  font-size: 12.5px;
}

html .au-wrap .au-shell .af-hint {
  color: #667085;
  font-size: 13px;
  font-weight: 500;
}

/* password with show/hide */
.af-pwWrap {
  position: relative;
}

html .au-wrap .au-shell .af-pwWrap .af-input {
  padding-right: 52px;
}

.af-pwToggle {
  position: absolute;
  top: 50%;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  transform: translateY(-50%);
}

.af-pwToggle:hover {
  color: #12141a;
  background: #f2f4f7;
}

.af-pwToggle:focus-visible {
  outline: 2px solid #2f5bff;
  outline-offset: -2px;
}

/* checkboxes — custom, accent filled */
html .au-wrap .au-shell input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid #c4cad4;
  border-radius: 6px;
  background: #fff center / 14px no-repeat;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

html .au-wrap .au-shell input[type="checkbox"]:hover {
  border-color: #2f5bff;
}

html .au-wrap .au-shell input[type="checkbox"]:checked {
  border-color: #2f5bff;
  background-color: #2f5bff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html .au-wrap .au-shell input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgb(47 91 255 / 0.18);
}

/* 아이디 저장 + find links on one row */
.af-optionRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

html .au-wrap .au-shell .af-checkRow {
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

html .au-wrap .au-shell .af-checkRow label {
  color: #344054;
  font-size: 14px;
  font-weight: 600;
}

.af-findLinks {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.af-findLinks a {
  padding: 4px 6px;
  border-radius: 6px;
  color: #475467;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.af-findLinks a:hover,
.af-findLinks a:focus-visible {
  color: #12141a;
  background: #f2f4f7;
}

.af-findLinks span {
  color: #d0d5dd;
  font-size: 12px;
}

/* buttons */
html .au-wrap .au-shell .af-actions {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}

html .au-wrap .au-shell .af-submit,
html .au-wrap .au-shell .af-secondary {
  min-height: 50px;
  margin: 0;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

html .au-wrap .au-shell .af-submit {
  flex: 1;
  color: #fff;
  background: #12141a;
  border: 0;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 8px 18px -6px rgb(18 20 26 / 0.4);
}

html .au-wrap .au-shell .af-submit:hover,
html .au-wrap .au-shell .af-submit:focus-visible {
  background: #2f5bff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), 0 10px 22px -6px rgb(47 91 255 / 0.5);
}

html .au-wrap .au-shell .af-secondary {
  flex: 1;
  color: #12141a;
  background: #fff;
  border: 1px solid #d0d5dd;
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.05);
}

html .au-wrap .au-shell .af-secondary:hover,
html .au-wrap .au-shell .af-secondary:focus-visible {
  background: #f9fafb;
  border-color: #98a2b3;
}

html .au-wrap .au-shell .af-submit:focus-visible,
html .au-wrap .au-shell .af-secondary:focus-visible {
  outline: 2px solid #2f5bff;
  outline-offset: 2px;
}

/* secondary links (find pages) and the sign-up prompt */
html .au-wrap .au-shell .af-links {
  gap: 4px 16px;
}

html .au-wrap .au-shell .af-links a {
  color: #475467;
  font-size: 14px;
  font-weight: 600;
}

html .au-wrap .au-shell .af-links a:hover {
  color: #2f5bff;
}

.af-signupCta {
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid #eef0f3;
  color: #667085;
  font-size: 14px;
  text-align: center;
}

.af-signupCta a {
  margin-left: 6px;
  color: #2f5bff;
  font-weight: 700;
  text-decoration: none;
}

.af-signupCta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- join: consents ---- */
html .au-wrap .au-shell .af-consentBlock {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

html .au-wrap .au-shell .af-consentAll {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #d5e0ff;
  border-radius: 12px;
  background: #f5f8ff;
  color: #12141a;
  font-size: 15px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

html .au-wrap .au-shell .af-consentAll b {
  font-weight: 800;
}

html .au-wrap .au-shell .af-consentAll:has(input:checked) {
  border-color: #2f5bff;
  background: #eef2ff;
}

html .au-wrap .au-shell .af-consentList {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  overflow: hidden;
}

html .au-wrap .au-shell .af-consentItem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 13px 12px 13px 16px;
  border-top: 1px solid #eef0f3;
}

html .au-wrap .au-shell .af-consentItem:first-child {
  border-top: 0;
}

html .au-wrap .au-shell .af-consentItem .af-consentLabel {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

html .au-wrap .au-shell .af-consentItem .af-consentMore {
  position: static;
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px 0 10px;
  border-radius: 8px;
  color: #667085;
  font-size: 12.5px;
  font-weight: 600;
}

html .au-wrap .au-shell .af-consentItem .af-consentMore::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

html .au-wrap .au-shell .af-consentItem .af-consentMore[aria-expanded="true"]::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

html .au-wrap .au-shell .af-consentItem .af-consentMore:hover,
html .au-wrap .au-shell .af-consentItem .af-consentMore:focus-visible {
  color: #12141a;
  background: #f2f4f7;
}

html .au-wrap .au-shell .af-requiredMark,
html .au-wrap .au-shell .af-optional {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: 1px;
}

html .au-wrap .au-shell .af-requiredMark {
  color: #2448d6;
  background: #eef2ff;
}

html .au-wrap .au-shell .af-optional {
  color: #667085;
  background: #f2f4f7;
}

html .au-wrap .au-shell .af-consentItem .af-consentMeta {
  grid-column: 1 / -1;
  margin: 4px 0 0 30px;
  color: #b54708;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
}

html .au-wrap .au-shell .af-consentItem .af-consentText {
  grid-column: 1 / -1;
  margin: 12px 0 2px;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: #f6f8fb;
  color: #475467;
  font-size: 13px;
  line-height: 1.7;
}

html .au-wrap .au-shell .af-consentSub {
  grid-column: 1 / -1;
  gap: 20px;
  margin-top: 10px;
  padding-left: 30px;
}

html .au-wrap .au-shell .af-consentSub label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475467;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

/* ---- side panel: deep navy → accent, content centred, no dead space ---- */
html .au-wrap .au-shell .au-panel {
  justify-content: center;
  gap: 36px;
  padding: 48px 40px;
  background:
    radial-gradient(520px 360px at 90% 0%, rgb(255 255 255 / 0.22), transparent 62%),
    radial-gradient(420px 320px at 0% 100%, rgb(23 56 214 / 0.45), transparent 60%),
    linear-gradient(160deg, #4470ff 0%, #2f5bff 50%, #2149f0 100%);
}

html .au-wrap .au-shell .au-panel::before {
  opacity: 0.18;
}

html .au-wrap .au-shell .au-visual {
  flex: none;
  min-height: 300px;
}

html .au-wrap .au-shell .au-orbit {
  border-color: rgb(255 255 255 / 0.28);
}

html .au-wrap .au-shell .au-glow {
  background: radial-gradient(circle, rgb(140 165 255 / 0.55), rgb(140 165 255 / 0) 68%);
}

html .au-wrap .au-shell .au-card {
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 0.6);
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgb(6 12 40 / 0.5);
}

html .au-wrap .au-shell .au-cardTitle {
  color: #12141a;
  font-size: 15px;
}

html .au-wrap .au-shell .au-steps .au-cardTitle {
  font-size: 18px;
}

html .au-wrap .au-shell .au-card li {
  color: #475467;
  font-size: 13px;
}

/* join rail: the shell marks the current step with aria-current; earlier steps read as done */
html .au-wrap .au-shell .au-rail li[aria-current="step"] {
  background: #f3f6ff;
}

html .au-wrap .au-shell .au-rail li[aria-current="step"] .au-railNo {
  background: #2f5bff;
  color: #fff;
  box-shadow: 0 6px 14px -4px rgb(47 91 255 / 0.55);
}

html .au-wrap .au-shell .au-rail li:has(~ li[aria-current="step"]) .au-railNo {
  background: #12141a;
  color: #fff;
}

html .au-wrap .au-shell .au-copy h2 {
  font-size: 22px;
  letter-spacing: -0.04em;
}

html .au-wrap .au-shell .au-copy p {
  color: rgb(255 255 255 / 0.78);
  font-size: 13.5px;
  line-height: 1.65;
}

@media (width <= 900px) {
  .au-wrap {
    padding: 16px 12px 40px;
  }

  html .au-wrap .au-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    height: auto;
    max-height: none;
    border-radius: 18px;
  }

  html .au-wrap .au-shell .au-tools {
    grid-column: 1;
    grid-row: 1;
  }

  html .au-wrap .au-shell .au-formPane {
    grid-column: 1;
    grid-row: 2;
    overflow: visible;
  }

  html .au-wrap .au-shell .au-panel {
    grid-column: 1;
    grid-row: 3;
  }

  html .au-wrap .au-shell .au-tools {
    padding: 20px 20px 0;
  }

  html .au-wrap .au-shell .au-switch {
    width: 100%;
  }

  html .au-wrap .au-shell .af-page,
  html.is-auth-join .au-wrap .au-shell .af-page {
    max-width: none;
    padding: 24px 20px 32px;
  }

  html .au-wrap .au-shell .af-title {
    font-size: 26px;
  }

  html .au-wrap .au-shell .au-panel {
    gap: 0;
    padding: 24px 20px;
  }

  html .au-wrap .au-shell .au-visual {
    display: none;
  }

  html.is-auth-join .au-wrap .au-shell .af-actions {
    flex-direction: column;
  }
}
