:root {
  --plum: #1f0523;
  --plum-deep: #140318;
  --plum-soft: #3a1a3f;
  --surface: #ffffff;
  --ink: #201624;
  --muted: #756c7a;
  --line: #e9e3eb;
  --soft: #f6f2f7;
  --blue: #327fff;
  --blue-dark: #2468dc;
  --orange: #ff8a28;
  --green: #16b785;
  --danger: #d92d20;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  color: #fff;
  background: #68180d;
  font-family: var(--font);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("../images/login-bg.jpg") center center / max(100vw, 161.6667vh) auto no-repeat;
  background-color: #68180d;
  pointer-events: none;
}

.page-backdrop::before {
  position: absolute;
  inset: 0;
  background: url("../images/login-bg-portrait.jpg") center center / max(100vw, 56.25vh) auto no-repeat;
  content: "";
  opacity: 0;
  transition: opacity 360ms ease;
}

.app-header {
  isolation: isolate;
  position: relative;
  z-index: 20;
  height: 80px;
  min-height: 0;
  border: 0;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.018) 38%, rgba(0, 0, 0, 0.08) 100%),
    rgba(18, 16, 21, 0.28);
}

.app-header::before {
  position: absolute;
  inset: 0 0 auto;
  height: 22%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
  content: "";
  pointer-events: none;
}

.app-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  content: "";
  pointer-events: none;
}

.header-inner {
  width: min(1120px, calc(100% - 40px));
  height: 80px;
  min-height: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 200px;
  height: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  transition: color 160ms ease, background 160ms ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
}

.mobile-menu-toggle span {
  width: 21px;
  height: 2px;
  display: block;
  background: #fff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.login-main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 48px 0 56px;
}

.welcome-view {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
  animation: view-in 460ms ease both;
}

.welcome-copy {
  text-shadow: 0 3px 22px rgba(16, 2, 18, 0.48);
}

.eyebrow {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.welcome-copy h1 {
  width: min(620px, 86vw);
  margin: 0 auto;
}

.welcome-copy h1 img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(12, 2, 13, 0.32));
}

.welcome-lead {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.welcome-actions {
  width: min(680px, 100%);
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.primary-button,
.outline-button {
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  box-shadow: 0 14px 34px rgba(50, 127, 255, 0.28);
}

.outline-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035) 42%, rgba(16, 5, 20, 0.12)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    0 10px 26px rgba(10, 2, 13, 0.16);
  backdrop-filter: blur(2px) saturate(145%);
  -webkit-backdrop-filter: blur(2px) saturate(145%);
}

.outline-button::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% -30%, rgba(255, 255, 255, 0.34), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 48%);
  content: "";
  pointer-events: none;
}

.primary-button:hover,
.primary-button:focus-visible,
.outline-button:hover,
.outline-button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #468cff;
  box-shadow: 0 16px 38px rgba(50, 127, 255, 0.4);
}

.outline-button:hover,
.outline-button:focus-visible {
  border-color: #fff;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06) 44%, rgba(16, 5, 20, 0.1)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14),
    0 14px 32px rgba(10, 2, 13, 0.2);
}

.welcome-meta {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.welcome-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.welcome-meta i {
  width: 4px;
  height: 4px;
  display: block;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 138, 40, 0.8);
}

.panel-view {
  width: 100%;
  display: grid;
  place-items: center;
  animation: view-in 420ms ease both;
}

.panel-column {
  width: min(560px, 100%);
}

.about-link {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 0 22px;
  border: 1px solid rgba(22, 183, 133, 0.84);
  border-radius: 6px;
  background: rgba(19, 4, 21, 0.68);
  color: #20d6a0;
  font-size: 15px;
  font-weight: 700;
  backdrop-filter: blur(14px);
  transition: background 160ms ease, border-color 160ms ease;
}

.about-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-link:hover,
.about-link:focus-visible {
  border-color: #34e2ad;
  background: rgba(23, 7, 25, 0.84);
  outline: none;
}

