/* Login, registration and password-flow screens from the supplied Modao PC UI. */
#authLayer.hitdeck-auth-ui {
  top: 80px;
  bottom: calc(70px + env(safe-area-inset-bottom));
  height: calc(var(--visual-vh) - 150px - env(safe-area-inset-bottom));
  background: var(--paper, #faf8f1);
  font-family: var(--font-ui, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.65;
  scroll-padding-top: 68px;
}
#authLayer.hitdeck-auth-ui .auth-box {
  width: min(600px, 100%);
  margin: 52px auto 44px;
  color: #171717;
}
#authLayer.hitdeck-auth-ui .auth-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 52px;
  padding-top: 8px;
  margin-bottom: 24px;
  background: var(--paper, #faf8f1);
}
#authLayer.hitdeck-auth-ui #closeAuth {
  top: 8px;
  min-width: 44px;
  min-height: 44px;
  padding-block: 8px;
}
#authLayer.hitdeck-auth-ui .auth-head h2 {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
}
#authLayer.hitdeck-auth-ui .auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
}
#authLayer.hitdeck-auth-ui .auth-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
#authLayer.hitdeck-auth-ui .auth-field label {
  display: block;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}
#authLayer.hitdeck-auth-ui .auth-field input {
  min-width: 0;
  width: 100%;
  height: 50px;
  padding: 12px 15px;
  border: 1px solid #d4d5cc;
  border-radius: 10px;
  background: #fff;
  color: #171717;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: none;
}
#authLayer.hitdeck-auth-ui .auth-password-field {
  position: relative;
  min-width: 0;
}
#authLayer.hitdeck-auth-ui .auth-password-field input {
  padding-right: 50px;
}
#authLayer.hitdeck-auth-ui .auth-password-toggle {
  position: absolute;
  top: 4px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #9a9a98;
  background: transparent;
  box-shadow: none;
  font-size: 22px;
  transform: none;
}
#authLayer.hitdeck-auth-ui .auth-forgot-link,
#authLayer.hitdeck-auth-ui .auth-back-link {
  align-self: start;
  width: fit-content;
  min-height: 0;
  margin: -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #353535;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: none;
}
#authLayer.hitdeck-auth-ui .auth-back-link {
  display: block;
  margin-top: 22px;
}
#authLayer.hitdeck-auth-ui .auth-error:empty {
  display: none;
}
#authLayer.hitdeck-auth-ui .auth-error {
  min-height: 0;
  margin: -6px 0;
  line-height: 1.6;
  font-size: 14px;
}
#authLayer.hitdeck-auth-ui .auth-submit {
  width: 100%;
  margin-top: 18px;
  flex: 0 0 auto;
  min-height: 50px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
#authLayer.hitdeck-auth-ui .auth-form .auth-submit:hover,
#authLayer.hitdeck-auth-ui .auth-form .auth-submit:active {
  margin-top: 18px;
}
#authLayer.hitdeck-auth-ui .auth-social-options {
  margin-top: 38px;
  padding-bottom: 0;
}
#authLayer.hitdeck-auth-ui .auth-social-divider {
  margin-bottom: 12px;
}
#authLayer.hitdeck-auth-ui .auth-provider:hover {
  filter: brightness(.97);
  transform: none;
}
#authLayer.hitdeck-auth-ui .auth-provider.google {
  background: #fff;
  color: #171717;
}
#authLayer.hitdeck-auth-ui .auth-provider {
  font-size: 16px;
  font-weight: 600;
}
#authLayer.hitdeck-auth-ui .auth-register-link,
#authLayer.hitdeck-auth-ui .auth-switch-copy {
  margin: 26px 0 16px;
  color: #353535;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
}
#authLayer.hitdeck-auth-ui .auth-register-link button,
#authLayer.hitdeck-auth-ui .auth-agreement button {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #ff2c1c;
  background: transparent;
  box-shadow: none;
  font: inherit;
  transform: none;
}
#authLayer.hitdeck-auth-ui .auth-register-link button {
  margin-left: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#authLayer.hitdeck-auth-ui .auth-register-options {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
#authLayer.hitdeck-auth-ui .auth-email-button,
#authLayer.hitdeck-auth-ui .auth-outline-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid #ff2c1c;
  border-radius: 10px;
  background: #ff2c1c;
  color: #fff;
  box-shadow: none;
  font-size: 16px;
  font-weight: 700;
  transform: none;
}
#authLayer.hitdeck-auth-ui .auth-email-button .bi {
  font-size: 21px;
}
#authLayer.hitdeck-auth-ui .auth-outline-button {
  color: #171717;
  background: #fff;
  font-weight: 600;
}
#authLayer.hitdeck-auth-ui .auth-agreement {
  margin: 26px 0 0;
  color: #353535;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}
#authLayer.hitdeck-auth-ui .auth-or-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  color: #a4a49e;
  font-size: 14px;
}
#authLayer.hitdeck-auth-ui .auth-or-divider::before,
#authLayer.hitdeck-auth-ui .auth-or-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #d7d7cf;
}
#authLayer.hitdeck-auth-ui .auth-code-field {
  display: flex;
  gap: 10px;
  min-width: 0;
}
#authLayer.hitdeck-auth-ui .auth-code-field input {
  flex: 1;
}
#authLayer.hitdeck-auth-ui .auth-code-field button {
  flex: 0 0 100px;
  min-height: 50px;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  background: #ff2c1c;
  color: #fff;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transform: none;
}
#authLayer.hitdeck-auth-ui .auth-subtitle {
  margin: -10px 0 26px;
  color: #999a92;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
}
#authLayer.hitdeck-auth-ui .auth-test-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
#authLayer.hitdeck-auth-ui .auth-provider-note {
  margin: 18px 0 0;
  color: #bc3128;
  font-size: 13px;
  line-height: 1.6;
}
#authLayer.hitdeck-auth-ui .auth-view-register-form .auth-head {
  margin-bottom: 24px;
}
#authLayer.hitdeck-auth-ui .auth-view-register-form .auth-agreement {
  margin-top: 14px;
}
#authLayer.hitdeck-auth-ui button:focus-visible {
  outline: 2px solid #ff2c1c;
  outline-offset: 3px;
}
.bi-eye::before { content: "\f341"; }
.bi-eye-slash::before { content: "\f340"; }
.bi-envelope::before { content: "\f32f"; }
@media (max-width: 599px) {
  #authLayer.hitdeck-auth-ui {
    top: 64px;
    bottom: calc(63px + env(safe-area-inset-bottom));
    height: calc(var(--visual-vh) - 127px - env(safe-area-inset-bottom));
  }
}
@media (max-width: 759px) {
  #authLayer.hitdeck-auth-ui .auth-box {
    margin-top: 30px;
    margin-bottom: 28px;
  }
  #authLayer.hitdeck-auth-ui .auth-head h2 {
    font-size: 24px;
  }
  #authLayer.hitdeck-auth-ui .auth-code-field button {
    flex-basis: 94px;
    padding-inline: 6px;
    font-size: 14px;
  }
  #authLayer.hitdeck-auth-ui .auth-form,
  #authLayer.hitdeck-auth-ui .auth-register-options {
    gap: 16px;
  }
  #authLayer.hitdeck-auth-ui .auth-provider,
  #authLayer.hitdeck-auth-ui .auth-email-button,
  #authLayer.hitdeck-auth-ui .auth-outline-button {
    min-height: 48px;
  }
  #authLayer.hitdeck-auth-ui .auth-agreement,
  #authLayer.hitdeck-auth-ui .auth-forgot-link {
    font-size: 14px;
  }
}
