:root {
  color-scheme: light;
  --ink: #07152f;
  --muted: #75849e;
  --muted-strong: #62728e;
  --line: #d9e2ef;
  --blue: #386cf6;
  --blue-deep: #1f56f4;
  --blue-soft: #f3f7ff;
  --panel-bg: #f5f9ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--panel-bg);
  overflow-x: hidden;
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.brand-panel {
  position: relative;
  min-height: 100vh;
  padding: 54px 56px 48px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(244, 249, 255, 0.12), rgba(244, 249, 255, 0.12)),
    url("./assets/miaocheng_login_left_background.webp?v=20260627-platform-1") center / cover no-repeat;
}

.brand-panel > * {
  position: relative;
  z-index: 1;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.brand-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(255, 132, 0, 0.16));
}

.brand-name {
  color: #141923;
  font-size: 41px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.brand-message {
  margin-top: 126px;
  margin-left: 58px;
}

.brand-message h1 {
  margin: 0;
  color: #071735;
  font-size: 43px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-message p {
  margin: 22px 0 0;
  color: #63728d;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
}

.capability-row {
  display: flex;
  align-items: flex-start;
  gap: 65px;
  margin-top: 54px;
  margin-left: 58px;
}

.capability-item {
  display: grid;
  grid-template-columns: 42px max-content;
  gap: 12px;
  min-width: 150px;
}

.capability-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 9px;
  background: rgba(232, 239, 255, 0.88);
}

.capability-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
}

.icon-monitor {
  color: #4e7dff;
}

.icon-monitor svg path {
  fill: rgba(78, 125, 255, 0.15);
  stroke: currentColor;
}

.icon-distribute {
  color: #4a72ff;
}

.icon-distribute svg {
  stroke: currentColor;
}

.icon-insight {
  color: #22ca9a;
  background: rgba(223, 250, 241, 0.92);
}

.icon-insight svg {
  stroke: currentColor;
}

.capability-item strong {
  display: block;
  margin-top: 1px;
  color: #0a1632;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.capability-item span:not(.capability-icon) {
  display: block;
  margin-top: 8px;
  color: #475671;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 52px;
  margin: 0;
  color: #667693;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 8px;
  text-align: center;
}