.login-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(16, 2, 18, 0.34);
  backdrop-filter: blur(18px);
}

.panel-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px 12px;
}

.panel-header p {
  margin: 0 0 4px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel-header h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.back-button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
}

.back-button svg,
.field-control > svg,
.field-icon-button svg,
.captcha-button > svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-button svg {
  width: 19px;
  height: 19px;
}

.back-button:hover,
.back-button:focus-visible {
  border-color: #cfc4d2;
  color: var(--ink);
  outline: none;
}

.login-tabs {
  min-height: 46px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.login-tab {
  position: relative;
  padding: 0 8px 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}

.login-tab::after {
  position: absolute;
  right: 18%;
  bottom: -1px;
  left: 18%;
  height: 2px;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 160ms ease, transform 160ms ease;
}

.login-tab.is-active {
  color: var(--blue);
  font-weight: 600;
}

.login-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.login-tab:focus-visible {
  outline: 2px solid rgba(50, 127, 255, 0.32);
  outline-offset: -4px;
}

.form-area {
  padding: 18px 24px 14px;
}

.login-form {
  animation: form-in 220ms ease both;
}

.field {
  display: block;
  margin-bottom: 11px;
}

.field > span:first-child {
  display: block;
  margin-bottom: 5px;
  color: #55495a;
  font-size: 12px;
  font-weight: 600;
}

.field-control {
  position: relative;
  min-width: 0;
  height: 46px;
  display: flex;
  align-items: center;
  border: 1px solid #e4dde6;
  border-radius: 6px;
  background: var(--soft);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.field-control:focus-within {
  border-color: rgba(50, 127, 255, 0.72);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(50, 127, 255, 0.1);
}

.field-control > svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-left: 15px;
  color: #9d92a2;
}

.field-control input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 14px 0 11px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.field-control input::placeholder {
  color: #aaa1ae;
}

/* Keep browser-saved values, but make autofill match the form surface. */
.field-control input:-webkit-autofill,
.field-control input:-webkit-autofill:hover,
.field-control input:-webkit-autofill:focus,
.field-control input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--soft) inset;
  box-shadow: 0 0 0 1000px var(--soft) inset;
  caret-color: var(--ink);
  transition: background-color 99999s ease-in-out 0s;
}

.field-control:focus-within input:-webkit-autofill,
.field-control:focus-within input:-webkit-autofill:hover,
.field-control:focus-within input:-webkit-autofill:focus,
.field-control:focus-within input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
}

.code-field {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 12px;
}

.code-button {
  min-width: 0;
  padding: 0 12px;
  border: 1px solid rgba(50, 127, 255, 0.22);
  border-radius: 6px;
  background: #edf3ff;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
}

.code-button:hover,
.code-button:focus-visible {
  border-color: rgba(50, 127, 255, 0.42);
  background: #e4edff;
  outline: none;
}

.code-button:disabled {
  cursor: default;
  opacity: 0.62;
}

.field-icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin-right: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #918697;
}

.field-icon-button svg {
  width: 19px;
  height: 19px;
}

.field-icon-button .eye-off {
  display: none;
}

.field-icon-button.is-visible .eye-on {
  display: none;
}

.field-icon-button.is-visible .eye-off {
  display: block;
}

.captcha-button {
  position: relative;
  height: 46px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e4dde6;
  border-radius: 6px;
  background: #fff;
}

.captcha-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.captcha-button > svg {
  position: absolute;
  right: 6px;
  bottom: 5px;
  width: 14px;
  height: 14px;
  padding: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #5f5564;
}

.captcha-button:focus-visible {
  outline: 2px solid rgba(50, 127, 255, 0.42);
  outline-offset: 2px;
}

.form-error {
  min-height: 14px;
  margin: -4px 0 5px;
  color: var(--danger);
  font-size: 12px;
}

.submit-button {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 9px 22px rgba(50, 127, 255, 0.24);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: var(--blue-dark);
  box-shadow: 0 11px 26px rgba(50, 127, 255, 0.34);
  outline: none;
  transform: translateY(-1px);
}

