.pa {
  --pa-text: #221838;
  --pa-muted: #625873;
  --pa-surface: #fff;
  --pa-input: #fcfaff;
  --pa-soft: #f4edfd;
  --pa-border: #ded2ed;
  --pa-control: #bdb0cf;
  --pa-link: #6128a8;
  --pa-primary: #692dc4;
  --pa-hover: #54209e;
  --pa-focus: #7a3cce;
  --pa-error-bg: #fff1f2;
  --pa-error-text: #952536;
  --pa-success-bg: #ecfbf4;
  --pa-success-text: #1a6546;
  --pa-shadow: 0 20px 58px #42226b15;
  width: min(1100px, 100%);
  margin: 34px auto 42px;
  display: grid;
  align-items: stretch;
  gap: 18px;
  color: var(--pa-text);
  font-size: .94rem;
  line-height: 1.55;
}
html[data-theme="dark"] .pa {
  color-scheme: dark;
  --pa-text: #f5edff;
  --pa-muted: #cec0e0;
  --pa-surface: #211831;
  --pa-input: #2b2040;
  --pa-soft: #302244;
  --pa-border: #463657;
  --pa-control: #826c9a;
  --pa-link: #d8b7ff;
  --pa-primary: #8350d0;
  --pa-hover: #7240b8;
  --pa-focus: #ceabff;
  --pa-error-bg: #452333;
  --pa-error-text: #ffd0d9;
  --pa-success-bg: #19382e;
  --pa-success-text: #aff3d4;
  --pa-shadow: 0 20px 58px #09051050;
}
.pa *, .pa *::before, .pa *::after { box-sizing: border-box; }
.pa [hidden] { display: none !important; }
.pa :where(button, input, select) { font: inherit; }
.pa :where(a, button, input, select):focus-visible {
  outline: 3px solid var(--pa-focus);
  outline-offset: 3px;
}
.pa a { color: var(--pa-link); font-weight: 700; text-underline-offset: .19em; }
.pa :where(h1,h2,p,ul) { margin: 0; }
.pa-login { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.pa-register { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); align-items: start; }
.pa-card, .pa-feature { min-width: 0; border-radius: 24px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--pa-shadow); }
.pa-card { background: var(--pa-surface); border: 1px solid var(--pa-border); }
.pa-signin { display: flex; flex-direction: column; justify-content: center; }
.pa-card-top { margin-bottom: 17px; }
.pa-portal-mark {
  display: inline-flex; align-items: end; gap: 4px; padding: 12px;
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--pa-soft); color: var(--pa-link);
}
.pa-portal-mark i { display: block; width: 4px; border-radius: 3px; background: currentColor; height: 45%; }
.pa-portal-mark i:nth-child(2) { height: 70%; }
.pa-portal-mark i:nth-child(3) { height: 100%; }
.pa .lp-toggle, .pa .toggle-btn {
  background: var(--pa-soft); color: var(--pa-link); border: 1px solid var(--pa-border);
  font-weight: 700; cursor: pointer; border-radius: 10px;
}
.pa h1 {
  color: var(--pa-text); font-size: clamp(2rem, 4vw, 2.85rem); font-weight: 820;
  line-height: 1.08; letter-spacing: -.045em; margin: 0 0 9px;
}
.pa-intro, .pa-support { color: var(--pa-muted); }
.pa-support { font-size: .82rem; text-align: center; margin-top: 20px; }
.pa .lp-form { margin-top: 26px; display: grid; gap: 16px; }
.pa .lp-field-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 7px; }
.pa .lp-field-head a { font-size: .82rem; }
.pa .lp-field-head label, .pa .field label { color: var(--pa-text); font-weight: 760; }
.pa .lp-input-wrap, .pa .input-wrap { position: relative; min-width: 0; }
.pa .lp-input-icon, .pa .input-wrap .icon {
  position: absolute; pointer-events: none; color: var(--pa-link);
  left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px;
}
.pa .input-wrap .icon svg { display: block; width: 17px; height: 17px; }
.pa .lp-input, .pa .field .input {
  display: block; width: 100%; min-width: 0; min-height: 47px; padding: 10px 13px 10px 39px;
  background: var(--pa-input); border: 1px solid var(--pa-control); border-radius: 11px;
  color: var(--pa-text); font-size: max(16px, 1em);
}
.pa .lp-input::placeholder, .pa .input::placeholder { color: var(--pa-muted); }
/* The shared portal theme uses important declarations on form controls. */
:root[data-theme="dark"] .pa :is(.lp-input, .field .input) {
  background: var(--pa-input) !important;
  color: var(--pa-text) !important;
  border-color: var(--pa-control) !important;
}
:root[data-theme="dark"] .pa :is(.lp-input, .field .input)::placeholder { color: var(--pa-muted) !important; }
:root[data-theme="dark"] .pa :is(.lp-input, .field .input):focus-visible { outline: 3px solid var(--pa-focus); }
.pa input:-webkit-autofill {
  -webkit-text-fill-color: var(--pa-text); caret-color: var(--pa-text);
  box-shadow: 0 0 0 50px var(--pa-input) inset;
}
.pa .lp-field:has(.lp-toggle) .lp-input { padding-right: 54px; }
.pa .lp-toggle {
  width: 38px; height: 36px; display: grid; place-items: center;
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
}
.pa .lp-toggle svg { width: 17px; height: 17px; }
.pa .lp-btn, .pa .reg-actions .primary, .pa .pa-secondary, .pa .reg-actions .secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 47px; padding: 10px 17px; border-radius: 11px; font-weight: 760; text-decoration: none;
}
.pa .lp-btn, .pa .reg-actions .primary { background: var(--pa-primary); color: white; border: 1px solid transparent; cursor: pointer; }
.pa .lp-btn:hover, .pa .reg-actions .primary:hover { background: var(--pa-hover); }
.pa .pa-secondary, .pa .reg-actions .secondary { border: 1px solid var(--pa-control); }
.pa .pa-secondary:hover, .pa .reg-actions .secondary:hover { background: var(--pa-soft); }
.pa .pa-back { padding: 8px 12px; font-size: .87rem; }
.pa-first-visit { border-top: 1px solid var(--pa-border); margin-top: 24px; padding-top: 15px; text-align: center; }
.pa-first-visit p { margin-bottom: 9px; color: var(--pa-muted); }
.pa-first-visit a { display: flex; }
.pa-alert, .pa .reg-card .alert {
  margin-top: 15px; border-radius: 10px; padding: 12px 14px; background: var(--pa-error-bg); color: var(--pa-error-text);
  overflow-wrap: anywhere;
}
.pa .reg-card .alert.ok { background: var(--pa-success-bg); color: var(--pa-success-text); }