.auth-panel {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px 64px;
  background:
    radial-gradient(circle at 37% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 31%),
    radial-gradient(circle at 70% 45%, rgba(214, 228, 250, 0.42), rgba(214, 228, 250, 0) 38%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.manager-login-button {
  position: absolute;
  top: 42px;
  right: 58px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px 0 12px;
  border: 1px solid rgba(201, 215, 238, 0.82);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.92)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 40px rgba(58, 82, 124, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #10213f;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  z-index: 3;
}

.manager-login-button::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22ca9a;
  box-shadow: 0 0 0 5px rgba(34, 202, 154, 0.12);
  content: "";
}

.manager-login-button:hover,
.manager-login-button:focus-visible {
  border-color: rgba(56, 108, 246, 0.38);
  color: var(--blue);
  outline: none;
  box-shadow:
    0 22px 46px rgba(56, 108, 246, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.manager-login-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef4ff, #e7f0ff);
  color: var(--blue);
}

.manager-login-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.auth-card {
  width: 512px;
  height: 684px;
  padding: 66px 52px 60px;
  border: 1px solid rgba(225, 233, 244, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 34px 80px rgba(62, 84, 125, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  transform: translateY(-1px);
}

.auth-header h2 {
  margin: 0;
  color: #071735;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.auth-header p {
  margin: 15px 0 0;
  color: #7a879d;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.auth-form {
  margin-top: 47px;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.input-shell {
  display: flex;
  align-items: center;
  width: 100%;
  height: 60px;
  gap: 16px;
  padding: 0 18px;
  border: 1px solid #d9e2ef;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 2px rgba(237, 242, 249, 0.78);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.input-shell + .field-error {
  margin-bottom: 11px;
}

.input-shell:focus-within,
.input-shell.has-value {
  border-color: rgba(74, 114, 255, 0.72);
  box-shadow:
    0 0 0 3px rgba(56, 108, 246, 0.08),
    inset 0 1px 2px rgba(237, 242, 249, 0.78);
}

.input-shell.has-error {
  border-color: rgba(218, 79, 79, 0.75);
  box-shadow: 0 0 0 3px rgba(218, 79, 79, 0.08);
}

.input-icon,
.toggle-password {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  color: #94a1b8;
}

.input-icon svg,
.toggle-password svg,
.shield-icon svg,
.code-modal-badge svg,
.modal-close-button svg,
.captcha-slider-handle svg,
.support-footer svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #12203a;
  font-size: 17px;
  font-weight: 500;
}

.input-shell input::placeholder {
  color: #9aa7bc;
}

.toggle-password {
  padding: 0;
  background: transparent;
  color: #9aa7bc;
  transition: color 160ms ease;
}

.toggle-password:hover,
.toggle-password:focus-visible {
  color: var(--blue);
  outline: none;
}

.field-error {
  min-height: 15px;
  margin: 7px 2px 0;
  color: #d14a4a;
  font-size: 12px;
  line-height: 1;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6f7f99;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.remember-me input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.form-row a {
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
}

.submit-button {
  display: grid;
  width: 100%;
  height: 58px;
  place-items: center;
  margin-top: 37px;
  border-radius: 6px;
  background: linear-gradient(90deg, #3463f5 0%, #3d75f6 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 16px 30px rgba(54, 101, 245, 0.22);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(54, 101, 245, 0.28);
  filter: saturate(1.04);
  outline: none;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.86;
  transform: none;
}

.form-message {
  min-height: 0;
  margin: 0;
  color: #75849e;
  font-size: 13px;
  text-align: center;
}

.form-message:not(:empty) {
  min-height: 18px;
  margin-top: 8px;
}

.form-message.is-error {
  color: #d14a4a;
}

.form-message.is-success {
  color: #168a60;
}

.alt-login-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 25px;
  color: #7a879d;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.alt-login-divider::before,
.alt-login-divider::after {
  display: block;
  flex: 1;
  height: 1px;
  content: "";
  background: #e0e7f1;
}

.code-login-button {
  display: flex;
  width: 100%;
  height: 58px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 28px;
  border: 1px solid #d9e2ef;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue);
  font-size: 16px;
  font-weight: 600;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.code-login-button:hover,
.code-login-button:focus-visible {
  border-color: rgba(56, 108, 246, 0.55);
  background: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

.shield-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--blue);
}

.support-footer {
  position: absolute;
  right: 61px;
  bottom: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
  color: #6f7f99;
  font-size: 16px;
  font-weight: 500;
}

.support-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.support-footer svg {
  width: 20px;
  height: 20px;
}

.support-footer > span {
  width: 1px;
  height: 16px;
  background: #d6dfeb;
}

.help-link,
.contact-link {
  position: relative;
}

.help-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 18px);
  display: grid;
  width: 222px;
  gap: 7px;
  padding: 16px 18px;
  border: 1px solid rgba(218, 227, 241, 0.92);
  border-radius: 16px;
  background:
    radial-gradient(circle at 16% 18%, rgba(236, 243, 255, 0.95), rgba(255, 255, 255, 0) 42%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(54, 73, 111, 0.16);
  color: #071735;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  z-index: 10;
}

.help-popover::after {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(218, 227, 241, 0.92);
  border-bottom: 1px solid rgba(218, 227, 241, 0.92);
  background: #ffffff;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.help-popover strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
}

.help-popover small {
  color: #75849e;
  font-size: 12px;
  line-height: 1.45;
}

.help-popover span {
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.1;
}

.help-link:hover .help-popover,
.help-link:focus-visible .help-popover,
.help-link:focus-within .help-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.support-qr-popover {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 18px);
  display: grid;
  width: 174px;
  justify-items: center;
  gap: 8px;
  padding: 16px 14px 14px;
  border: 1px solid rgba(218, 227, 241, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(54, 73, 111, 0.16);
  color: #071735;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 10px) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  z-index: 10;
}

.support-qr-popover::after {
  position: absolute;
  right: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(218, 227, 241, 0.9);
  border-bottom: 1px solid rgba(218, 227, 241, 0.9);
  background: #ffffff;
  content: "";
  transform: translateX(50%) rotate(45deg);
}

.support-qr-popover img {
  width: 118px;
  height: 118px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(218, 227, 241, 0.9);
}

.support-qr-popover strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
}

.support-qr-popover small {
  color: #75849e;
  font-size: 12px;
  line-height: 1.1;
}

.contact-link:hover .support-qr-popover,
.contact-link:focus-visible .support-qr-popover,
.contact-link:focus-within .support-qr-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(50%, 0) scale(1);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0) 28%),
    rgba(7, 21, 47, 0.36);
  backdrop-filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 50;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.code-modal {
  position: relative;
  width: min(468px, 100%);
  padding: 34px 34px 30px;
  border: 1px solid rgba(225, 233, 244, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 34px 90px rgba(36, 58, 96, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transform: translateY(18px) scale(0.98);
  transition: transform 180ms ease;
}

.modal-backdrop.is-open .code-modal {
  transform: translateY(0) scale(1);
}

.manager-modal-backdrop {
  background:
    radial-gradient(circle at 50% 26%, rgba(236, 255, 246, 0.64), rgba(236, 255, 246, 0) 24%),
    radial-gradient(circle at 52% 48%, rgba(229, 239, 255, 0.56), rgba(229, 239, 255, 0) 34%),
    rgba(7, 21, 47, 0.38);
}

.manager-modal {
  position: relative;
  width: min(440px, 100%);
  padding: 34px 34px 32px;
  border: 1px solid rgba(220, 232, 244, 0.96);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 14%, rgba(231, 255, 244, 0.86), rgba(255, 255, 255, 0) 31%),
    rgba(255, 255, 255, 0.98);
  box-shadow:
    0 38px 110px rgba(35, 57, 91, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(18px) scale(0.98);
  transition: transform 180ms ease;
}

.modal-backdrop.is-open .manager-modal {
  transform: translateY(0) scale(1);
}

.manager-modal-header {
  display: grid;
  justify-items: center;
  padding: 3px 42px 0;
  text-align: center;
}

.manager-modal-badge {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #eafff4 0%, #eef7ff 100%);
  color: #14b875;
  box-shadow: 0 14px 28px rgba(20, 184, 117, 0.13);
}

.manager-modal-badge svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.manager-modal-header h2 {
  margin: 18px 0 0;
  color: #071735;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.15;
}

.manager-modal-header p {
  margin: 10px 0 0;
  color: #75849e;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.manager-qr-shell {
  position: relative;
  display: grid;
  width: 264px;
  height: 264px;
  place-items: center;
  margin: 28px auto 0;
  border: 1px solid rgba(210, 223, 240, 0.96);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 255, 0.78)),
    #ffffff;
  box-shadow:
    0 22px 48px rgba(45, 66, 104, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.manager-qr-shell::before {
  position: absolute;
  inset: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(34, 202, 154, 0.08), rgba(56, 108, 246, 0.08));
  content: "";
}

.manager-qr-shell img {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 35, 66, 0.08);
  z-index: 1;
}

.qr-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #22ca9a;
  z-index: 2;
}

.qr-corner-tl {
  top: 16px;
  left: 16px;
  border-top: 3px solid;
  border-left: 3px solid;
  border-top-left-radius: 12px;
}

.qr-corner-tr {
  top: 16px;
  right: 16px;
  border-top: 3px solid;
  border-right: 3px solid;
  border-top-right-radius: 12px;
}

.qr-corner-bl {
  bottom: 16px;
  left: 16px;
  border-bottom: 3px solid;
  border-left: 3px solid;
  border-bottom-left-radius: 12px;
}

.qr-corner-br {
  right: 16px;
  bottom: 16px;
  border-right: 3px solid;
  border-bottom: 3px solid;
  border-bottom-right-radius: 12px;
}

.manager-scan-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 22px;
  text-align: center;
}

