:root {
  --ps-auth-bg: #f4f7fb;
  --ps-auth-surface: #ffffff;
  --ps-auth-surface-soft: #eef4f8;
  --ps-auth-text: #0b1426;
  --ps-auth-muted: #647086;
  --ps-auth-border: #dce4ee;
  --ps-auth-primary: #0a9fc4;
  --ps-auth-primary-strong: #087d9b;
  --ps-auth-primary-soft: #e4f7fb;
  --ps-auth-danger: #b93845;
  --ps-auth-success: #176b4d;
  --ps-auth-shadow: 0 24px 70px rgba(22, 43, 78, .12);
  color-scheme: light;
}

html[data-theme="dark"] {
  --ps-auth-bg: #07111f;
  --ps-auth-surface: #0d1929;
  --ps-auth-surface-soft: #122236;
  --ps-auth-text: #f4f8fc;
  --ps-auth-muted: #a7b3c5;
  --ps-auth-border: #26394f;
  --ps-auth-primary: #32c7e7;
  --ps-auth-primary-strong: #65d8ee;
  --ps-auth-primary-soft: #0d3542;
  --ps-auth-danger: #ff8994;
  --ps-auth-success: #6ed4ab;
  --ps-auth-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: var(--ps-auth-bg); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--ps-auth-bg);
  color: var(--ps-auth-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.ps-identity-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(520px, 1.02fr) minmax(560px, .98fr);
  background: var(--ps-auth-bg);
}

.ps-identity-visual {
  position: sticky;
  top: 0;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  padding: 34px clamp(34px, 4.2vw, 70px) 30px;
  display: flex;
  flex-direction: column;
  color: #f6fbff;
  background:
    radial-gradient(circle at 17% 17%, rgba(10, 159, 196, .30), transparent 28rem),
    radial-gradient(circle at 84% 74%, rgba(50, 199, 231, .14), transparent 26rem),
    linear-gradient(145deg, #06111f 0%, #091a2d 58%, #06111f 100%);
  border-right: 1px solid rgba(255,255,255,.08);
}

.ps-identity-grid {
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.15));
  pointer-events: none;
}

.ps-identity-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}
.ps-identity-glow--one {
  width: 420px;
  height: 420px;
  right: -220px;
  top: 16%;
  border: 1px solid rgba(50,199,231,.18);
  box-shadow: 0 0 130px rgba(10,159,196,.12) inset;
}
.ps-identity-glow--two {
  width: 250px;
  height: 250px;
  left: -145px;
  bottom: 4%;
  border: 1px solid rgba(255,255,255,.08);
}

.ps-identity-visual-top,
.ps-identity-mobile-top,
.ps-identity-main-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ps-identity-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}
.ps-identity-logo img {
  display: block;
  width: 150px;
  max-height: 44px;
  object-fit: contain;
}
.ps-identity-logo--dark img {
  filter: drop-shadow(0 5px 20px rgba(0,0,0,.12));
}

.ps-identity-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 730;
  backdrop-filter: blur(16px);
}
.ps-identity-secure-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65d8ee;
  box-shadow: 0 0 0 5px rgba(101,216,238,.10), 0 0 16px rgba(101,216,238,.5);
}

.ps-identity-story {
  position: relative;
  z-index: 2;
  width: min(650px, 100%);
  margin: auto 0;
  padding: 34px 0 24px;
}
.ps-identity-kicker {
  margin-bottom: 13px;
  color: #6ddbf0;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ps-identity-story h1 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(44px, 4.4vw, 70px);
  line-height: .98;
  letter-spacing: -.052em;
  font-weight: 790;
}
.ps-identity-story h1 strong {
  display: inline-block;
  color: #65d8ee;
  font-weight: 790;
}
.ps-identity-story > p {
  max-width: 565px;
  margin: 20px 0 0;
  color: rgba(231,243,253,.70);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
}

