:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #20282b;
  background: #ffffff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; letter-spacing: 0; }
button, a, input { -webkit-tap-highlight-color: transparent; }

.login {
  width: min(100% - 48px, 420px);
  margin: 0 auto;
  padding: 88px 0 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  margin-bottom: 40px;
  font-size: 23px;
  font-weight: 600;
}

.brand img { display: block; flex: 0 0 52px; object-fit: contain; }
.heading { margin-bottom: 28px; }
.eyebrow { margin: 0 0 9px; color: #747e82; font-size: 13px; line-height: 1.5; }
h1 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.subtitle { margin: 12px 0 0; color: #657075; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 500; }
input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  height: 52px;
  padding: 12px 14px;
  border: 1px solid #cdd4d7;
  border-radius: 6px;
  background: #fff;
  color: #20282b;
  font-size: 16px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
input::placeholder { color: #8b9498; opacity: 1; }
input:not([type="checkbox"]):focus { border-color: #087f80; box-shadow: 0 0 0 3px #e0f2ef; }
input[aria-invalid="true"] { border-color: #bb4148; }
input:disabled { background: #f7f9f9; color: #747e82; }
.field-hint { margin: 9px 0 0; color: #747e82; font-size: 12px; line-height: 1.5; }

.primary, .secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.primary { margin-top: 24px; border: 1px solid #087f80; background: #087f80; color: #fff; }
.primary:hover { background: #076e70; border-color: #076e70; }
.primary:active { background: #065c5e; border-color: #065c5e; }
.primary:disabled { background: #87b7b5; border-color: #87b7b5; cursor: wait; }
.secondary { margin-top: 12px; border: 1px solid transparent; background: transparent; color: #627074; }
.secondary:hover { background: #f3f6f6; color: #20282b; }
.secondary:disabled { color: #929a9d; cursor: wait; }
button:focus-visible, a:focus-visible, input[type="checkbox"]:focus-visible { outline: 3px solid #88c6c1; outline-offset: 3px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; font-weight: 400; color: #657075; cursor: pointer; }
.checkbox-label input { width: 16px; height: 16px; margin: 0; accent-color: #087f80; }

.notice { margin: 0 0 22px; padding: 12px 14px; border-radius: 6px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.error { background: #fff0ef; color: #a63339; border: 1px solid #f2d2d0; }
.initial-loading { display: flex; align-items: center; gap: 10px; color: #747e82; font-size: 14px; min-height: 52px; }
.spinner { width: 16px; height: 16px; border: 2px solid #dce7e6; border-top-color: #087f80; border-radius: 50%; animation: spin 800ms linear infinite; flex: 0 0 16px; }
.account dl { margin: 0; padding: 6px 0; border-top: 1px solid #e8edee; border-bottom: 1px solid #e8edee; }
.account dl > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 12px 0; font-size: 14px; line-height: 1.6; }
.account dt { color: #747e82; }
.account dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.bot-link { margin-top: 28px; }
footer { margin-top: 28px; padding-top: 18px; border-top: 1px solid #e8edee; color: #879094; font-size: 12px; line-height: 1.6; min-height: 38px; }
#expiry { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  .login { padding-top: 44px; }
  .brand { margin-bottom: 34px; }
}
@media (max-height: 680px) and (min-width: 481px) {
  .login { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