.pa-feature {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(147deg, #291247 0%, #442171 63%, #55229c 100%);
  border: 1px solid #583681; color: #fff;
}
.pa-feature::before, .pa-feature::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 105%; height: 260px; bottom: -165px; right: -27%;
  border: 1px solid #f1d6ff44; border-radius: 50%; transform: rotate(-23deg);
  background: linear-gradient(110deg, #c88aff07, #d9b1ff27);
}
.pa-feature::after { bottom: -195px; right: -13%; height: 315px; }
.pa-feature h2 { color: white; font-weight: 790; font-size: clamp(2rem, 4.4vw, 3.55rem); max-width: 13ch; line-height: 1.04; letter-spacing: -.045em; }
.pa-feature p { margin-top: 14px; max-width: 35ch; }
.pa-feature p, .pa-feature small { color: #efdcff; }
.pa-topics, .pa-capabilities, .pa-checklist { padding: 0; margin: 0; list-style: none; }
.pa-topics { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 19px; }
.pa-topics li { border: 1px solid #e6c7ff65; border-radius: 99px; background: #edceff15; padding: 4px 9px; font-size: .77rem; }
.pa-capabilities {
  border-top: 1px solid #e6c7ff55; margin-top: 23px; padding-top: 20px;
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 10px;
}
.pa-capabilities details { border: 1px solid #e6c7ff65; border-radius: 12px; background: #edceff14; }
.pa-capabilities summary {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center;
  list-style: none; padding: 8px; min-height: 56px; gap: 8px; border-radius: 11px;
  cursor: pointer; font-size: .88rem; font-weight: 760; line-height: 1.25;
}
.pa-capabilities summary::-webkit-details-marker { display: none; }
.pa-capabilities summary::after {
  content: ""; display: block; width: 7px; height: 7px; margin: 0 3px 4px 0;
  border: solid #f2d9ff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pa-capabilities summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pa-capabilities details[open] { border-color: #efcaff; background: #edceff24; }
.pa-capabilities details[open] summary::after { transform: rotate(225deg); margin: 4px 3px 0 0; }
.pa-capabilities details p { margin: 0; padding: 0 10px 11px; font-size: .84rem; line-height: 1.45; }
@media (hover: hover) { .pa-capabilities details:hover { border-color: #efcaff; background: #edceff24; } }
.pa-feature strong, .pa-feature small { display: block; }
.pa-feature small { margin-top: 2px; font-size: .83rem; line-height: 1.4; }
.pa-line-icon { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #f1d6ff26; color: #f3dfff; }
.pa-line-icon::before { content: ""; width: 12px; height: 12px; display: block; }
.pa-icon-book::before { border: 1px solid currentColor; border-radius: 1px; background: linear-gradient(90deg,transparent 46%,currentColor 46% 55%,transparent 55%); }
.pa-icon-spark { font-size: 22px; line-height: 1; }
.pa-icon-spark::before { display: none; }
.pa-icon-pair::before { border-inline: 4px solid currentColor; border-radius: 55%; }
.pa-icon-progress::before { border: solid currentColor; border-width: 0 0 1px 1px; background: repeating-linear-gradient(90deg,transparent 0 2px,currentColor 2px 3px); clip-path: polygon(0 0, 10% 0, 10% 62%, 45% 62%, 45% 33%, 70% 33%, 70% 0, 100% 0,100% 100%,0 100%); }
.pa-register-guide h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.pa-register-guide { padding: clamp(20px, 3vw, 32px); }
.pa-checklist { margin-top: 14px; }
.pa-checklist li { padding: 13px 0; border-bottom: 1px solid #e6c7ff55; }
.pa-checklist li:last-child { padding-bottom: 0; border: 0; }
.pa-checklist a { color: #f6ddff; }
.pa-checklist a:focus-visible { outline-color: #f6ddff; }

.pa-register-nav { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.pa-register-nav a { background: var(--pa-soft); border: 1px solid var(--pa-border); border-radius: 8px; padding: 7px 10px; font-size: .81rem; text-decoration: none; }
.pa-register-nav a:hover { text-decoration: underline; }
.pa-form-group { margin-top: 22px; display: grid; gap: 11px; border-top: 1px solid var(--pa-border); padding-top: 16px; scroll-margin-top: 95px; }
.pa-form-group h2 { font-size: 1.23rem; color: var(--pa-text); }
.pa-form-group > p { color: var(--pa-muted); font-size: .87rem; }
.pa .grid-2, .pa .grid-3 { display: grid; gap: 10px 14px; min-width: 0; }
.pa .grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.pa .grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.pa .field { min-width: 0; }
.pa .field label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 5px; margin-bottom: 5px; font-size: .88rem; }
.pa .field .req, .pa .field .opt { font-size: .69rem; font-weight: 650; color: var(--pa-muted); }
.pa .field .req { color: var(--pa-link); }
.pa .field .hint, .pa .footer-note { color: var(--pa-muted); font-size: .8rem; margin-top: 5px; }
.pa .field select { padding-right: 7px; }
.pa .pw-row { display: flex; gap: 7px; align-items: stretch; }
.pa .toggle-btn { flex: 0 0 auto; padding: 6px 10px; }
.pa .looks-like-email { border-color: var(--pa-error-text); }
.pa .reg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pa .footer-note { margin-top: 12px; }

@media (max-width: 850px) {
  .pa-register { grid-template-columns: minmax(0,1fr); }
  .pa-register-guide h2 { max-width: none; }
}
@media (max-width: 720px) {
  .pa { grid-template-columns: minmax(0, 1fr); margin-block: 18px 26px; }
}
@media (max-width: 560px) {
  .pa .grid-2, .pa .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .pa .reg-actions .primary { width: 100%; }
}
@media (max-width: 390px) {
  .pa-capabilities { grid-template-columns: minmax(0, 1fr); }
  .pa-card, .pa-feature { padding: 19px; border-radius: 18px; }
}

.pa-login-support { margin-top: 20px; text-align: center; }
.pa-login-support .pa-support { margin: 0; }
.pa .pa-login-support .pa-secondary { color: var(--pa-link); background: var(--pa-soft); cursor: pointer; }
.pa .pa-login-support .pa-secondary:hover { border-color: var(--pa-focus); }
.pa-help-dialog {
  position: fixed;
  inset: 0;
  width: min(460px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: clamp(16px, 4vw, 26px);
  overflow: auto;
  background: var(--pa-surface);
  color: var(--pa-text);
  border: 1px solid var(--pa-control);
  border-radius: 18px;
  box-shadow: var(--pa-shadow);
}
.pa-help-dialog::backdrop { background: #130825a6; }
.pa-help-title-row { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.pa-help-title-row h2 { font-size: clamp(1.2rem, 4vw, 1.5rem); line-height: 1.2; }
.pa-help-close {
  flex: 0 0 auto;
  color: var(--pa-link);
  background: var(--pa-soft);
  border: 1px solid var(--pa-border);
  border-radius: 9px;
  min-height: 44px;
  padding: 5px 10px;
  font-weight: 700;
  cursor: pointer;
}
.pa-help-dialog p { color: var(--pa-muted); margin-block: 13px; }
.pa-help-dialog p:last-child { margin-bottom: 0; }
.pa .pa-help-reset {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  padding: 10px 14px;
  min-height: 44px;
  color: #fff;
  background: var(--pa-primary);
  border-radius: 10px;
  text-decoration: none;
}
.pa .pa-help-reset:hover { background: var(--pa-hover); }