.ps-identity-live {
  position: relative;
  margin-top: 32px;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  box-shadow: 0 30px 80px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(22px);
}
.ps-identity-live::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(50,199,231,.10), transparent 45%);
  pointer-events: none;
}
.ps-identity-live-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 20px 0;
}
.ps-identity-live-head small {
  display: block;
  color: rgba(255,255,255,.46);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.ps-identity-live-head b {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.9);
  font-size: 13px;
}
.ps-identity-live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(10,159,196,.12);
  color: #73e1f3;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.ps-identity-live-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(115,225,243,.10);
}

.ps-identity-live-stage {
  position: relative;
  height: 236px;
}
.ps-identity-orb-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -48%);
  display: grid;
  place-items: center;
}
.ps-identity-orb {
  position: relative;
  z-index: 3;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  box-shadow: 0 20px 50px rgba(0,0,0,.28), 0 0 38px rgba(50,199,231,.18);
  animation: ps-auth-orb-float 4.6s ease-in-out infinite;
}
.ps-identity-orb img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.20));
}
.ps-identity-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(101,216,238,.26);
  animation: ps-auth-ring 4.2s ease-out infinite;
}
.ps-identity-orb-ring--inner {
  inset: 18px;
  animation-delay: -1.2s;
}

.ps-identity-feature {
  position: absolute;
  z-index: 2;
  min-width: 145px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 15px;
  background: rgba(5,18,32,.70);
  color: rgba(255,255,255,.68);
  box-shadow: 0 14px 36px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
  transition: transform .35s ease, border-color .35s ease, background .35s ease, color .35s ease, box-shadow .35s ease;
}
.ps-identity-feature.is-active {
  transform: translateY(-3px) scale(1.025);
  border-color: rgba(101,216,238,.42);
  background: rgba(10,159,196,.18);
  color: #f5fdff;
  box-shadow: 0 18px 42px rgba(0,0,0,.22), 0 0 26px rgba(50,199,231,.08);
}
.ps-identity-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255,255,255,.07);
  color: #67daef;
  font-size: 9px;
  font-weight: 850;
}
.ps-identity-feature small {
  display: block;
  color: rgba(255,255,255,.44);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ps-identity-feature b {
  display: block;
  margin-top: 3px;
  color: inherit;
  font-size: 11px;
  white-space: nowrap;
}
.ps-identity-feature--courses { left: 3%; top: 21%; }
.ps-identity-feature--lerion { right: 2%; top: 16%; }
.ps-identity-feature--mission { left: 6%; bottom: 6%; }
.ps-identity-feature--campus { right: 4%; bottom: 9%; }

.ps-identity-live-foot {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 0 20px 19px;
  color: rgba(255,255,255,.47);
  font-size: 10px;
}
.ps-identity-live-foot span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ps-identity-live-foot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(101,216,238,.8);
}

.ps-identity-visual-foot {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0;
  color: rgba(255,255,255,.42);
  font-size: 11px;
  line-height: 1.5;
}

