/* Login owns its layout; no shared legacy login, brand, field or button classes. */
.pm-auth {
  --pm-auth-ink: #233344;
  --pm-auth-muted: #607181;
  --pm-auth-line: #dce3e9;
  --pm-auth-red: #bb1f2d;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 40px 24px;
  color: var(--pm-auth-ink);
  background: #f3f5f7;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: normal;
}

.pm-auth *,
.pm-auth *::before,
.pm-auth *::after {
  box-sizing: border-box;
}

.pm-auth .pm-auth-panel {
  width: min(100%, 400px);
  min-width: 0;
  margin: 0;
  padding: 30px 32px;
  border: 1px solid var(--pm-auth-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 18px rgb(31 48 63 / 4%);
}

.pm-auth .pm-auth-identity {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
}

.pm-auth .pm-auth-logo {
  display: block;
  width: 52px;
  height: 52px;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
  background: #fff;
}

.pm-auth .pm-auth-title {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--pm-auth-ink);
  font-size: 22px;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
  word-break: normal;
  overflow-wrap: break-word;
}

.pm-auth .pm-auth-content,
.pm-auth .pm-auth-field {
  min-width: 0;
}

.pm-auth .pm-auth-heading {
  margin: 0;
  padding: 0;
  color: var(--pm-auth-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.pm-auth .pm-auth-description {
  margin: 6px 0 24px;
  padding: 0;
  color: var(--pm-auth-muted);
  font-size: 14px;
  line-height: 1.7;
}

.pm-auth .pm-auth-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.pm-auth .pm-auth-label {
  display: block;
  margin: 0 0 7px;
  padding: 0;
  color: var(--pm-auth-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.pm-auth .pm-auth-input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #bfcbd5;
  border-radius: 4px;
  outline: none;
  color: var(--pm-auth-ink);
  background: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: none;
}

.pm-auth .pm-auth-input::placeholder {
  color: #798692;
  opacity: 1;
}

.pm-auth .pm-auth-input:focus {
  border-color: #8f1320;
  outline: 2px solid #f5dce0;
  outline-offset: 1px;
}

.pm-auth .pm-auth-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 0;
  color: #4c5e6e;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  cursor: pointer;
}

.pm-auth .pm-auth-checkbox {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  min-width: 17px;
  min-height: 17px;
  margin: 0;
  padding: 0;
  accent-color: var(--pm-auth-red);
  cursor: pointer;
}

.pm-auth .pm-auth-hint {
  margin: -3px 0 0;
  padding: 0;
  color: var(--pm-auth-muted);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.pm-auth .pm-auth-hint:empty {
  display: none;
}

.pm-auth .pm-auth-submit {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--pm-auth-red);
  border-radius: 4px;
  color: #fff;
  background: var(--pm-auth-red);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}

.pm-auth .pm-auth-submit:hover {
  border-color: #9f1724;
  background: #9f1724;
}

.pm-auth .pm-auth-submit:focus-visible,
.pm-auth .pm-auth-checkbox:focus-visible {
  outline: 2px solid #8f1320;
  outline-offset: 3px;
}

.pm-auth .pm-auth-submit:disabled {
  opacity: .65;
  cursor: wait;
}

@media (max-width: 480px) {
  .pm-auth {
    padding: 24px 16px;
  }

  .pm-auth .pm-auth-panel {
    padding: 26px 22px 28px;
  }

  .pm-auth .pm-auth-identity {
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 0;
  }

  .pm-auth .pm-auth-logo {
    width: 48px;
    height: 48px;
  }

  .pm-auth .pm-auth-title {
    font-size: 20px;
  }

  .pm-auth .pm-auth-description {
    margin-bottom: 20px;
  }
}

@media (max-height: 700px) {
  .pm-auth {
    align-items: start;
  }
}
