* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-page {
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.login-reference-page {
  color: #0b326f;
  background: #eef5ff;
}

.login-wrapper {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(42px, 7vh, 76px) 24px;
}

.login-card {
  width: min(628px, calc(100vw - 48px));
  padding: clamp(48px, 5.2vh, 58px) clamp(52px, 4.5vw, 78px) 38px;
  background: #fff;
  border: 1px solid rgba(207, 220, 238, .72);
  border-radius: 13px;
  box-shadow: 0 22px 58px rgba(50, 91, 144, .13);
}

@media (min-width: 681px) {
  .login-card {
    transform: scale(.75);
    transform-origin: center;
  }
}

.login-panel {
  width: 100%;
  color: #0b326f;
}

.login-logo {
  margin-bottom: 34px;
}

.login-logo h2 {
  color: #092e70;
  font-size: clamp(28px, 2.05vw, 36px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .045em;
  white-space: nowrap;
}

.login-heading-mark {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 12px;
  margin-top: 10px;
}

.login-heading-mark::before {
  content: "";
  width: 45px;
  height: 5px;
  background: #1477f8;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(20, 119, 248, .23);
}

.login-heading-mark::after {
  content: "";
  width: 5px;
  height: 5px;
  background: #1477f8;
  border-radius: 50%;
}

.login-heading-mark span {
  display: none;
}

.login-field {
  display: block;
  margin-bottom: 26px;
}

.login-field-label {
  display: block;
  margin-bottom: 10px;
  color: #103b7c;
  font-size: 15px;
  font-weight: 800;
  line-height: 22px;
}

.login-input-shell {
  position: relative;
  display: block;
}

.login-input-shell > svg {
  position: absolute;
  left: 20px;
  top: 50%;
  z-index: 1;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #a9afb8;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.login-form input {
  width: 100%;
  height: 62px;
  padding: 0 58px;
  color: #19345d;
  border: 1px solid #cfd7e2;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  font-size: 16px;
  box-shadow: inset 0 1px 2px rgba(14, 50, 103, .025);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.login-form input::placeholder {
  color: #aaadb4;
}

.login-form input:focus {
  border-color: #2b83f3;
  box-shadow: 0 0 0 3px rgba(43, 131, 243, .1);
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #a4a9b1;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #247bea;
  outline: 0;
}

.password-toggle svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-eye-open,
.password-toggle[aria-pressed="true"] .password-eye-closed {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-eye-open {
  display: block;
}

.login-captcha {
  margin-bottom: 30px;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(155px, 38%) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.captcha-code {
  width: 100%;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111820;
  border: 1px solid #cfd7e2;
  border-radius: 7px;
  background:
    linear-gradient(12deg, transparent 48%, rgba(98, 214, 106, .32) 49% 50%, transparent 51%),
    linear-gradient(-16deg, transparent 43%, rgba(130, 93, 246, .28) 44% 45%, transparent 46%),
    radial-gradient(circle at 18% 30%, rgba(91, 220, 105, .48) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 68%, rgba(151, 100, 255, .42) 0 1px, transparent 1.5px),
    #f3f5f5;
  background-size: auto, auto, 17px 17px, 23px 23px, auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 9px;
  text-indent: 9px;
  user-select: none;
}

.login-form .captcha-input {
  min-width: 0;
  height: 62px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

.captcha-refresh {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 0;
  color: #1478f7;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
}

.captcha-refresh:hover,
.captcha-refresh:focus-visible {
  color: #075fd2;
  outline: 0;
}

.captcha-refresh:disabled {
  cursor: wait;
  opacity: .55;
}

.captcha-refresh svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

.captcha-refresh:hover svg,
.captcha-refresh:focus-visible svg {
  transform: rotate(90deg);
}

.captcha-status {
  display: block;
  min-height: 20px;
  margin-top: 5px;
  color: #9ba8b8;
  font-size: 12px;
  line-height: 20px;
}

.login-captcha.is-error .captcha-status {
  color: #d9304f;
}

.login-captcha.is-error .captcha-input {
  border-color: #e2556c;
  box-shadow: 0 0 0 3px rgba(226, 85, 108, .08);
}

.login-submit {
  width: 100%;
  height: 66px;
  color: #fff;
  border: 0;
  border-radius: 7px;
  outline: 0;
  background: linear-gradient(100deg, #2c87fa, #075bd2);
  box-shadow: 0 12px 24px rgba(15, 103, 224, .2);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.login-submit:hover {
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(15, 103, 224, .26);
  transform: translateY(-1px);
}

.login-submit:active {
  transform: translateY(1px);
}

.login-submit:focus-visible {
  box-shadow: 0 0 0 4px rgba(20, 119, 248, .14), 0 12px 24px rgba(15, 103, 224, .2);
}

.login-message {
  min-height: 20px;
  margin-top: 8px;
  color: #d9304f;
  font-size: 12px;
  line-height: 20px;
}

.login-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: #9aa8bb;
  font-size: 14px;
}

.login-security-note svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 38, 77, .3);
  backdrop-filter: blur(4px);
}

.login-alert-dialog {
  width: min(430px, calc(100vw - 48px));
  padding: 26px;
  color: #111827;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 22px 60px rgba(0, 23, 69, .24);
}

.login-alert-title {
  margin-bottom: 12px;
  color: #0b3475;
  font-size: 19px;
  font-weight: 700;
}

.login-alert-message {
  min-height: 30px;
  color: #52647f;
  font-size: 14px;
  line-height: 1.55;
}

.login-alert-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.login-alert-button {
  min-width: 88px;
  height: 38px;
  color: #fff;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(100deg, #2c87fa, #075bd2);
  font-size: 14px;
  font-weight: 700;
}

@media (max-height: 820px) and (min-width: 681px) {
  .login-wrapper {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .login-card {
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .login-logo {
    margin-bottom: 24px;
  }

  .login-field {
    margin-bottom: 19px;
  }

  .login-captcha {
    margin-bottom: 22px;
  }

  .login-form input,
  .captcha-code,
  .login-form .captcha-input,
  .login-submit {
    height: 56px;
  }

  .login-security-note {
    margin-top: 8px;
  }
}

@media (max-width: 680px) {
  .login-reference-page {
    background: #fff;
  }

  .login-wrapper {
    display: block;
    min-height: 100vh;
    padding: 0;
  }

  .login-card {
    width: 100%;
    min-height: 100vh;
    padding: clamp(48px, 8vh, 74px) clamp(22px, 8vw, 52px) 30px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-logo {
    margin-bottom: 34px;
  }

  .login-logo h2 {
    font-size: clamp(24px, 6.6vw, 30px);
  }

  .login-field {
    margin-bottom: 25px;
  }

  .login-form input,
  .captcha-code,
  .login-form .captcha-input {
    height: 62px;
  }

  .login-captcha {
    margin-bottom: 32px;
  }

  .login-submit {
    height: 66px;
  }

  .login-security-note {
    margin-top: 26px;
  }
}

@media (max-width: 420px) {
  .login-card {
    padding: 44px 22px 26px;
  }

  .login-logo {
    margin-bottom: 30px;
  }

  .login-logo h2 {
    font-size: 24px;
    letter-spacing: .02em;
  }

  .login-field-label {
    font-size: 14px;
  }

  .login-form input {
    height: 58px;
    padding-left: 52px;
    padding-right: 50px;
    font-size: 15px;
  }

  .login-input-shell > svg {
    left: 17px;
    width: 21px;
  }

  .captcha-row {
    grid-template-columns: minmax(122px, 40%) minmax(0, 1fr);
    gap: 12px;
  }

  .captcha-code,
  .login-form .captcha-input {
    height: 58px;
  }

  .captcha-code {
    font-size: 23px;
    letter-spacing: 6px;
    text-indent: 6px;
  }

  .login-form .captcha-input {
    padding: 0 14px;
    font-size: 14px;
  }

  .captcha-refresh {
    font-size: 13px;
  }

  .login-submit {
    height: 62px;
    font-size: 18px;
  }

  .login-security-note {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-form input,
  .captcha-refresh svg,
  .login-submit {
    transition: none;
  }
}

.cdk-setup-overlay[hidden] {
  display: none;
}

body.cdk-setup-open {
  overflow: hidden;
}

.cdk-setup-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 28, 45, .72);
  backdrop-filter: blur(7px);
  animation: cdk-setup-fade .2s ease-out both;
}

.cdk-setup-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  padding: 30px 34px 28px;
  overflow-y: auto;
  border: 1px solid #bdd0db;
  border-radius: 8px;
  background:
    linear-gradient(rgba(19, 73, 103, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 73, 103, .035) 1px, transparent 1px),
    #f9fcfd;
  background-size: 22px 22px;
  box-shadow: 0 30px 90px rgba(1, 18, 30, .42);
  animation: cdk-setup-rise .28s cubic-bezier(.2, .8, .2, 1) both;
}

.cdk-setup-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #114c74, #168a9d, #75cdb4);
}

.cdk-setup-mark {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #1d5878;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.cdk-setup-mark span {
  padding: 5px 8px;
  border: 1px solid #bed1dc;
  background: #eef6f8;
}

.cdk-setup-mark strong {
  color: #1c9a9b;
  font-size: 18px;
}

.cdk-setup-kicker {
  margin: 0 0 6px;
  color: #16838e;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.cdk-setup-dialog h2 {
  margin: 0;
  color: #12334b;
  font-size: 25px;
  font-weight: 900;
}

.cdk-setup-intro {
  margin: 11px 0 20px;
  color: #647987;
  font-size: 12px;
  line-height: 1.75;
}

.cdk-setup-form {
  display: grid;
  gap: 13px;
}

.cdk-setup-credentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cdk-setup-form label {
  display: grid;
  gap: 6px;
}

.cdk-setup-form label > span {
  color: #315268;
  font-size: 12px;
  font-weight: 800;
}

.cdk-setup-form input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  color: #173b53;
  border: 1px solid #c6d5dd;
  border-radius: 4px;
  outline: 0;
  background: #fff;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cdk-setup-form input:focus {
  border-color: #16869a;
  box-shadow: 0 0 0 3px rgba(22, 134, 154, .12);
}

.cdk-setup-authorization {
  padding: 16px;
  border: 1px solid #c8d9e1;
  border-radius: 5px;
  background: rgba(255, 255, 255, .82);
}

.cdk-setup-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cdk-setup-section-heading > span {
  padding: 4px 7px;
  color: #fff;
  border-radius: 2px;
  background: #168592;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.cdk-setup-section-heading strong {
  color: #173b53;
  font-size: 13px;
}

.cdk-setup-options-message {
  min-height: 16px;
  margin: 0 0 10px;
  color: #6c808d;
  font-size: 11px;
}

.cdk-setup-options-message.error {
  color: #b13e48;
  font-weight: 700;
}

.cdk-setup-auth-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cdk-setup-auth-types.locked {
  grid-template-columns: minmax(220px, 1fr);
}

.cdk-setup-auth-types label[hidden] {
  display: none;
}

.cdk-setup-form .cdk-setup-auth-types label {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 57px;
  padding: 10px 9px;
  border: 1px solid #cbd9df;
  border-radius: 4px;
  background: #f9fcfd;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.cdk-setup-form .cdk-setup-auth-types label.active {
  border-color: #168797;
  background: #edf8f8;
  box-shadow: inset 0 0 0 1px #168797;
}

.cdk-setup-form .cdk-setup-auth-types label.unavailable {
  opacity: .45;
  cursor: not-allowed;
}

.cdk-setup-form .cdk-setup-auth-types input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cdk-setup-form .cdk-setup-auth-types span {
  color: #254b61;
  font-size: 12px;
  font-weight: 900;
}

.cdk-setup-form .cdk-setup-auth-types small {
  color: #7b8d98;
  font-size: 9px;
  line-height: 1.45;
}

.cdk-setup-auth-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #d7e2e7;
  border-radius: 4px;
  background: #f6fafb;
}

.cdk-setup-auth-panel[hidden] {
  display: none;
}

.cdk-setup-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.cdk-setup-select-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cdk-setup-select-grid.single {
  grid-template-columns: minmax(240px, 1fr);
}

.cdk-setup-form select {
  width: 100%;
  height: 38px;
  padding: 0 28px 0 9px;
  color: #21465c;
  border: 1px solid #c5d5dc;
  border-radius: 3px;
  outline: 0;
  background: #fff;
  font-size: 11px;
}

.cdk-setup-form select:focus {
  border-color: #16869a;
  box-shadow: 0 0 0 2px rgba(22, 134, 154, .1);
}

.cdk-setup-add-major {
  margin-top: 9px;
  padding: 7px 11px;
  color: #126477;
  border: 1px solid #b7d0d8;
  border-radius: 3px;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.cdk-setup-major-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
  margin-top: 9px;
  align-items: center;
}

.cdk-setup-major-chips > span {
  color: #81909a;
  font-size: 10px;
}

.cdk-setup-major-chips button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  color: #145d72;
  border: 1px solid #b7d3db;
  border-radius: 14px;
  background: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.cdk-setup-major-chips button i {
  color: #a34c55;
  font-size: 13px;
  font-style: normal;
}

.cdk-setup-all-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  color: #466477;
}

.cdk-setup-all-summary strong {
  color: #126477;
  font-size: 12px;
}

.cdk-setup-all-summary span {
  font-size: 11px;
}

.cdk-setup-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 11px;
  color: #76541f;
  border: 1px solid #e7d3a7;
  border-radius: 3px;
  background: #fff9ea;
  font-size: 11px;
}

.cdk-setup-notice strong {
  flex: 0 0 auto;
}

.cdk-setup-message {
  min-height: 18px;
  margin: -2px 0;
  color: #b13e48;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.cdk-setup-submit,
.cdk-setup-cancel {
  width: 100%;
  min-height: 44px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.cdk-setup-submit {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #104f78, #14899b);
  box-shadow: 0 10px 22px rgba(15, 101, 126, .2);
}

.cdk-setup-submit:hover:not(:disabled) {
  filter: brightness(1.06);
}

.cdk-setup-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.cdk-setup-cancel {
  min-height: 38px;
  color: #677c89;
  border: 1px solid #cfdae0;
  background: #fff;
}

@keyframes cdk-setup-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cdk-setup-rise {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .cdk-setup-overlay {
    padding: 10px;
  }

  .cdk-setup-dialog {
    max-height: calc(100vh - 20px);
    padding: 26px 18px 20px;
  }

  .cdk-setup-dialog h2 {
    font-size: 21px;
  }

  .cdk-setup-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .cdk-setup-credentials,
  .cdk-setup-auth-types,
  .cdk-setup-select-grid,
  .cdk-setup-select-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cdk-setup-overlay,
  .cdk-setup-dialog {
    animation: none;
  }
}
