:root {
  color-scheme: light;
  --blue: #1E6FFF;
  --blue-dark: #1769e0;
  --ink: #181c25;
  --muted: #727b8c;
  --line: #e8edf5;
  --field: #f5f7fb;
  --focus: #1769e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); min-height: 100vh; min-height: 100dvh; background: var(--blue); background-image: none; }
body::before, body::after { content: ""; position: fixed; border-radius: 50%; border: 1px solid rgb(255 255 255 / 9%); pointer-events: none; z-index: -1; }
body::before { width: 410px; height: 410px; top: -190px; left: calc(50% - 130px); }
body::after { width: 520px; height: 520px; top: -242px; left: calc(50% - 185px); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
button:focus-visible, a:focus-visible { outline: 3px solid #6ab0ff; outline-offset: 4px; }

.auth-shell { width: min(100%, 452px); min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: env(safe-area-inset-top, 0px) 20px max(20px, env(safe-area-inset-bottom, 0px)); }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: white; }
.home-link { display: inline-flex; align-items: center; min-height: 44px; gap: 3px; margin-left: -6px; font-size: 13px; font-weight: 500; }
.home-link svg { width: 24px; height: 24px; stroke-width: 1.8; }
.support-link { padding: 9px 12px; border: 1px solid rgb(255 255 255 / 30%); border-radius: 18px; background: rgb(255 255 255 / 9%); color: #fff; font-size: 12px; line-height: 18px; }
.hero { padding: 12px 4px 28px; color: white; }
.eyebrow { display: block; color: #d7e8ff; font-size: 10px; font-weight: 650; letter-spacing: 3px; line-height: 18px; }
.hero h1 { margin: 10px 0 10px; font-size: 27px; line-height: 1.35; font-weight: 720; letter-spacing: .4px; }
.title-dot { display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: #8dc0ff; vertical-align: baseline; }
.hero-subtitle { margin: 0; color: #e2edff; font-size: 13px; line-height: 1.7; }
.auth-card { padding: 26px 24px 24px; background: #fff; border-radius: 25px; box-shadow: 0 16px 45px rgb(6 44 120 / 15%); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-heading h2 { margin: 0; font-size: 21px; line-height: 1.45; font-weight: 700; letter-spacing: .3px; }
.small-pill { border-radius: 6px; padding: 4px 7px; background: #f0f5ff; color: #4380d8; font-size: 9px; line-height: 14px; font-weight: 700; letter-spacing: .8px; }
.card-intro { margin: 8px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.message { margin: 0 0 17px; border: 1px solid #dbe8fc; border-radius: 10px; padding: 10px 12px; background: #f1f6ff; color: #325c97; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.message[data-kind="error"] { background: #fff4f1; border-color: #f2d6cf; color: #a13b2a; }
.message[data-kind="success"] { display: none !important; }
.retry-button { margin: -6px 0 18px; padding: 8px 12px; background: #f0f5ff; border: 1px solid #d4e3fc; color: var(--blue-dark); border-radius: 9px; font-size: 12px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-field { margin-bottom: 17px; }
.form-field > label { display: flex; align-items: baseline; gap: 5px; margin-bottom: 8px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.required { color: #1769e0; font-size: 12px; }
.optional { margin-left: 3px; color: #8a93a3; font-size: 10px; font-weight: 400; }
.input-wrap { min-width: 0; display: flex; align-items: center; position: relative; min-height: 50px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); transition: border-color .15s ease, box-shadow .15s ease; }
.input-wrap:focus-within { border-color: #5694ee; box-shadow: 0 0 0 3px rgb(33 121 245 / 9%); background: #fff; }
.input-wrap:has(input[aria-invalid="true"]) { border-color: #c36956; }
.field-icon { width: 19px; height: 19px; margin-left: 13px; color: #8b97aa; }
.input-wrap input { display: block; min-width: 0; width: 100%; height: 49px; padding: 0 12px; border: 0; outline: none; border-radius: 12px; background: transparent; color: var(--ink); font-size: 16px; line-height: normal; }
.input-wrap.no-icon input { padding-left: 14px; }
.input-wrap input::placeholder { color: #9ba4b3; opacity: 1; font-size: 12px; }
.input-wrap input:disabled { color: #7c8593; opacity: .7; }
.password-toggle { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 46px; margin-right: 3px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #8c97a9; }
.password-toggle[aria-pressed="true"] { color: var(--blue-dark); }
.password-toggle svg { width: 20px; height: 20px; }
.field-hint { margin: 6px 0 0; font-size: 10px; color: #818a99; line-height: 1.7; }
.name-notice { color: #6780a2; }
.captcha-field { margin-bottom: 23px; }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row .input-wrap { flex: 1; }
.captcha-button { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 124px; min-height: 50px; padding: 0; overflow: hidden; border: 1px solid #e2e8f1; border-radius: 12px; background: #f7f9fc; color: #8a93a3; font-size: 11px; }
.captcha-button img { display: block; width: 124px; height: 48px; object-fit: contain; }
.captcha-button:disabled { opacity: .75; }
.primary-button { width: 100%; min-height: 53px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 16px; border: 0; border-radius: 28px; color: #fff; background: #14171d; font-size: 15px; font-weight: 650; line-height: 1.5; letter-spacing: 1px; transition: opacity .15s ease, transform .15s ease; }
.primary-button svg { width: 19px; height: 19px; }
.primary-button:not(:disabled):active { transform: scale(.99); }
.primary-button:disabled { opacity: .48; }
.primary-button[aria-busy="true"] { opacity: .7; }
.switch-page { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 20px 0 0; font-size: 12px; line-height: 24px; color: #7c8493; }
.switch-page a, .register-invitation a { display: inline-flex; align-items: center; min-height: 32px; gap: 2px; color: var(--blue-dark); font-weight: 650; }
.switch-page svg, .register-invitation svg { width: 14px; height: 14px; stroke-width: 1.8; }
.page-footer { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 22px 0 3px; color: #d3e5ff; font-size: 10px; line-height: 18px; letter-spacing: .4px; }
.footer-dot { width: 4px; height: 4px; border-radius: 50%; background: #b7d7ff; }

.login-shell .hero { padding-top: 36px; padding-bottom: 32px; }
.login-card { padding-top: 29px; }
.login-card .form-field { margin-bottom: 20px; }
.remember-block { margin: 0 0 25px; }
.checkbox-label { display: flex; align-items: center; gap: 7px; min-height: 32px; cursor: pointer; font-size: 12px; color: #4e5766; }
.checkbox-label input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); flex-shrink: 0; }
.remember-tag { margin-left: auto; font-size: 9px; color: #8994a5; }
.remember-block .field-hint { padding-left: 23px; margin-top: 2px; }
.register-invitation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 27px; padding-top: 19px; border-top: 1px solid #edf0f5; font-size: 12px; color: #7c8493; }
.noscript-message { padding: 14px 16px; border-radius: 12px; background: white; color: #7c4932; font-size: 12px; line-height: 1.8; }

.account-shell .hero { padding-top: 28px; }
.account-loading { background: #fff; }
.member-identity { display: flex; align-items: center; gap: 13px; padding: 8px 0 22px; }
.member-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #edf4ff; color: var(--blue-dark); flex-shrink: 0; }
.member-avatar svg { width: 24px; height: 24px; }
.identity-label { font-size: 10px; color: #818a99; }
.member-identity h3 { margin: 5px 0 0; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.account-details { margin: 0 0 21px; }
.account-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid #eef1f6; }
.account-details dt { flex-shrink: 0; color: #818a99; font-size: 12px; line-height: 1.8; }
.account-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-size: 12px; line-height: 1.8; color: #424b5c; }
.balance-panel { padding: 19px; border: 1px solid #e0eaf9; border-radius: 17px; background: #f3f7ff; }
.balance-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.balance-heading h3 { margin: 0; font-size: 12px; font-weight: 500; color: #5c7294; }
.balance-heading span { font-size: 10px; color: #7c94b4; }
.balance-value { margin: 13px 0 6px; font-size: 28px; color: #1d4c8c; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.balance-panel > p:last-child { margin: 0; color: #8092ad; font-size: 10px; line-height: 1.7; }
.account-notice { margin: 19px 0 25px; color: #7b8697; font-size: 11px; line-height: 1.9; }

.support-dialog { width: min(340px, calc(100% - 40px)); padding: 26px; border: 0; border-radius: 22px; color: var(--ink); background: white; box-shadow: 0 20px 80px rgb(0 0 0 / 20%); }
.support-dialog::backdrop { background: rgb(10 28 60 / 45%); }
.support-dialog h2 { margin: 0 0 12px; font-size: 19px; }
.support-dialog p { margin: 0 0 24px; font-size: 13px; line-height: 1.9; color: #6c7789; }
.support-dialog .primary-button { min-height: 47px; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 374px) {
  .auth-shell { padding-right: 15px; padding-left: 15px; }
  .auth-card { padding-right: 20px; padding-left: 20px; }
  .hero h1 { font-size: 24px; }
  .captcha-button, .captcha-button img { width: 106px; }
  .captcha-row { gap: 8px; }
  .remember-tag { font-size: 8px; }
}
@media (min-width: 768px) {
  .auth-shell { padding-top: 20px; }
  .topbar { height: 66px; }
  .hero { padding-top: 18px; }
  .login-shell .hero { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Auth-only dimensions: the input itself owns its 40px border box. Account styles stay intact. */
body:is([data-page="login"], [data-page="register"]) .input-wrap {
  width: 100%;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
}
body:is([data-page="login"], [data-page="register"]) .input-wrap input {
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--field);
  font-size: 16px;
}
body:is([data-page="login"], [data-page="register"]) .input-wrap:not(.no-icon) input { padding-left: 37px; }
body:is([data-page="login"], [data-page="register"]) .input-wrap:has(.password-toggle) input { padding-right: 38px; }
body:is([data-page="login"], [data-page="register"]) .input-wrap input:focus { border-color: #5694ee; background: #fff; }
body:is([data-page="login"], [data-page="register"]) .input-wrap input[aria-invalid="true"] { border-color: #c36956; }
body:is([data-page="login"], [data-page="register"]) .field-icon {
  position: absolute;
  left: 10px;
  width: 17px;
  height: 17px;
  margin: 0;
  pointer-events: none;
}
body:is([data-page="login"], [data-page="register"]) .password-toggle {
  position: absolute;
  right: 1px;
  width: 36px;
  height: 38px;
  margin: 0;
}
body[data-page="register"] .captcha-row { gap: 6px; align-items: center; }
body[data-page="register"] .captcha-row .input-wrap { flex: 1; min-width: 0; }
body[data-page="register"] .captcha-button {
  flex: 0 0 124px;
  width: 124px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  overflow: visible;
  box-shadow: inset 0 0 0 1px #e2e8f1;
}
body[data-page="register"] .captcha-button img { width: 124px; height: 40px; object-fit: contain; }

/* Keep compact registration vertical rhythm; share only auth-page horizontal spacing. */
@media (max-width: 767px) {
  body:is([data-page="login"], [data-page="register"]) .auth-shell {
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
  }
  body:is([data-page="login"], [data-page="register"]) .auth-card { padding-right: 12px; padding-left: 12px; }
  body[data-page="register"] {
    min-height: 100svh;
    min-height: 100dvh;
  }
  body[data-page="register"]::before,
  body[data-page="register"]::after {
    width: min(100vw, 410px);
    left: 0;
    right: 0;
    margin-inline: auto;
  }
  body[data-page="register"] .auth-shell {
    min-height: 100svh;
    min-height: 100dvh;
    padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) max(5px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  }
  body[data-page="register"] .topbar { height: 28px; gap: 6px; }
  body[data-page="register"] .home-link { min-height: 28px; font-size: 11px; }
  body[data-page="register"] .home-link svg { width: 20px; height: 20px; }
  body[data-page="register"] .support-link { padding: 2px 9px; font-size: 11px; line-height: 20px; }
  body[data-page="register"] .hero { padding: 0 2px 2px; }
  body[data-page="register"] .eyebrow,
  body[data-page="register"] .card-heading,
  body[data-page="register"] .card-intro,
  body[data-page="register"] .page-footer { display: none; }
  body[data-page="register"] .hero h1 { margin: 0; font-size: 18px; line-height: 22px; }
  body[data-page="register"] .hero-subtitle { font-size: 11px; line-height: 14px; }
  body[data-page="register"] .auth-card { padding: 12px; border-radius: 18px; }
  body[data-page="register"] .message { margin-bottom: 6px; padding: 6px 8px; font-size: 11px; line-height: 16px; }
  /* The initial GET-pending status stays visible; errors keep intrinsic height. */
  body[data-page="register"] .message:not([data-kind="error"]):not([data-kind="success"]) {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 12px;
  }
  body[data-page="register"] .retry-button { margin: 0 0 6px; padding: 6px 10px; }
  body[data-page="register"] .form-field { position: relative; margin-bottom: 6px; }
  body[data-page="register"] .form-field > label { margin-bottom: 1px; font-size: 12px; line-height: 14px; }
  body[data-page="register"] .required { font-size: 11px; }
  body[data-page="register"] .field-hint { margin-top: 2px; font-size: 11px; line-height: 14px; }
  /* Keep described-by hints in the accessibility tree without reserving rows. */
  body[data-page="register"] .field-hint:not(.name-notice) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  /* Focus help is an intrinsic-height overlay, never a clipped form/error region. */
  body[data-page="register"] .form-field:focus-within .field-hint:not(.name-notice) {
    z-index: 2;
    bottom: calc(100% + 3px);
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 6px 8px;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 1px solid #dbe8fc;
    border-radius: 8px;
    background: #f1f6ff;
    color: #325c97;
    box-shadow: 0 3px 10px rgb(6 44 120 / 12%);
  }
  /* Real-name immutability must be visible before any focus or interaction. */
  body[data-page="register"] .name-notice { position: static; }
  body[data-page="register"] #submit-button { min-height: 40px; padding: 8px 12px; border-radius: 22px; font-size: 15px; line-height: 24px; }
  body[data-page="register"] .switch-page { margin-top: 4px; font-size: 12px; line-height: 24px; }
  body[data-page="register"] .switch-page a { min-height: 24px; }
}

/* Tablet: keep the existing H5 treatment, with room for the registration form. */
@media (min-width: 768px) {
  body:is([data-page="login"], [data-page="register"]) .auth-shell {
    width: min(100%, 640px);
    padding-right: 32px;
    padding-left: 32px;
  }
  body[data-page="register"] #auth-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px 18px;
  }
  body[data-page="register"] #auth-fields .form-field { min-width: 0; margin: 0; }
  body[data-page="register"] #submit-button { grid-column: 1 / -1; }
}

/* Desktop: the same page and DOM, arranged as a blue introduction and a white form. */
@media (min-width: 900px) {
  body:is([data-page="login"], [data-page="register"]) {
    background: #f2f6fd;
    background-image: radial-gradient(circle at 8% 0%, #e4efff 0, transparent 38%),
      linear-gradient(160deg, #f7faff, #eef4fc);
  }
  body:is([data-page="login"], [data-page="register"])::before,
  body:is([data-page="login"], [data-page="register"])::after { display: none; }
  body:is([data-page="login"], [data-page="register"]) .auth-shell {
    width: min(100%, 1240px);
    padding: 22px clamp(32px, 4.5vw, 64px) 32px;
  }
  body:is([data-page="login"], [data-page="register"]) .topbar { height: 64px; color: #315783; }
  body:is([data-page="login"], [data-page="register"]) .support-link {
    color: #235eae;
    border-color: #c9dcf6;
    background: #fff;
  }
  body:is([data-page="login"], [data-page="register"]) main {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.25fr);
    align-items: center;
    gap: clamp(32px, 4vw, 60px);
    margin-top: clamp(24px, 4vh, 44px);
  }
  body[data-page="login"] .login-shell main { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  body:is([data-page="login"], [data-page="register"]) .hero,
  body[data-page="login"] .login-shell .hero {
    min-width: 0;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 4vw, 54px);
    border-radius: 26px;
    background: radial-gradient(circle at 100% 0%, rgb(255 255 255 / 15%), transparent 46%),
      linear-gradient(145deg, #1764e5, #3486ff);
    box-shadow: 0 22px 55px rgb(25 85 173 / 14%);
  }
  body:is([data-page="login"], [data-page="register"]) .hero h1 {
    margin: 16px 0 0;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  body:is([data-page="login"], [data-page="register"]) .eyebrow { font-size: 11px; letter-spacing: 3.2px; }
  body:is([data-page="login"], [data-page="register"]) .auth-card {
    min-width: 0;
    padding: clamp(30px, 3.4vw, 44px);
    border: 1px solid #e4edf9;
    border-radius: 26px;
    box-shadow: 0 22px 55px rgb(38 74 127 / 10%);
  }
  body:is([data-page="login"], [data-page="register"]) .card-heading h2 { font-size: 24px; }
  body:is([data-page="login"], [data-page="register"]) .card-intro { margin: 9px 0 24px; font-size: 13px; }
  body:is([data-page="login"], [data-page="register"]) .primary-button { background: #1e6fff; }
  body:is([data-page="login"], [data-page="register"]) .page-footer { padding-top: 30px; color: #8094af; }
  body:is([data-page="login"], [data-page="register"]) .footer-dot { background: #7da9e9; }
  body:is([data-page="login"], [data-page="register"]) main > noscript { grid-column: 1 / -1; }
}

/* At narrower desktop widths, give the captcha its own row rather than squeeze it. */
@media (min-width: 900px) and (max-width: 1100px) {
  body[data-page="register"] main { grid-template-columns: minmax(0, 1fr) minmax(550px, 1.25fr); }
  body[data-page="register"] .captcha-field { grid-column: 1 / -1; }
}

/* A dialog can always scroll vertically when the window or text is enlarged. */
body:is([data-page="login"], [data-page="register"]) .support-dialog {
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

/* 2026-11-18 Unified mobile auth system: login and register share one header, hero, card and control scale. */
@media (max-width: 767px) {
  body:is([data-page="login"], [data-page="register"]) .auth-shell {
    min-height: 100svh;
    min-height: 100dvh;
    padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  }
  body:is([data-page="login"], [data-page="register"]) .topbar { height: 44px; gap: 8px; }
  body:is([data-page="login"], [data-page="register"]) .home-link { min-height: 40px; margin-left: -6px; font-size: 13px; }
  body:is([data-page="login"], [data-page="register"]) .home-link svg { width: 22px; height: 22px; }
  body:is([data-page="login"], [data-page="register"]) .support-link { padding: 5px 12px; font-size: 12px; line-height: 20px; border-radius: 16px; }
  body:is([data-page="login"], [data-page="register"]) .hero,
  body[data-page="login"] .login-shell .hero { padding: 2px 4px 12px; }
  body:is([data-page="login"], [data-page="register"]) .eyebrow { display: block; font-size: 10px; line-height: 16px; letter-spacing: 3px; }
  body:is([data-page="login"], [data-page="register"]) .hero h1 { margin: 2px 0 0; font-size: 22px; line-height: 30px; }
  body:is([data-page="login"], [data-page="register"]) .auth-card,
  body[data-page="login"] .login-card { padding: 16px 14px 12px; border-radius: 20px; }
  body:is([data-page="login"], [data-page="register"]) .card-heading,
  body:is([data-page="login"], [data-page="register"]) .card-intro { display: none; }
  body:is([data-page="login"], [data-page="register"]) .form-field,
  body[data-page="login"] .login-card .form-field { position: relative; margin: 0 0 8px; }
  body:is([data-page="login"], [data-page="register"]) .form-field > label { align-items: center; height: 16px; margin-bottom: 4px; font-size: 13px; font-weight: 600; line-height: 16px; }
  body:is([data-page="login"], [data-page="register"]) .required { font-size: 12px; line-height: 16px; }
  body:is([data-page="login"], [data-page="register"]) .field-hint { margin-top: 3px; font-size: 11px; line-height: 15px; }
  body[data-page="login"] .remember-block { margin: 2px 0 12px; }
  body[data-page="login"] .checkbox-label { min-height: 28px; font-size: 12px; }
  body[data-page="login"] .remember-block .field-hint { margin-top: 0; padding-left: 23px; }
  body:is([data-page="login"], [data-page="register"]) #submit-button {
    min-height: 44px;
    height: 44px;
    margin-top: 4px;
    padding: 0 16px;
    border-radius: 22px;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 1px;
  }
  body:is([data-page="login"], [data-page="register"]) .switch-page,
  body[data-page="login"] .register-invitation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 6px 0 0;
    padding: 0;
    border-top: 0;
    font-size: 12px;
    line-height: 28px;
    color: #7c8493;
  }
  body:is([data-page="login"], [data-page="register"]) .switch-page a,
  body[data-page="login"] .register-invitation a { min-height: 28px; }
  body:is([data-page="login"], [data-page="register"]) .auth-shell { display: flex; flex-direction: column; }
  body:is([data-page="login"], [data-page="register"]) .auth-shell > main { flex: 0 0 auto; }
  body:is([data-page="login"], [data-page="register"]) .page-footer { display: flex; margin-top: auto; padding: 14px 0 2px; }
}
