:root {
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #24324a;
  background: #f4f8fd;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 5%, rgba(104, 158, 229, 0.14), transparent 34rem),
    #f4f8fd;
}

button,
input {
  font: inherit;
}

.access-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px 24px;
}

.access-card {
  width: min(100%, 520px);
  border: 1px solid #dbe6f3;
  border-radius: 24px;
  padding: 42px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 55px rgba(44, 83, 137, 0.12);
}

.access-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
}

.access-brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, 10px);
  grid-template-rows: repeat(2, 10px);
  place-content: center;
  gap: 4px;
  border-radius: 12px;
  background: #3473d4;
  box-shadow: 0 8px 18px rgba(52, 115, 212, 0.24);
}

.access-brand__mark span {
  border-radius: 3px;
  background: #fff;
}

.access-brand__mark span:last-child {
  background: #aee2c9;
}

.access-brand h1 {
  margin: 0;
  color: #1f3150;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.access-brand p {
  margin: 5px 0 0;
  color: #70809a;
  font-size: 14px;
}

.access-form-wrap {
  margin-top: 34px;
}

.access-form-wrap h2 {
  margin: 0 0 16px;
  color: #293a56;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

#access-form {
  display: grid;
  gap: 12px;
}

#access-password {
  width: 100%;
  height: 50px;
  border: 1px solid #cddcf0;
  border-radius: 12px;
  padding: 0 16px;
  color: #24324a;
  background: #fff;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

#access-password::placeholder {
  color: #9aa8bb;
}

#access-password:focus {
  border-color: #5b91df;
  box-shadow: 0 0 0 4px rgba(52, 115, 212, 0.13);
}

#access-submit {
  height: 50px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #3473d4;
  box-shadow: 0 9px 22px rgba(52, 115, 212, 0.22);
  cursor: pointer;
  font-weight: 700;
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

#access-submit:hover:not(:disabled) {
  background: #255bb1;
  box-shadow: 0 11px 25px rgba(52, 115, 212, 0.27);
  transform: translateY(-1px);
}

#access-submit:focus-visible {
  outline: 3px solid rgba(52, 115, 212, 0.25);
  outline-offset: 3px;
}

#access-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.access-error {
  min-height: 22px;
  margin: -2px 0 0;
  color: #b34848;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.usage-notice {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  border: 1px solid #d7e6f8;
  border-radius: 14px;
  padding: 15px 16px;
  color: #536985;
  background: #f3f8ff;
  font-size: 13px;
  line-height: 1.65;
}

.usage-notice__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  background: #5f93dc;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.usage-notice p {
  margin: 0;
}

.usage-notice p + p {
  margin-top: 5px;
}

.usage-notice strong {
  color: #365f98;
  font-weight: 700;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

@media (max-width: 560px) {
  .access-page {
    align-items: start;
    padding: 24px 16px;
  }

  .access-card {
    border-radius: 20px;
    padding: 30px 22px 24px;
  }

  .access-brand {
    align-items: flex-start;
  }

  .access-brand__mark {
    width: 40px;
    height: 40px;
  }

  .access-brand h1 {
    font-size: 21px;
  }

  .access-form-wrap {
    margin-top: 28px;
  }

  .usage-notice {
    padding: 14px;
  }
}

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