.ps-identity-main {
  min-width: 0;
  min-height: 100dvh;
  padding: 26px clamp(30px, 5vw, 82px) 34px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--ps-auth-primary) 8%, transparent), transparent 26rem),
    var(--ps-auth-bg);
}
.ps-identity-main-top {
  min-height: 42px;
}
.ps-identity-main-label {
  color: var(--ps-auth-muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.ps-identity-mobile-top { display: none; }

.ps-identity-theme {
  width: 39px;
  height: 39px;
  border: 1px solid var(--ps-auth-border);
  border-radius: 12px;
  background: var(--ps-auth-surface);
  color: var(--ps-auth-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}
.ps-identity-theme:hover {
  transform: translateY(-1px);
  border-color: var(--ps-auth-primary);
  color: var(--ps-auth-primary-strong);
}
.ps-identity-theme svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.ps-identity-card {
  width: min(540px, 100%);
  margin: auto;
  padding: 30px 0 8px;
}

.ps-identity-tabs {
  width: 100%;
  margin-bottom: 30px;
  padding: 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border: 1px solid var(--ps-auth-border);
  border-radius: 16px;
  background: var(--ps-auth-surface-soft);
}
.ps-identity-tabs button {
  min-height: 43px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ps-auth-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  transition: background .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.ps-identity-shell[data-initial-mode="login"] .ps-identity-tabs button[data-auth-mode-target="login"],
.ps-identity-shell[data-initial-mode="register"] .ps-identity-tabs button[data-auth-mode-target="register"] {
  background: var(--ps-auth-surface);
  color: var(--ps-auth-text);
  box-shadow: 0 3px 13px rgba(18, 35, 61, .08), inset 0 0 0 1px color-mix(in srgb, var(--ps-auth-border) 82%, transparent);
}

.ps-identity-shell[data-initial-mode="login"] [data-auth-panel="register"],
.ps-identity-shell[data-initial-mode="register"] [data-auth-panel="login"] {
  display: none;
}

.ps-identity-panel {
  animation: ps-auth-panel-in .28s ease both;
}
.ps-identity-heading { margin-bottom: 24px; }
.ps-identity-heading > span {
  display: block;
  margin-bottom: 8px;
  color: var(--ps-auth-primary-strong);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.ps-identity-heading h2 {
  margin: 0;
  font-size: clamp(31px, 3.1vw, 43px);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 790;
}
.ps-identity-heading p {
  max-width: 500px;
  margin: 11px 0 0;
  color: var(--ps-auth-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ps-identity-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--ps-auth-border);
  border-radius: 13px;
  background: var(--ps-auth-surface);
  font-size: 12px;
  line-height: 1.5;
}
.ps-identity-alert--error {
  border-color: color-mix(in srgb, var(--ps-auth-danger) 34%, var(--ps-auth-border));
  color: var(--ps-auth-danger);
}
.ps-identity-alert--success {
  border-color: color-mix(in srgb, var(--ps-auth-success) 34%, var(--ps-auth-border));
  color: var(--ps-auth-success);
}
.ps-identity-alert ul { margin: 0; padding-left: 18px; }

.ps-identity-google {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--ps-auth-border);
  border-radius: 13px;
  background: var(--ps-auth-surface);
  color: var(--ps-auth-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 760;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ps-identity-google:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ps-auth-primary) 58%, var(--ps-auth-border));
  box-shadow: 0 8px 24px rgba(10,159,196,.08);
}
.ps-identity-google svg { width: 19px; height: 19px; flex: 0 0 auto; }

.ps-identity-divider {
  margin: 18px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ps-auth-muted);
  font-size: 9px;
  font-weight: 830;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.ps-identity-divider::before,
.ps-identity-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--ps-auth-border);
}

.ps-identity-field {
  display: block;
  margin-bottom: 15px;
}
.ps-identity-field > span:first-child,
.ps-identity-field > .ps-identity-field-row {
  margin-bottom: 7px;
  color: var(--ps-auth-text);
  font-size: 12px;
  font-weight: 750;
}
.ps-identity-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ps-identity-field-row b { font-weight: 750; }
.ps-identity-field-row a {
  color: var(--ps-auth-primary-strong);
  text-decoration: none;
  font-weight: 680;
}
.ps-identity-field input[type="text"],
.ps-identity-field input[type="email"],
.ps-identity-field input[type="password"] {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--ps-auth-border);
  border-radius: 13px;
  outline: 0;
  background: var(--ps-auth-surface);
  color: var(--ps-auth-text);
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ps-identity-field select {
  width: 100%;
  min-height: 52px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--ps-auth-border);
  border-radius: 13px;
  outline: 0;
  background:
    linear-gradient(45deg, transparent 50%, var(--ps-auth-muted) 50%) calc(100% - 18px) 22px/5px 5px no-repeat,
    linear-gradient(135deg, var(--ps-auth-muted) 50%, transparent 50%) calc(100% - 13px) 22px/5px 5px no-repeat,
    var(--ps-auth-surface);
  color: var(--ps-auth-text);
  font-size: 14px;
  appearance: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.ps-identity-field select:focus {
  border-color: var(--ps-auth-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ps-auth-primary) 13%, transparent);
}
.ps-identity-field select:disabled {
  cursor: not-allowed;
  opacity: .58;
  background-color: var(--ps-auth-surface-soft);
}
.ps-identity-waitlist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ps-identity-field input:focus {
  border-color: var(--ps-auth-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ps-auth-primary) 13%, transparent);
}
.ps-identity-field input[readonly] {
  background: var(--ps-auth-surface-soft);
  color: var(--ps-auth-muted);
}
.ps-identity-field small,
.ps-identity-standalone-error {
  display: block;
  margin-top: 6px;
  color: var(--ps-auth-danger);
  font-size: 11px;
  line-height: 1.45;
}
.ps-identity-field em {
  display: block;
  margin-top: 6px;
  color: var(--ps-auth-muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
}

.ps-identity-password-wrap {
  position: relative;
  display: block;
}
.ps-identity-password-wrap input { padding-right: 46px !important; }
.ps-identity-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ps-auth-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ps-identity-password-toggle:hover { background: var(--ps-auth-surface-soft); }
.ps-identity-password-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.ps-identity-password-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ps-identity-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 2px 0 18px;
  color: var(--ps-auth-muted);
  font-size: 11px;
  line-height: 1.5;
}
.ps-identity-check input {
  margin: 2px 0 0;
  accent-color: var(--ps-auth-primary);
}
.ps-identity-check button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ps-auth-primary-strong);
  cursor: pointer;
  font-weight: 720;
}
.ps-identity-check button:hover { text-decoration: underline; }

