html.mingyue-auth-locked,
html.mingyue-auth-locked body {
  overflow: hidden;
}

body.mingyue-auth-pending #app {
  visibility: hidden;
  pointer-events: none;
}

.mingyue-auth-lock[hidden] {
  display: none !important;
}

.mingyue-auth-lock {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: #ffffff;
  color: #111111;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.mingyue-auth-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% -18%, rgba(245, 245, 245, 0.9) 0 26%, transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 54%, #f3f3f3 100%);
}

.mingyue-auth-lock::before,
.mingyue-auth-lock::after {
  content: none;
}

.mingyue-auth-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 70px 18px 30px;
}

.mingyue-auth-top {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  width: 100%;
  color: #111111;
  text-shadow: none;
}

.mingyue-auth-time {
  color: #111111;
  font-size: clamp(78px, 22vw, 106px);
  line-height: 0.92;
  font-weight: 740;
  letter-spacing: -0.062em;
  text-align: center;
}

.mingyue-auth-date {
  width: max-content;
  max-width: 240px;
  margin-inline: auto;
  color: rgba(17, 17, 17, 0.56);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-align: center;
  text-indent: 0.06em;
  white-space: nowrap;
}

.mingyue-auth-copy-input {
  width: min(238px, calc(100vw - 104px));
  height: 30px;
  margin-top: 2px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  box-sizing: border-box;
  outline: none;
  background: transparent;
  color: rgba(17, 17, 17, 0.52);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-shadow: none;
  text-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.mingyue-auth-copy-input::placeholder {
  color: rgba(17, 17, 17, 0.34);
  opacity: 1;
}

.mingyue-auth-copy-input:focus {
  background: rgba(17, 17, 17, 0.07);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.04);
}

.mingyue-auth-polaroids {
  display: none !important;
}

.mingyue-auth-card {
  position: relative;
  z-index: 5;
  width: min(338px, calc(100vw - 32px));
  min-height: 0;
  justify-self: center;
  align-self: end;
  display: grid;
  align-content: start;
  gap: 14px;
  box-sizing: border-box;
  padding: 27px 20px 34px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 31px;
  background: rgba(255, 255, 255, 0.9);
  color: #111111;
  box-shadow:
    0 22px 58px rgba(17, 17, 17, 0.07),
    0 6px 18px rgba(17, 17, 17, 0.035);
  transform: translateY(-52px);
}

.mingyue-auth-title {
  margin: 0 0 5px;
  color: #111111;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 820;
  letter-spacing: -0.032em;
  text-align: center;
}

.mingyue-auth-form {
  display: grid;
  gap: 12px;
}

.mingyue-auth-input {
  width: 100%;
  height: 47px;
  min-height: 47px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  padding: 0 18px;
  box-sizing: border-box;
  outline: none;
  background: rgba(255, 255, 255, 0.74);
  color: #111111;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  appearance: none;
  -webkit-appearance: none;
}

.mingyue-auth-input::placeholder {
  color: rgba(17, 17, 17, 0.38);
  opacity: 1;
  font-weight: 650;
}

.mingyue-auth-input:focus {
  border-color: rgba(17, 17, 17, 0.22);
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 0 0 3px rgba(17, 17, 17, 0.04);
}

.mingyue-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 2px;
}

.mingyue-auth-button {
  height: 46px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 760;
  transition: transform 0.16s ease, opacity 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.mingyue-auth-button:active {
  transform: scale(0.98);
}

.mingyue-auth-button--soft {
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #f1f1f1;
  color: rgba(17, 17, 17, 0.78);
}

.mingyue-auth-button--primary {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.16);
}

.mingyue-auth-button[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
}

.mingyue-auth-message {
  min-height: 0;
  margin: -2px 0 0;
  color: #d14d3f;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.mingyue-auth-message:empty {
  display: none;
}

.mingyue-auth-message[data-tone="ok"] {
  color: #2a9463;
}

.mingyue-auth-message[data-tone="warn"] {
  color: #d14d3f;
}

.mingyue-auth-footer {
  margin-top: -1px;
  color: rgba(17, 17, 17, 0.38);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 650;
  text-align: center;
}

.mingyue-auth-backdrop,
.mingyue-auth-brand,
.mingyue-auth-subtitle,
.mingyue-auth-field,
.mingyue-auth-label,
.mingyue-auth-tips {
  display: none !important;
}

@media (max-width: 420px) {
  .mingyue-auth-content {
    padding: 66px 16px 24px;
  }

  .mingyue-auth-card {
    width: min(338px, calc(100vw - 28px));
    padding: 25px 20px 32px;
    border-radius: 31px;
    transform: translateY(-46px);
  }
}

@media (max-width: 360px) {
  .mingyue-auth-content {
    padding: 58px 15px 18px;
  }

  .mingyue-auth-time {
    font-size: 70px;
    letter-spacing: -0.052em;
  }

  .mingyue-auth-copy-input {
    margin-top: 2px;
  }

  .mingyue-auth-card {
    gap: 12px;
    padding: 22px 17px 24px;
    transform: translateY(-32px);
  }

  .mingyue-auth-title {
    font-size: 21px;
  }
}

@media (max-height: 680px) {
  .mingyue-auth-content {
    padding-top: 42px;
    padding-bottom: 14px;
  }

  .mingyue-auth-time {
    font-size: 66px;
  }

  .mingyue-auth-copy-input {
    height: 30px;
    margin-top: 2px;
  }

  .mingyue-auth-card {
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 18px;
    transform: translateY(-18px);
  }

  .mingyue-auth-input,
  .mingyue-auth-button {
    height: 42px;
    min-height: 42px;
  }
}
