:root {
  --ink: #080808;
  --muted: #4f6689;
  --line: #d4e3f9;
  --green: #07b75a;
  --green-hover: #059a4c;
  --green-ink: #067d3b;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
h1,
h2,
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a,
button,
input {
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green-ink);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  background: #fff;
  padding: 12px;
  z-index: 5;
}
.skip-link:focus {
  top: 12px;
}
.site-announcement {
  background: #000;
  color: #fff;
  min-height: 32px;
  padding: 7px 24px;
  text-align: center;
}
.site-announcement p {
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.auth-header {
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.header-inner,
.footer-inner {
  width: min(1320px, calc(100% - 112px));
  margin: auto;
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  font-size: 34px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -1.5px;
  white-space: nowrap;
}
.brand span {
  font-size: 17px;
  font-weight: 600;
  margin-left: 24px;
  letter-spacing: 0;
}
.header-inner nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.header-inner nav a {
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
}
.header-inner nav a:hover {
  color: var(--ink);
}
.header-inner nav #auth-nav-link {
  color: var(--green-ink);
}
.auth-layout {
  width: min(1120px, calc(100% - 112px));
  margin: auto;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 108px;
  padding: 58px 0 44px;
  align-content: center;
}
.account-context {
  padding-top: 74px;
}
.account-context h2 {
  font-size: 29px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.7px;
}
.account-context p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.account-context p + p {
  margin-top: 3px;
}
.account-calf {
  display: block;
  width: 220px;
  height: 142px;
  margin: 82px 0 0 14px;
  object-fit: contain;
}
.auth-panel {
  min-width: 0;
}
.auth-panel h1 {
  font-size: 36px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.9px;
}
.auth-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 7px;
}
#auth-form {
  display: grid;
  gap: 19px;
  margin-top: 24px;
}
.auth-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.auth-field label {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}
.auth-field input {
  display: block;
  min-width: 0;
  width: 100%;
  height: 50px;
  border: 1px solid #b8cbe6;
  border-radius: 7px;
  padding: 0 15px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.auth-field input::placeholder {
  color: #899dbb;
  opacity: 1;
}
.auth-field input:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px #07b75a14;
}
.auth-field input[aria-invalid="true"] {
  border-color: #b33b33;
}
.code-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 10px;
}
.code-input-row button {
  min-width: 0;
  border: 1px solid var(--green);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  color: var(--green-ink);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 650;
}
.code-input-row button:hover:not(:disabled) {
  background: #eff8f2;
}
.field-notice {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.field-notice.demo-code {
  color: var(--green-ink);
}
.auth-submit {
  width: 100%;
  height: 50px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.15s;
}
.auth-submit:hover:not(:disabled) {
  background: var(--green-hover);
  border-color: var(--green-hover);
}
.auth-switch {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 19px;
}
.auth-switch a {
  color: var(--green-ink);
  margin-left: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.guest-link {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.guest-link:hover {
  color: var(--ink);
}
.auth-error,
.auth-status {
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.auth-error {
  color: #a3322b;
  background: #fff6f5;
}
.auth-status {
  color: var(--green-ink);
  background: #eff8f2;
}
.login-methods {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-top: 23px;
}
.login-methods button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.login-methods button[aria-pressed="true"] {
  color: var(--green-ink);
  border-bottom-color: var(--green);
}
.site-footer {
  background: #000;
  color: #fff;
  flex-shrink: 0;
  padding: 26px 0 28px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.footer-brand {
  font-size: 20px;
  font-weight: 750;
  line-height: 1.5;
}
#site-footer-text {
  color: #c6cfdb;
  max-width: 800px;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.footer-inner nav {
  display: flex;
  gap: 34px;
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1.5;
}
.footer-inner nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (min-width: 1200px) {
  .auth-layout {
    min-height: 660px;
  }
}
@media (max-width: 1100px) {
  .header-inner,
  .footer-inner {
    width: calc(100% - 64px);
  }
  .auth-layout {
    width: calc(100% - 96px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 50px;
  }
  .account-context h2 {
    font-size: 26px;
  }
  .account-context p {
    font-size: 14px;
  }
}
@media (max-width: 760px) {
  .auth-layout {
    width: min(480px, calc(100% - 48px));
    grid-template-columns: 1fr;
    gap: 0;
    padding: 40px 0;
  }
  .account-context {
    display: none;
  }
  .header-inner,
  .footer-inner {
    width: calc(100% - 40px);
  }
  .header-inner {
    min-height: 65px;
  }
  .brand {
    font-size: 30px;
  }
  .brand span {
    font-size: 12px;
    margin-left: 8px;
  }
  .header-inner nav {
    gap: 18px;
  }
  .header-inner nav a {
    font-size: 12px;
  }
  .header-inner nav a:first-child {
    display: none;
  }
  .auth-panel h1 {
    font-size: 32px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .site-footer {
    padding: 24px 0;
  }
}
@media (max-width: 420px) {
  .auth-layout {
    width: calc(100% - 40px);
    padding: 32px 0 38px;
  }
  .auth-field input {
    font-size: 16px;
  }
  .code-input-row {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
  }
  .code-input-row button {
    font-size: 13px;
  }
  .brand span {
    display: none;
  }
  .auth-description {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
