:root {
  color-scheme: light;
  --account-ink: #172033;
  --account-muted: #667085;
  --account-line: #dce3ed;
  --account-blue: #3978ff;
  --account-cyan: #176fa8;
  --account-bg: #ffffff;
  --account-panel: #ffffff;
  --account-surface: #f7f9fc;
  --account-input: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.auth-page-document,
body.auth-page-document {
  min-height: 100%;
  background: var(--account-bg);
}

body.auth-page-document {
  margin: 0;
  color: var(--account-ink);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100svh;
  overflow: clip;
  background: var(--account-bg);
}

.auth-page::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: transparent;
  content: "";
  pointer-events: none;
}

.auth-page-brand {
  position: absolute;
  z-index: 2;
  top: clamp(24px, 4vw, 48px);
  left: clamp(24px, 5vw, 72px);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--account-ink);
  font-size: 17px;
  font-weight: 640;
  line-height: 1;
}

.auth-page-brand img {
  display: block;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.auth-page-brand .auth-company-logo {
  transform: rotate(90deg);
}

.auth-page-brand .auth-product-logo {
  border-radius: 50%;
}

.auth-page-brand-divider {
  width: 1px;
  height: 23px;
  margin: 0 3px;
  background: currentColor;
  opacity: 0.22;
}

.auth-page-brand-company {
  font-size: 15px;
  font-weight: 620;
  white-space: nowrap;
}

.auth-page-brand-product {
  font-size: 18px;
  font-weight: 650;
  white-space: nowrap;
}

.auth-page[data-active="register"] .auth-page-brand-divider,
.auth-page[data-active="register"] .auth-product-logo,
.auth-page[data-active="register"] .auth-page-brand-product {
  display: none;
}

.auth-page-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(116px, 13vw, 168px) clamp(28px, 7vw, 110px) clamp(44px, 8vw, 92px);
  isolation: isolate;
  transition: filter 360ms ease, opacity 360ms ease, background-color 360ms ease, box-shadow 360ms ease;
}

.auth-page-panel-register {
  background: var(--account-bg);
}

.auth-page-panel-login {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100svh;
  justify-content: flex-start;
  border-left: 1px solid var(--account-line);
  background: var(--account-panel);
}

.auth-page-panel::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid transparent;
  content: "";
  pointer-events: none;
  transition: border-color 360ms ease, box-shadow 360ms ease, background 360ms ease;
}

.auth-page-panel-register::after {
  background: transparent;
}

.auth-page-panel-login::after {
  background: transparent;
}

.auth-page[data-active="register"] .auth-page-panel-login,
.auth-page[data-active="login"] .auth-page-panel-register {
  opacity: 1;
  filter: saturate(0.55);
}

.auth-page[data-active="register"] .auth-page-panel-register::after,
.auth-page[data-active="login"] .auth-page-panel-login::after {
  border-color: rgba(57, 120, 255, 0.26);
  box-shadow: inset 0 0 64px rgba(57, 120, 255, 0.045), 0 0 36px rgba(57, 120, 255, 0.08);
}

.auth-page[data-active="login"] .auth-page-panel-login::after {
  border-color: rgba(57, 120, 255, 0.3);
  box-shadow: inset 0 0 64px rgba(57, 120, 255, 0.05), 0 0 36px rgba(57, 120, 255, 0.09);
}

.auth-page[data-active="register"] .auth-page-panel-register .auth-page-title,
.auth-page[data-active="login"] .auth-page-panel-login .auth-page-title {
  text-shadow: 0 8px 24px rgba(57, 120, 255, 0.12);
}

.auth-page-panel:focus-within {
  opacity: 1;
  filter: none;
}

.auth-page-panel[data-selected="true"] {
  opacity: 1;
  filter: none;
}

.auth-page-panel-inner {
  min-width: 0;
  width: min(100%, 520px);
  margin: 0 auto;
}

.auth-page-panel-login .auth-page-panel-inner {
  width: min(100%, 420px);
  margin-top: auto;
  margin-bottom: auto;
}

.auth-page-kicker {
  margin: 0 0 13px;
  color: var(--account-cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 740;
  letter-spacing: 0;
}

.auth-page-title {
  margin: 0;
  font-size: 52px;
  font-weight: 530;
  letter-spacing: 0;
  line-height: 1.03;
}

.auth-page-lead {
  max-width: 450px;
  margin: 14px 0 30px;
  color: var(--account-muted);
  font-size: 14px;
  line-height: 1.7;
}

.auth-page-plan {
  width: max-content;
  max-width: 100%;
  margin: -12px 0 21px;
  padding: 6px 9px;
  border: 1px solid rgba(57, 120, 255, 0.28);
  border-radius: 999px;
  color: var(--account-cyan);
  background: rgba(57, 120, 255, 0.06);
  font-size: 11px;
  font-weight: 680;
}

.auth-page-register-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 390px);
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.auth-page-register-steps::before {
  position: absolute;
  top: 15px;
  left: 16px;
  width: 50%;
  height: 1px;
  background: var(--account-line);
  content: "";
}