.manager-scan-copy strong {
  color: #071735;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.1;
}

.manager-scan-copy span {
  color: #75849e;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.manager-demo-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #18bd77 0%, #2f6df6 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0;
  box-shadow: 0 18px 34px rgba(34, 142, 201, 0.2);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.manager-demo-login svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.manager-demo-login:hover,
.manager-demo-login:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(34, 142, 201, 0.25);
  outline: none;
}

.manager-demo-login:disabled {
  cursor: wait;
  filter: saturate(0.82);
  transform: none;
}

.modal-close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: #f3f7ff;
  color: #8a98b2;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.modal-close-button:hover,
.modal-close-button:focus-visible {
  background: #eaf1ff;
  color: var(--blue);
  outline: none;
  transform: rotate(90deg);
}

.modal-close-button svg {
  width: 19px;
  height: 19px;
}

.code-modal-header {
  padding-right: 42px;
}

.code-modal-badge {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #eef4ff 0%, #e8f0ff 100%);
  color: var(--blue);
  box-shadow: 0 12px 26px rgba(56, 108, 246, 0.12);
}

.code-modal-badge svg {
  width: 25px;
  height: 25px;
}

.code-modal-header h2 {
  margin: 18px 0 0;
  color: #071735;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.18;
}

.code-modal-header p {
  margin: 10px 0 0;
  color: #75849e;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.code-login-form {
  margin-top: 26px;
}