.ps-identity-primary {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--ps-auth-primary), var(--ps-auth-primary-strong));
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 810;
  box-shadow: 0 12px 30px rgba(10,159,196,.18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.ps-identity-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(10,159,196,.24);
  filter: saturate(1.04);
}
.ps-identity-primary:active { transform: translateY(0); }
.ps-identity-primary svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps-identity-switch-copy {
  margin: 18px 0 0;
  text-align: center;
  color: var(--ps-auth-muted);
  font-size: 12px;
}
.ps-identity-switch-copy button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ps-auth-primary-strong);
  cursor: pointer;
  font-weight: 780;
}
.ps-identity-switch-copy button:hover { text-decoration: underline; }

.ps-identity-footer {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ps-auth-muted);
  font-size: 10px;
}
.ps-identity-footer button,
.ps-identity-footer a {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.ps-identity-footer button:hover,
.ps-identity-footer a:hover { color: var(--ps-auth-primary-strong); }

.ps-identity-invite {
  margin-bottom: 18px;
  padding: 14px 15px;
  border: 1px solid color-mix(in srgb, var(--ps-auth-success) 28%, var(--ps-auth-border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--ps-auth-success) 7%, var(--ps-auth-surface));
}
.ps-identity-invite span,
.ps-identity-invite small {
  display: block;
  color: var(--ps-auth-muted);
  font-size: 10px;
}
.ps-identity-invite b {
  display: block;
  margin: 4px 0 3px;
  font-size: 13px;
}

.ps-identity-access-card {
  margin-bottom: 18px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid var(--ps-auth-border);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--ps-auth-surface), color-mix(in srgb, var(--ps-auth-primary-soft) 45%, var(--ps-auth-surface)));
}
.ps-identity-access-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--ps-auth-primary-soft);
  color: var(--ps-auth-primary-strong);
  font-size: 16px;
}
.ps-identity-access-card small {
  color: var(--ps-auth-primary-strong);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ps-identity-access-card h3 {
  margin: 4px 0 5px;
  font-size: 16px;
  line-height: 1.3;
}
.ps-identity-access-card p {
  margin: 0;
  color: var(--ps-auth-muted);
  font-size: 11px;
  line-height: 1.55;
}
.ps-identity-waitlist-form { margin-top: 4px; }
.ps-identity-approved-access,
.ps-identity-back-waitlist {
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--ps-auth-primary-strong);
  cursor: pointer;
  font-size: 11px;
  font-weight: 740;
}
.ps-identity-approved-access:hover,
.ps-identity-back-waitlist:hover { text-decoration: underline; }
.ps-identity-back-waitlist { width: auto; margin: -4px 0 12px; padding: 0; }

