:root {
  font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #424242;
  background: #eff2f5;
  font-synthesis: none;
  font-size: 14px;
  color-scheme: light;
  --login-red: #ff244e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 48px 24px 24px;
}
button, input { font: inherit; }
button { cursor: pointer; }
button, input { outline-offset: 4px; }
button:focus-visible, input:focus-visible { outline: 2px solid #ff6785; }
.login-card {
  width: 420px;
  max-width: 100%;
  min-height: 484px;
  padding: 40px 40px 64px;
  border-radius: 20px;
  background: #fdfdff;
  box-shadow: 0 18px 55px rgba(60, 77, 129, .16);
}
.login-heading { text-align: center; margin-bottom: 31px; }
.login-heading h1 {
  display: inline-block;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  color: #bc515e;
  background: linear-gradient(100deg, #d93658 0%, #a17d58 46%, #36b85f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-heading p { margin: 9px 0 0; color: #8a8a8a; line-height: 21px; }
.login-field + .login-field { margin-top: 25px; }
.login-field > label { display: block; line-height: 21px; margin-bottom: 8px; }
.login-field > label > span { color: #ff3c55; }
.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: white;
  transition: border-color .15s, box-shadow .15s;
}
.login-input-wrap:hover { border-color: #bcbcbc; }
.login-input-wrap:focus-within { border-color: #ff728c; box-shadow: 0 0 0 3px #ff244e0c; }
.login-input-icon { position: absolute; left: 12px; pointer-events: none; opacity: .88; }
.login-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 10px 13px 10px 31px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 14px;
  line-height: 24px;
  color: #292929;
  outline: 0;
}
.login-input-wrap input#password { padding-right: 42px; }
.login-input-wrap input[aria-invalid="true"] { color: #a52b43; }
.password-toggle {
  display: grid;
  place-items: center;
  position: absolute;
  right: 4px;
  width: 34px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  opacity: .52;
}
.password-toggle:hover { background: #f6f6f8; opacity: .85; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; min-height: 22px; }
.remember-option { display: flex; align-items: center; gap: 7px; cursor: pointer; line-height: 22px; }
.remember-option input { width: 16px; height: 16px; padding: 0; margin: 0; accent-color: #ff2f59; cursor: pointer; }
.forgot-password { border: 0; background: transparent; color: #ff1451; padding: 0; line-height: 22px; }
.forgot-password:hover { color: #d7073e; text-decoration: underline; text-underline-offset: 4px; }
.login-error { margin: 15px 0 -13px; color: #c32d4b; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.login-submit {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 30px;
  padding: 11px 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(100deg, #ff0051 0%, #ff454e 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
  box-shadow: 0 8px 16px #ff24552b;
  transition: box-shadow .15s, filter .15s;
}
.login-submit:hover:not(:disabled) { filter: brightness(1.04); box-shadow: 0 8px 20px #ff245540; }
.login-submit:active:not(:disabled) { filter: brightness(.97); }
.login-submit:disabled { cursor: wait; opacity: .7; box-shadow: none; }
.password-help {
  width: 380px;
  max-width: calc(100vw - 40px);
  padding: 28px;
  border: 0;
  border-radius: 18px;
  color: #424242;
  background: #fdfdff;
  box-shadow: 0 18px 55px #23345324;
}
.password-help::backdrop { background: #2732444d; }
.password-help h2 { margin: 0 0 17px; font-size: 20px; }
.password-help p { line-height: 1.8; }
.password-help-note { font-size: 12px; color: #888; }
.password-help .login-submit { margin-top: 24px; font-size: 14px; min-height: 44px; padding: 9px 20px; }
@media (max-width: 480px) {
  body { padding: 24px 20px; }
  .login-card { padding: 36px 28px 44px; min-height: 0; border-radius: 18px; }
  .login-heading h1 { font-size: 26px; }
  .login-heading { margin-bottom: 30px; }
}
@media (max-width: 340px) {
  body { padding: 18px 14px; }
  .login-card { padding: 32px 20px 36px; }
  .login-heading h1 { font-size: 23px; }
  .login-heading p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