.auth-page-register-steps li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 6px;
  color: var(--account-muted);
}

.auth-page-register-steps li > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--account-line);
  border-radius: 50%;
  background: var(--account-bg);
  font-size: 11px;
  font-weight: 740;
}

.auth-page-register-steps li > strong {
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.auth-page-register-steps li.is-active,
.auth-page-register-steps li.is-complete {
  color: var(--account-blue);
}

.auth-page-register-steps li.is-active > span,
.auth-page-register-steps li.is-complete > span {
  border-color: var(--account-blue);
  color: #ffffff;
  background: var(--account-blue);
}

.auth-page-form {
  display: grid;
  gap: 17px;
}

.auth-page-register-stage {
  display: grid;
  gap: 16px;
}

.auth-page-register-stage[hidden],
.auth-page-access-method[hidden] {
  display: none !important;
}

.auth-page-form-groups {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.auth-page-group {
  display: grid;
  min-width: 0;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--account-line);
  border-radius: 10px;
  background: var(--account-surface);
}

.auth-page-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-page-group-head p {
  margin: 0;
  font-size: 13px;
  font-weight: 720;
}

.auth-page-group-head span {
  color: var(--account-muted);
  font-size: 11px;
}

.auth-page-activation {
  gap: 16px;
}

.auth-page-access-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-page-access-options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.auth-page-access-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
}

.auth-page-access-options label > span {
  display: grid;
  min-height: 74px;
  padding: 13px 14px;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--account-line);
  border-radius: 8px;
  background: var(--account-input);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.auth-page-access-options strong {
  font-size: 13px;
  font-weight: 720;
}

.auth-page-access-options small {
  overflow-wrap: anywhere;
  color: var(--account-muted);
  font-size: 10px;
  line-height: 1.45;
}

