.haoyu-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(18 25 40 / 60%);
}
.haoyu-login-dialog {
  width: min(520px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 18px;
  background: #fff;
  color: #253047;
  border-radius: 7px;
  box-shadow: 0 20px 60px rgb(14 24 44 / 25%);
}
.haoyu-login-head,
.haoyu-login-actions,
.haoyu-login-input {
  display: flex;
  align-items: center;
  gap: 9px;
}
.haoyu-login-head { justify-content: space-between; }
.haoyu-login-head h2 { margin: 0; font-size: 19px; }
.haoyu-login-note { margin: 10px 0; color: #5c687c; font-size: 13px; line-height: 1.5; }
.haoyu-login-error { min-height: 20px; margin: 5px 0; color: #c23948; font-size: 13px; }
.haoyu-login-screen {
  display: grid;
  place-items: center;
  min-height: 210px;
  overflow: auto;
  background: #f4f6f8;
  border: 1px solid #e2e6ed;
}
.haoyu-login-screen img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 300px);
  width: auto;
  height: auto;
  cursor: crosshair;
}
.haoyu-login-input { margin-top: 12px; }
.haoyu-login-input input {
  min-width: 0;
  flex: 1;
  padding: 9px 11px;
  border: 1px solid #d8dee9;
  border-radius: 5px;
  background: #fff;
  color: #253047;
}
.haoyu-login-dialog button {
  flex-shrink: 0;
  padding: 9px 13px;
  border: 1px solid #d8dee9;
  border-radius: 5px;
  background: #fff;
  color: #263348;
}
.haoyu-login-dialog button:disabled { cursor: not-allowed; opacity: .55; }
.haoyu-login-dialog button.primary { border-color: #4d61ce; background: #4d61ce; color: #fff; }
.haoyu-login-modes { display: flex; gap: 16px; margin: 8px 0 16px; }
.haoyu-login-modes label { display: flex; align-items: center; gap: 5px; }
.haoyu-login-fields { display: grid; gap: 12px; }
.haoyu-login-agreement { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: #526071; cursor: pointer; }
.haoyu-login-agreement input { accent-color: #d8a800; }
.haoyu-login-verification { margin-top: 16px; font-size: 13px; color: #526071; }
.haoyu-login-slider { position: relative; height: 40px; margin: 9px 24px 0; background: #e8ebed; border: 1px solid #cfd5d9; border-radius: 4px; touch-action: none; user-select: none; cursor: grab; }
.haoyu-login-slider [data-fill] { height: 100%; background: #e8cf62; }
.haoyu-login-slider [data-thumb] { position: absolute; top: -1px; left: 0; width: 48px; height: 42px; transform: translateX(-50%); display: grid; place-items: center; background: #ffd100; border: 1px solid #d8a800; border-radius: 4px; font-size: 20px; color: #252525; pointer-events: none; }
.haoyu-login-fields[hidden], .haoyu-login-dialog [hidden] { display: none !important; }
.haoyu-login-fields > input, .haoyu-login-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  border: 1px solid #d8dee9;
  border-radius: 5px;
  background: #fff;
  color: #253047;
}
.haoyu-login-dialog textarea { resize: vertical; }
.haoyu-login-dialog button.haoyu-login-toggle { margin-top: 10px; border: 0; color: #4d61ce; padding-left: 0; }
.haoyu-login-screen { margin-top: 10px; }
.haoyu-login-screen img { max-height: 340px; }
.haoyu-login-results { max-height: 320px; overflow: auto; font-size: 13px; }
.haoyu-login-results .error { color: #c23948; }
.haoyu-login-actions { margin-top: 14px; flex-wrap: wrap; }
.haoyu-login-actions .status { flex: 1; min-width: 130px; color: #68758b; font-size: 13px; }
@media (max-width: 600px) {
  .haoyu-login-dialog { padding: 13px; }
  .haoyu-login-input { flex-wrap: wrap; }
  .haoyu-login-input input { flex-basis: 100%; }
}