.ps-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.ps-legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 18, .62);
  backdrop-filter: blur(10px);
}
.ps-legal-sheet {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  max-height: min(820px, calc(100dvh - 48px));
  overflow: hidden;
  border: 1px solid var(--ps-auth-border);
  border-radius: 22px;
  background: var(--ps-auth-surface);
  color: var(--ps-auth-text);
  box-shadow: 0 32px 100px rgba(0,0,0,.28);
  display: flex;
  flex-direction: column;
  animation: ps-auth-modal-in .22s ease both;
}
.ps-legal-sheet > header {
  padding: 19px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--ps-auth-border);
}
.ps-legal-sheet > header small {
  display: block;
  margin-bottom: 3px;
  color: var(--ps-auth-primary-strong);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.ps-legal-sheet > header h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -.02em;
}
.ps-legal-sheet > header button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ps-auth-border);
  border-radius: 11px;
  background: var(--ps-auth-surface-soft);
  color: var(--ps-auth-muted);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}
.ps-legal-content {
  overflow: auto;
  padding: 21px 22px 28px;
  overscroll-behavior: contain;
}
.ps-legal-summary {
  margin: 0 0 6px;
  color: var(--ps-auth-text);
  font-size: 13px;
  line-height: 1.65;
}
.ps-legal-updated {
  margin: 0 0 24px;
  color: var(--ps-auth-muted);
  font-size: 10px;
}
.ps-legal-content section + section { margin-top: 22px; }
.ps-legal-content h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
}
.ps-legal-content section p {
  margin: 7px 0 0;
  color: var(--ps-auth-muted);
  font-size: 12px;
  line-height: 1.7;
}
body.ps-legal-open { overflow: hidden; }

/* Shared baseline retained for the institution-invitation page that also loads this stylesheet. */
.ps-invite-shell { color: var(--ps-auth-text); }

@keyframes ps-auth-orb-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(1.4deg); }
}
@keyframes ps-auth-ring {
  0% { opacity: .56; transform: scale(.86); }
  65% { opacity: .12; transform: scale(1.10); }
  100% { opacity: 0; transform: scale(1.18); }
}
@keyframes ps-auth-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ps-auth-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1180px) {
  .ps-identity-shell { grid-template-columns: minmax(455px, .92fr) minmax(520px, 1.08fr); }
  .ps-identity-visual { padding-left: 38px; padding-right: 38px; }
  .ps-identity-feature { min-width: 132px; }
  .ps-identity-feature--courses { left: 1%; }
  .ps-identity-feature--lerion { right: 0; }
  .ps-identity-feature--mission { left: 3%; }
  .ps-identity-feature--campus { right: 1%; }
}

@media (max-width: 980px) {
  .ps-identity-shell { display: block; }
  .ps-identity-visual { display: none; }
  .ps-identity-main {
    min-height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
  }
  .ps-identity-main-top { display: none; }
  .ps-identity-mobile-top { display: flex; margin-bottom: 28px; }
  .ps-identity-card { margin: 0 auto; padding-top: 0; }
}

@media (max-width: 600px) {
  .ps-identity-waitlist-grid { grid-template-columns: 1fr; }

  .ps-identity-main { padding-left: 17px; padding-right: 17px; }
  .ps-identity-logo img { width: 138px; }
  .ps-identity-mobile-top { margin-bottom: 24px; }
  .ps-identity-card { width: 100%; }
  .ps-identity-tabs { margin-bottom: 24px; border-radius: 14px; }
  .ps-identity-tabs button { min-height: 41px; }
  .ps-identity-heading h2 { font-size: 31px; }
  .ps-identity-heading p { font-size: 13px; }
  .ps-identity-password-grid { grid-template-columns: 1fr; gap: 0; }
  .ps-legal-modal { padding: 0; place-items: end center; }
  .ps-legal-sheet {
    width: 100%;
    max-height: 90dvh;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