.modal-input-shell {
  height: 54px;
  border-radius: 10px;
}

.modal-input-shell input {
  font-size: 16px;
}

.captcha-card {
  margin: 8px 0 18px;
  padding: 14px;
  border: 1px solid #dde6f3;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
}

.captcha-card.is-solved {
  border-color: rgba(34, 202, 154, 0.45);
  background: linear-gradient(180deg, #f7fffc 0%, #f0fbf7 100%);
}

.captcha-card.is-missed {
  border-color: rgba(218, 79, 79, 0.42);
  background: linear-gradient(180deg, #fffafa 0%, #fff5f5 100%);
  animation: captchaShake 280ms ease;
}

.captcha-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.captcha-card-head strong {
  color: #071735;
  font-size: 15px;
  font-weight: 800;
}

.captcha-card-head span {
  color: #75849e;
  font-size: 12px;
  font-weight: 500;
}

.captcha-card.is-solved .captcha-card-head span {
  color: #17a977;
}

.captcha-image {
  position: relative;
  height: 112px;
  overflow: hidden;
  border: 1px solid rgba(203, 216, 237, 0.75);
  border-radius: 13px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 48%),
    radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.9) 0 8%, rgba(255, 255, 255, 0) 9%),
    linear-gradient(135deg, #dceaff 0%, #f8fbff 42%, #cfe0ff 100%);
}

.captcha-image::before {
  position: absolute;
  inset: auto 0 0;
  height: 47px;
  background:
    linear-gradient(90deg, rgba(56, 108, 246, 0.34), rgba(56, 108, 246, 0.02)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 19px);
  clip-path: polygon(0 65%, 12% 48%, 24% 58%, 38% 34%, 54% 50%, 68% 26%, 84% 44%, 100% 20%, 100% 100%, 0 100%);
  content: "";
}

.captcha-image::after {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.25) 0 1px, transparent 1px 22px);
  content: "";
  opacity: 0.5;
}

.captcha-sun {
  position: absolute;
  top: 18px;
  right: 32px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.9);
}