.auth-page-access-options input:checked + span {
  border-color: var(--account-blue);
  color: var(--account-blue);
  background: rgba(57, 120, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(57, 120, 255, 0.08);
}

.auth-page-access-options input:focus-visible + span {
  outline: 2px solid var(--account-blue);
  outline-offset: 3px;
}

.auth-page-access-method {
  display: grid;
  gap: 7px;
}

.auth-page-access-method > label {
  font-size: 12px;
  font-weight: 650;
}

.auth-page-access-method > input {
  width: 100%;
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid var(--account-line);
  border-radius: 7px;
  color: var(--account-ink);
  background: var(--account-input);
  outline: none;
}

.auth-page-access-method > input:focus {
  border-color: var(--account-blue);
  box-shadow: 0 0 0 3px rgba(57, 120, 255, 0.11);
}

.auth-page-payment-panel {
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 15px;
  border: 1px solid var(--account-line);
  border-radius: 8px;
  background: var(--account-input);
}

.auth-page-payment-panel > img {
  display: block;
  width: 148px;
  height: 148px;
  border: 1px solid var(--account-line);
  border-radius: 7px;
}

.auth-page-payment-panel > div {
  display: grid;
  gap: 6px;
}

.auth-page-payment-panel strong {
  font-size: 14px;
}

.auth-page-payment-panel span,
.auth-page-payment-panel small {
  color: var(--account-muted);
  font-size: 11px;
  line-height: 1.5;
}

.auth-page-payment-panel small {
  font-size: 10px;
}

.auth-page-step-actions {
  display: grid;
  grid-template-columns: minmax(112px, 0.7fr) minmax(0, 1.3fr);
  gap: 10px;
}

.auth-page-step-actions .auth-page-secondary {
  width: 100%;
}

.auth-page-required {
  color: #ff7868;
}

.auth-page-optional,
.auth-page-field-meta {
  color: var(--account-muted);
  font-size: 10px;
  font-weight: 500;
}

.auth-page-section-description {
  margin: -4px 0 0;
  color: var(--account-muted);
  font-size: 11px;
  line-height: 1.55;
}

.auth-page-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.auth-page-field,
.auth-page-field-full {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.auth-page-field-full {
  grid-column: 1 / -1;
}

.auth-page-field label,
.auth-page-field-full label {
  font-size: 12px;
  font-weight: 650;
}

.auth-page-field input,
.auth-page-field select,
.auth-page-field textarea,
.auth-page-field-full input,
.auth-page-field-full select,
.auth-page-field-full textarea {
  min-width: 0;
  width: 100%;
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid var(--account-line);
  border-radius: 7px;
  color: var(--account-ink);
  background: var(--account-input);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-page-field textarea,
.auth-page-field-full textarea {
  min-height: 88px;
  padding-top: 11px;
  resize: vertical;
}

.auth-page-field input:focus,
.auth-page-field select:focus,
.auth-page-field textarea:focus,
.auth-page-field-full input:focus,
.auth-page-field-full select:focus,
.auth-page-field-full textarea:focus {
  border-color: var(--account-blue);
  box-shadow: 0 0 0 3px rgba(57, 120, 255, 0.11);
}

.auth-page-direction-control {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 7px 13px;
  border: 1px solid var(--account-line);
  border-radius: 7px;
  background: var(--account-input);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-page-direction-control:focus-within {
  border-color: var(--account-blue);
  box-shadow: 0 0 0 3px rgba(57, 120, 255, 0.11);
}

.auth-page-direction-control input {
  min-height: 31px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-page-direction-control input:focus {
  border: 0;
  box-shadow: none;
}

.auth-page-direction-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.auth-page-direction-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 7px 3px 9px;
  border: 1px solid rgba(57, 120, 255, 0.28);
  border-radius: 999px;
  color: var(--account-cyan);
  background: rgba(57, 120, 255, 0.07);
  font-size: 11px;
  line-height: 1.3;
}

.auth-page-direction-tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-page-direction-tag button {
  display: grid;
  width: 15px;
  height: 15px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: currentColor;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.auth-page-field input::placeholder,
.auth-page-field textarea::placeholder,
.auth-page-field-full input::placeholder,
.auth-page-field-full textarea::placeholder {
  color: #98a2b3;
}

.auth-page-field select option,
.auth-page-field-full select option {
  color: var(--account-ink);
  background: var(--account-input);
}

.auth-page-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

.auth-page-secondary,
.auth-page-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 0 16px;
  border: 1px solid #cfd8e6;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-page-secondary {
  color: var(--account-ink);
  background: #f7f9fc;
  white-space: nowrap;
}

.auth-page-secondary:hover,
.auth-page-secondary:focus-visible {
  border-color: var(--account-blue);
  color: var(--account-blue);
  background: rgba(57, 120, 255, 0.06);
  box-shadow: 0 8px 20px rgba(57, 120, 255, 0.1);
  transform: translateY(-1px);
}

.auth-page-secondary:disabled {
  opacity: 0.5;
  cursor: default;
}

.auth-page-primary {
  width: 100%;
  border-color: rgba(99, 231, 255, 0.2);
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #3978ff 58%, #63e7ff);
  box-shadow: 0 18px 38px rgba(57, 120, 255, 0.2);
}

.auth-page-primary:hover,
.auth-page-primary:focus-visible {
  background: linear-gradient(135deg, #2563eb, #3978ff 52%, #7beeff);
  box-shadow: 0 22px 46px rgba(57, 120, 255, 0.28);
  transform: translateY(-1px);
}

.auth-page-primary:active,
.auth-page-secondary:active {
  transform: translateY(0);
}

.auth-page-primary:focus-visible,
.auth-page-secondary:focus-visible {
  outline: 2px solid var(--account-cyan);
  outline-offset: 3px;
}

.auth-page-primary:disabled,
.auth-page-secondary:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.auth-page-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--account-muted);
  font-size: 12px;
}

.auth-page-options label {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
}

.auth-page-options input {
  margin: 3px 0 0;
  accent-color: var(--account-blue);
}

.auth-page-options a,
.auth-page-switch a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-page-options a:hover,
.auth-page-options a:focus-visible,
.auth-page-switch a:hover,
.auth-page-switch a:focus-visible {
  color: #1e40af;
}

.auth-page-switch {
  margin: 23px 0 0;
  color: var(--account-muted);
  font-size: 12px;
  text-align: center;
}

.auth-page-note,
.auth-page-feedback {
  margin: 15px 0 0;
  color: var(--account-muted);
  font-size: 11px;
  line-height: 1.55;
}

.auth-page-password-strength {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  height: 3px;
  margin-top: 1px;
}

.auth-page-password-strength span {
  display: block;
  border-radius: 999px;
  background: #dce3ed;
}

.auth-page-password-strength[data-level="1"] span:nth-child(1) {
  background: #3978ff;
}

.auth-page-password-strength[data-level="2"] span:nth-child(-n + 2) {
  background: #4d8dff;
}

.auth-page-password-strength[data-level="3"] span:nth-child(-n + 3),
.auth-page-password-strength[data-level="4"] span {
  background: #176fa8;
}

.auth-page-feedback[data-state="success"] {
  color: #176fa8;
}

.auth-page-panel-login .auth-page-lead {
  margin-bottom: 34px;
}

.auth-page-panel-login .auth-page-form {
  gap: 18px;
  margin-top: 48px;
}

.auth-page-panel-login .auth-page-field,
.auth-page-panel-login .auth-page-field-full {
  gap: 8px;
}

.auth-page-panel-login .auth-page-field-full label {
  font-size: 15px;
  font-weight: 680;
}

.auth-page-panel-login .auth-page-field-full input {
  min-height: 54px;
  font-size: 16px;
}

.auth-page-panel-login .auth-page-options,
.auth-page-panel-login .auth-page-switch {
  font-size: 14px;
  line-height: 1.5;
}

.auth-page-panel-login .auth-page-options input {
  width: 16px;
  height: 16px;
}

.auth-page-panel-login .auth-page-switch {
  margin-top: 28px;
}

.auth-page-panel-login .auth-page-title {
  font-size: 56px;
}

.auth-page-footer-link {
  position: fixed;
  z-index: 2;
  right: clamp(28px, 7vw, 110px);
  bottom: 30px;
  color: var(--account-muted);
  font-size: 11px;
}

.auth-page-footer-link:hover {
  color: var(--account-ink);
}

@media (min-width: 821px) {
  .auth-page-panel-login .auth-page-panel-inner {
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (min-width: 1180px) {
  .auth-page-panel-register {
    padding: 104px clamp(28px, 3.2vw, 52px) 34px;
  }

  .auth-page-panel-login {
    padding: 104px clamp(28px, 7vw, 110px) 34px;
  }

  .auth-page-panel-register .auth-page-panel-inner {
    width: min(100%, 760px);
  }

  .auth-page-panel-register .auth-page-title {
    font-size: 44px;
  }

  .auth-page-panel-register .auth-page-lead {
    max-width: 620px;
    margin: 10px 0 20px;
    font-size: 13px;
    line-height: 1.55;
  }

  .auth-page-panel-register .auth-page-form,
  .auth-page-panel-register .auth-page-form-groups,
  .auth-page-panel-register .auth-page-register-stage {
    gap: 12px;
  }

  .auth-page-panel-register .auth-page-form-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .auth-page-panel-register .auth-page-group {
    align-content: start;
    gap: 10px;
    padding: 14px;
  }

  .auth-page-panel-register .auth-page-group-security {
    grid-column: 1 / -1;
  }

  .auth-page-panel-register .auth-page-field-grid {
    gap: 10px;
  }

  .auth-page-panel-register .auth-page-group-security .auth-page-field-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .auth-page-panel-register .auth-page-group-security .auth-page-field,
  .auth-page-panel-register .auth-page-group-security .auth-page-field-full {
    grid-column: span 2;
  }

  .auth-page-panel-register .auth-page-field input,
  .auth-page-panel-register .auth-page-field select,
  .auth-page-panel-register .auth-page-field-full input,
  .auth-page-panel-register .auth-page-field-full select,
  .auth-page-panel-register .auth-page-secondary,
  .auth-page-panel-register .auth-page-primary {
    min-height: 43px;
  }

  .auth-page-panel-register .auth-page-field textarea,
  .auth-page-panel-register .auth-page-field-full textarea {
    min-height: 74px;
  }

  .auth-page-panel-register .auth-page-note {
    margin-top: 2px;
  }

  .auth-page-panel-register .auth-page-options {
    margin-top: 1px;
  }

  .auth-page-panel-register .auth-page-switch {
    margin-top: 14px;
  }
}

@media (max-width: 820px) {
  .auth-page {
    display: block;
    overflow: visible;
  }

  .auth-page-brand {
    position: relative;
    top: auto;
    left: auto;
    padding: 24px 24px 0;
  }

  .auth-page-panel {
    min-height: auto;
    padding: 70px 24px 58px;
  }

  .auth-page-panel-register {
    padding-top: 45px;
  }

  .auth-page-panel-login {
    position: static;
    height: auto;
    align-self: auto;
    border-top: 1px solid var(--account-line);
    border-left: 0;
  }

  .auth-page-panel-login .auth-page-panel-inner {
    position: static;
    margin-top: 0;
    margin-bottom: 0;
  }

  .auth-page-panel-login .auth-page-form {
    margin-top: 36px;
  }

  .auth-page-panel::after {
    background: transparent;
  }

  .auth-page-footer-link {
    position: static;
    display: block;
    margin-top: 28px;
    text-align: center;
  }

  .auth-page-title,
  .auth-page-panel-login .auth-page-title {
    font-size: 40px;
  }
}

@media (max-width: 560px) {
  .auth-page-brand {
    gap: 8px;
    font-size: 14px;
  }

  .auth-page-brand img {
    width: 27px;
    height: 27px;
  }

  .auth-page-brand-divider {
    height: 20px;
  }

  .auth-page-brand-company {
    font-size: 13px;
  }

  .auth-page-brand-product {
    font-size: 15px;
  }

  .auth-page-field-grid {
    grid-template-columns: 1fr;
  }

  .auth-page-group {
    padding: 15px;
  }

  .auth-page-access-options {
    grid-template-columns: 1fr;
  }

  .auth-page-payment-panel {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 13px;
  }

  .auth-page-payment-panel > img {
    width: 112px;
    height: 112px;
  }

  .auth-page-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .auth-page-options {
    align-items: flex-start;
    flex-direction: column;
  }
}

.auth-password-rules { display:flex; flex-direction:column; gap:4px; color:#888; font-size:11px; margin-top:7px; }
.auth-password-rules [data-state=ok] { color:#177b50; }
.auth-password-rules [data-state=error] { color:#b42318; }
.auth-legal { display:flex; align-items:flex-start; gap:8px; font-size:12px; line-height:1.6; }
.auth-legal input { width:auto; margin-top:4px; }
.auth-legal a { color:var(--auth-accent,#6e57ba); text-decoration:underline; }
/* Keep authentication readable when two long forms would compete for space. */
.auth-page-header { position: absolute; z-index: 3; top: 32px; left: clamp(24px, 5vw, 72px); right: clamp(24px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.auth-page-header .auth-page-brand { position: static; padding: 0; }
.auth-page[data-active="register"] .auth-page-header :is(.auth-page-brand-divider, .auth-product-logo, .auth-page-brand-product) { display: block; }
.auth-page-header select { min-height: 36px; padding: 7px 12px; border: 1px solid var(--account-line); border-radius: 9px; background: var(--account-bg); color: var(--account-muted); font: inherit; font-size: 12px; }
.auth-page-title, .auth-page-panel-login .auth-page-title { font-size: clamp(34px, 3.4vw, 46px); line-height: 1.15; font-weight: 620; }
.auth-page-switch a { margin-left: 6px; }
/* Show the selected form at every width so sign-in has one clear focal point. */
  .auth-page { display: block; min-height: 100dvh; overflow: visible; }
  .auth-page[data-active="login"] .auth-page-panel-register, .auth-page[data-active="register"] .auth-page-panel-login { display: none; }
  .auth-page-panel { width: min(560px, 100%); margin: 0 auto; padding: 128px 28px 48px; }
  .auth-page-panel-login { position: static; height: auto; min-height: 100dvh; border: 0; }
  .auth-page-panel::after { display: none; }
  .auth-page-panel-login .auth-page-form { margin-top: 30px; }
  .auth-page-footer-link { position: static; display: block; margin-top: 40px; text-align: center; }
@media (max-width: 560px) {
  .auth-page-header { position: relative; top: auto; left: auto; right: auto; padding: 22px 24px 0; gap: 18px; }
  .auth-page-panel { padding: 36px 24px 40px; }
  .auth-page-panel-login { min-height: auto; }
  .auth-page-header .auth-page-brand { gap: 7px; }
  .auth-page-options { flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; }
  .auth-page-panel-login .auth-page-options { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .auth-page-panel, .auth-page-panel::after { transition: none; } }

/* Registration agreements share the authentication page's typography and accent. */
.auth-legal { gap:10px; color:#62616d; line-height:1.8; }
.auth-legal input[type="checkbox"] { flex:0 0 17px; width:17px; height:17px; min-height:0; padding:0; margin:3px 0 0; accent-color:#6e57ba; cursor:pointer; }
.auth-legal label { display:inline; font:inherit; color:inherit; cursor:pointer; }
.auth-legal-link { border:0; padding:0 2px; background:transparent; color:#6e57ba; font:inherit; font-weight:600; cursor:pointer; text-underline-offset:3px; }
.auth-legal-link:hover { text-decoration:underline; }
.auth-legal-link:focus-visible, .auth-agreement-close:focus-visible { outline:2px solid #6e57ba; outline-offset:3px; border-radius:4px; }