.panel-footer {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 24px;
  border-top: 1px solid var(--line);
}

.social-login,
.account-links {
  display: flex;
  align-items: center;
}

.social-login {
  gap: 9px;
}

.social-login a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform 160ms ease;
}

.social-login a:hover,
.social-login a:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.social-login img {
  width: 32px;
  height: 32px;
  display: block;
}

.is-mobile-device .social-login {
  display: none;
}

.is-mobile-device .panel-footer {
  justify-content: flex-end;
}

body:not(.is-mobile-device) .panel-header {
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 8px;
}

body:not(.is-mobile-device) .login-tabs {
  min-height: 42px;
}

body:not(.is-mobile-device) .form-area {
  padding-top: 14px;
  padding-bottom: 10px;
}

body:not(.is-mobile-device) .field {
  margin-bottom: 9px;
}

body:not(.is-mobile-device) .panel-footer {
  min-height: 52px;
}

@media (orientation: portrait) {
  .page-backdrop::before {
    opacity: 1;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .panel-footer {
    justify-content: flex-end;
  }
}

.account-links {
  gap: 10px;
  color: var(--blue-dark);
  font-size: 12px;
}

.account-links span {
  width: 1px;
  height: 12px;
  background: #d8d0da;
}

.account-links a:hover,
.account-links a:focus-visible {
  color: var(--plum-soft);
  outline: none;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 18px 20px 20px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(11, 2, 12, 0.48);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 0;
}

.site-footer nav a {
  padding: 0 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
}

.site-footer nav a:last-child {
  border-right: 0;
}

.site-footer p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(24, 8, 26, 0.92);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 14px 34px rgba(12, 2, 13, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes form-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 720px) {
  .page-backdrop {
    background-position: 62% center;
  }

  .header-inner {
    width: calc(100% - 28px);
    min-height: 68px;
  }

  .brand img {
    width: 164px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    padding: 8px 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 3, 23, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .header-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-nav a {
    min-height: 44px;
    padding: 0 10px;
  }

  .login-main {
    width: calc(100% - 28px);
    min-height: 0;
    padding: 34px 0 38px;
  }

  .welcome-copy h1 {
    width: min(430px, 92vw);
  }

  .welcome-lead {
    margin-top: 18px;
    font-size: 14px;
  }

  .welcome-actions {
    margin-top: 34px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .primary-button,
  .outline-button {
    height: 52px;
    font-size: 15px;
  }

  .welcome-meta {
    margin-top: 25px;
    gap: 13px;
    font-size: 10px;
  }

  .about-link {
    min-height: 50px;
    padding: 0 17px;
    font-size: 13px;
  }

  .panel-header {
    min-height: 82px;
    padding: 16px 18px 14px;
  }

  .panel-header h2 {
    font-size: 19px;
  }

  .login-tabs {
    padding: 0 18px;
  }

  .form-area {
    padding: 20px 18px 16px;
  }

  .panel-footer {
    min-height: 68px;
    margin: 0 18px;
  }

  .site-footer {
    padding: 14px 14px 18px;
  }

  .site-footer nav {
    flex-wrap: nowrap;
  }

  .site-footer nav a {
    padding: 0 4px;
    font-size: 10px;
  }
}

@media (min-width: 721px) and (max-width: 900px) and (orientation: portrait) {
  .panel-column {
    width: min(480px, calc(100% - 48px));
  }

  .welcome-actions {
    width: min(600px, calc(100% - 48px));
  }
}

@media (max-width: 420px) {
  .login-main {
    width: calc(100% - 20px);
    padding-top: 24px;
  }

  .eyebrow {
    margin-bottom: 17px;
  }

  .code-field {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 8px;
  }

  .code-button {
    padding: 0 7px;
    font-size: 12px;
  }

  .panel-footer {
    min-height: 64px;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 0;
  }

  .account-links {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 7px;
    white-space: nowrap;
  }

}

@media (max-width: 380px) {
  .panel-header {
    min-height: 74px;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .panel-footer {
    min-height: 56px;
  }
}

@media (max-height: 760px) and (min-width: 721px) {
  .login-main {
    min-height: 560px;
    padding: 30px 0;
  }

  .welcome-actions {
    margin-top: 32px;
  }

  .panel-header {
    min-height: 78px;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .form-area {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .field {
    margin-bottom: 12px;
  }

  .panel-footer {
    min-height: 62px;
  }
}

@media (orientation: landscape) and (max-height: 700px) and (min-width: 721px) {
  .login-main {
    min-height: 0;
    padding: 0;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  body.is-mobile-device {
    grid-template-rows: auto 1fr;
    overflow-y: hidden;
  }

  body.is-mobile-device .site-footer {
    display: none;
  }

  body.is-mobile-device .app-header,
  body.is-mobile-device .header-inner {
    height: 52px;
  }

  body.is-mobile-device .brand img {
    width: 150px;
  }

  body.is-mobile-device .header-nav {
    gap: 0;
  }

  body.is-mobile-device .header-nav a {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  body.is-mobile-device .login-main {
    width: calc(100% - 24px);
    min-height: 0;
    padding: 0;
  }

  body.is-mobile-device .panel-column {
    width: min(480px, 68vw, calc(100% - 32px));
  }

  body.is-mobile-device .welcome-view {
    width: min(700px, 100%);
  }

  body.is-mobile-device .eyebrow {
    margin-bottom: 8px;
  }

  body.is-mobile-device .welcome-copy h1 {
    width: min(460px, 78vw);
  }

  body.is-mobile-device .welcome-lead {
    margin-top: 8px;
    font-size: 13px;
  }

  body.is-mobile-device .welcome-actions {
    margin-top: 14px;
    gap: 10px;
  }

  body.is-mobile-device .primary-button,
  body.is-mobile-device .outline-button {
    height: 42px;
    font-size: 14px;
  }

  body.is-mobile-device .welcome-meta {
    margin-top: 12px;
    font-size: 10px;
  }

  body.is-mobile-device .panel-header {
    min-height: 48px;
    padding: 3px 14px 2px;
    gap: 10px;
  }

  body.is-mobile-device .back-button {
    width: 30px;
    height: 30px;
  }

  body.is-mobile-device .panel-header p {
    margin-bottom: 2px;
  }

  body.is-mobile-device .panel-header h2 {
    font-size: 16px;
  }

  body.is-mobile-device .login-tabs {
    min-height: 32px;
    padding: 0 14px;
  }

  body.is-mobile-device .login-tab {
    padding-bottom: 6px;
    font-size: 12px;
  }

  body.is-mobile-device .form-area {
    padding: 6px 14px 5px;
  }

  body.is-mobile-device .form-error {
    min-height: 10px;
    margin: -2px 0 2px;
    font-size: 10px;
  }

  body.is-mobile-device .field {
    margin-bottom: 4px;
  }

  body.is-mobile-device .field > span:first-child {
    margin-bottom: 2px;
    font-size: 10px;
  }

  body.is-mobile-device .field-control,
  body.is-mobile-device .captcha-button,
  body.is-mobile-device .code-button {
    height: 32px;
  }

  body.is-mobile-device .field-control > svg {
    width: 17px;
    height: 17px;
    margin-left: 12px;
  }

  body.is-mobile-device .field-control input {
    padding-right: 10px;
    padding-left: 9px;
    font-size: 12px;
  }

  body.is-mobile-device .code-field {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 7px;
  }

  body.is-mobile-device .code-button {
    padding: 0 6px;
    font-size: 11px;
  }

  body.is-mobile-device .submit-button {
    height: 32px;
    font-size: 13px;
  }

  body.is-mobile-device .panel-footer {
    min-height: 28px;
    margin: 0 14px;
  }

  body.is-mobile-device .account-links {
    gap: 7px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