.captcha-grid {
  position: absolute;
  right: 26px;
  bottom: 21px;
  width: 102px;
  height: 52px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(56, 108, 246, 0.26) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(56, 108, 246, 0.2) 1px, transparent 1px) 0 0 / 18px 18px,
    rgba(255, 255, 255, 0.28);
  transform: perspective(140px) rotateX(58deg) rotateZ(-6deg);
}

.captcha-cutout,
.captcha-piece {
  position: absolute;
  top: 42px;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  z-index: 2;
}

.captcha-cutout::before,
.captcha-piece::before {
  position: absolute;
  top: 11px;
  right: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  content: "";
}

.captcha-cutout::after,
.captcha-piece::after {
  position: absolute;
  bottom: -9px;
  left: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  content: "";
}

.captcha-cutout {
  background: rgba(7, 21, 47, 0.16);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.46),
    inset 0 12px 20px rgba(7, 21, 47, 0.08);
}

.captcha-cutout::before,
.captcha-cutout::after {
  background: rgba(7, 21, 47, 0.16);
}

.captcha-piece {
  left: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(72, 119, 255, 0.48)),
    linear-gradient(135deg, #dceaff, #afc8ff);
  box-shadow:
    0 8px 18px rgba(56, 108, 246, 0.24),
    inset 0 0 0 2px rgba(255, 255, 255, 0.58);
  transition: transform 160ms ease;
}

.captcha-piece::before,
.captcha-piece::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(72, 119, 255, 0.48)),
    linear-gradient(135deg, #dceaff, #afc8ff);
}

.captcha-card.is-dragging .captcha-piece {
  transition: none;
}

.captcha-card.is-solved .captcha-piece {
  box-shadow:
    0 10px 24px rgba(34, 202, 154, 0.24),
    inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.captcha-slider {
  position: relative;
  height: 44px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #d6e0ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.captcha-slider-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56, 108, 246, 0.18), rgba(56, 108, 246, 0.33));
  transition: width 160ms ease;
}

.captcha-card.is-dragging .captcha-slider-progress {
  transition: none;
}

.captcha-slider-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8795ad;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
}

.captcha-card.is-solved .captcha-slider-text {
  color: #17a977;
  font-weight: 700;
  opacity: 0;
}

.captcha-slider-handle {
  position: absolute;
  top: 3px;
  left: 3px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d75f6, #2459f4);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(56, 108, 246, 0.28);
  touch-action: none;
  transition:
    transform 160ms ease,
    background 160ms ease;
  z-index: 2;
}

.captcha-slider-handle svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.captcha-slider-handle:focus-visible {
  outline: 3px solid rgba(56, 108, 246, 0.18);
  outline-offset: 3px;
}

.captcha-card.is-dragging .captcha-slider-handle {
  transition: background 160ms ease;
}

.captcha-card.is-solved .captcha-slider-handle {
  background: linear-gradient(135deg, #22ca9a, #16a777);
  box-shadow: 0 10px 18px rgba(34, 202, 154, 0.28);
}

@keyframes captchaShake {
  0%,
  100% {
    transform: translateX(0);
  }

  35% {
    transform: translateX(-5px);
  }

  70% {
    transform: translateX(5px);
  }
}

.code-input-shell {
  gap: 12px;
  padding-right: 8px;
}

.send-code-button {
  flex: 0 0 auto;
  min-width: 96px;
  height: 38px;
  padding: 0 13px;
  border-radius: 9px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.send-code-button:not(:disabled):hover,
.send-code-button:not(:disabled):focus-visible {
  background: var(--blue);
  color: #ffffff;
  outline: none;
}

.send-code-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.modal-submit-button {
  display: grid;
  width: 100%;
  height: 54px;
  place-items: center;
  margin-top: 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #3463f5 0%, #3d75f6 100%);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(54, 101, 245, 0.2);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.modal-submit-button:hover,
.modal-submit-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(54, 101, 245, 0.26);
  outline: none;
}

.modal-submit-button:disabled {
  cursor: wait;
  opacity: 0.84;
  transform: none;
}

.modal-form-message {
  min-height: 18px;
  margin: 12px 0 0;
  color: #75849e;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.modal-form-message.is-error {
  color: #d14a4a;
}

.modal-form-message.is-success {
  color: #168a60;
}

@media (max-width: 1200px) {
  .brand-message {
    margin-left: 40px;
  }

  .brand-message h1 {
    font-size: 36px;
  }

  .brand-message p {
    font-size: 20px;
  }

  .capability-row {
    gap: 28px;
    margin-left: 40px;
  }

  .capability-item {
    grid-template-columns: 38px max-content;
    gap: 10px;
    min-width: 0;
  }

  .auth-panel {
    padding-inline: 42px;
  }

  .manager-login-button {
    right: 42px;
  }
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 680px;
    padding: 32px 24px 40px;
  }

  .brand-message {
    margin-top: 82px;
    margin-left: 0;
  }

  .brand-message h1 {
    white-space: normal;
  }

  .capability-row {
    flex-direction: column;
    gap: 18px;
    margin-top: 36px;
    margin-left: 0;
  }

  .brand-footer {
    bottom: 28px;
    padding: 0 24px;
    font-size: 13px;
    letter-spacing: 4px;
  }

  .auth-panel {
    min-height: auto;
    padding: 96px 20px 96px;
  }

  .manager-login-button {
    top: 34px;
    right: 50%;
    transform: translateX(50%);
  }

  .manager-login-button:hover,
  .manager-login-button:focus-visible {
    transform: translateX(50%) translateY(-2px);
  }

  .auth-card {
    width: min(512px, 100%);
    height: auto;
  }

  .support-footer {
    right: 50%;
    bottom: 34px;
    transform: translateX(50%);
    white-space: nowrap;
  }

  .help-popover {
    left: 0;
    transform: translate(0, 10px) scale(0.96);
  }

  .help-popover::after {
    left: 32px;
  }

  .help-link:hover .help-popover,
  .help-link:focus-visible .help-popover,
  .help-link:focus-within .help-popover {
    transform: translate(0, 0) scale(1);
  }

  .support-qr-popover {
    right: 0;
    transform: translate(0, 10px) scale(0.96);
  }

  .support-qr-popover::after {
    right: 34px;
  }

  .contact-link:hover .support-qr-popover,
  .contact-link:focus-visible .support-qr-popover,
  .contact-link:focus-within .support-qr-popover {
    transform: translate(0, 0) scale(1);
  }
}

@media (max-width: 560px) {
  .brand-icon {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 34px;
  }

  .brand-message h1 {
    font-size: 32px;
  }

  .auth-card {
    padding: 38px 24px 34px;
  }

  .auth-header h2 {
    font-size: 25px;
  }

  .input-shell,
  .submit-button,
  .code-login-button {
    height: 54px;
  }

  .modal-backdrop {
    padding: 14px;
  }

  .code-modal {
    padding: 28px 20px 24px;
    border-radius: 18px;
  }

  .manager-modal {
    padding: 30px 20px 26px;
    border-radius: 20px;
  }

  .manager-modal-header {
    padding-inline: 38px;
  }

  .code-modal-header {
    padding-right: 38px;
  }

  .code-modal-header h2 {
    font-size: 23px;
  }

  .manager-modal-header h2 {
    font-size: 24px;
  }

  .manager-qr-shell {
    width: min(264px, calc(100vw - 84px));
    height: min(264px, calc(100vw - 84px));
  }

  .manager-qr-shell img {
    width: min(220px, calc(100vw - 128px));
    height: min(220px, calc(100vw - 128px));
  }

  .captcha-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .send-code-button {
    min-width: 86px;
    padding-inline: 10px;
    font-size: 13px;
  }
}

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