:root {
  color-scheme: light;
  --paper: #f5f5f1;
  --surface: #ffffff;
  --surface-soft: #fafaf7;
  --ink: #171a1d;
  --muted: #656c72;
  --faint: #8b9196;
  --line: #dfe1dd;
  --line-strong: #b9bdb8;
  --accent: #c94f37;
  --current: #1f6a4a;
  --on-ink: #ffffff;
  --font-sans: Inter, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Iowan Old Style", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
}

* { box-sizing: border-box; }

html,
body { min-height: 100%; }

body.wuton-auth {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

a { color: inherit; }

.auth-topbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  padding: 12px clamp(20px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.auth-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.auth-brand span {
  display: grid;
  line-height: 1.15;
}

.auth-brand strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.auth-brand small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.auth-layout {
  display: grid;
  width: min(calc(100% - 40px), 1120px);
  min-height: calc(100vh - 69px);
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  margin: 0 auto;
}

.auth-intro,
.auth-entry {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-intro {
  padding: clamp(54px, 9vw, 118px) clamp(42px, 7vw, 92px) clamp(54px, 9vw, 118px) 0;
}

.auth-entry {
  padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 7vw, 88px) clamp(42px, 5vw, 68px);
  border-left: 1px solid var(--line);
}

.auth-kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .11em;
}

.auth-intro h1,
.auth-entry h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.035em;
}

.auth-intro h1 {
  max-width: 560px;
  font-size: clamp(48px, 6.2vw, 78px);
  line-height: .98;
}

.auth-entry h2 {
  font-size: 34px;
  line-height: 1.1;
}

.auth-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.8;
}

.auth-principle {
  display: grid;
  max-width: 610px;
  grid-template-columns: auto auto auto auto auto auto auto;
  gap: 8px 10px;
  align-items: baseline;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
}

.auth-principle strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.auth-principle i {
  color: var(--line-strong);
  font-style: normal;
}

.auth-entry-head p {
  max-width: 440px;
  margin: 8px 0 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .045em;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

.auth-form input:focus {
  border-color: var(--ink);
  outline: 2px solid color-mix(in srgb, var(--ink) 7%, transparent);
  outline-offset: 1px;
}

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:active,
.auth-form input:autofill {
  border-color: var(--line-strong);
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  box-shadow: 0 0 0 1000px var(--surface) inset;
  transition: background-color 9999s ease-out 0s;
}

.auth-form input:-webkit-autofill:focus,
.auth-form input:autofill:focus {
  border-color: var(--ink);
  outline: 2px solid color-mix(in srgb, var(--ink) 7%, transparent);
  outline-offset: 1px;
}

.auth-password-field {
  position: relative;
}

.auth-password-field input {
  padding-right: 62px;
}

.auth-password-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 42px;
  padding: 4px 5px;
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font-size: 10px;
  transform: translateY(-50%);
}

.auth-password-field button:hover,
.auth-password-field button:focus-visible {
  color: var(--ink);
}

.auth-primary {
  min-height: 46px;
  margin-top: 2px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--on-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.auth-primary:hover { opacity: .9; }
.auth-primary:disabled { cursor: wait; opacity: .46; }

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 24px 0 14px;
  color: var(--faint);
  font-size: 10px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.auth-providers {
  display: grid;
  gap: 9px;
}

.auth-provider {
  display: grid;
  min-height: 56px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
}

.auth-provider:hover,
.auth-provider:focus-visible {
  border-color: var(--ink);
}

.auth-provider[aria-disabled="true"] {
  pointer-events: none;
  opacity: .42;
}

.auth-provider-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.auth-provider-mark-google {
  font-family: Georgia, serif;
  font-size: 15px;
}

.auth-provider-copy {
  display: grid;
  line-height: 1.2;
}

.auth-provider-copy strong {
  font-size: 12px;
  font-weight: 650;
}

.auth-provider-copy small {
  margin-top: 4px;
  color: var(--faint);
  font-size: 9px;
}

.auth-provider em {
  color: var(--faint);
  font-style: normal;
  font-size: 13px;
}

.auth-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.auth-status[data-state="error"] { color: var(--accent); }
.auth-status[data-state="success"] { color: var(--current); }

.auth-foot {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.65;
}

html[data-theme="dark"] .auth-primary {
  border-color: rgba(245,245,245,.28);
  background: #454b61;
  color: #f5f5f5;
}

html[data-theme="dark"] .auth-provider,
html[data-theme="dark"] .auth-form input {
  background: var(--surface);
}

@media (max-width: 820px) {
  .auth-layout {
    display: block;
    width: min(calc(100% - 36px), 620px);
  }

  .auth-intro {
    padding: 56px 0 40px;
  }

  .auth-intro h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .auth-principle {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
  }

  .auth-entry {
    padding: 38px 0 64px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .auth-topbar {
    min-height: 58px;
    padding: 10px 18px;
  }

  .auth-layout {
    width: calc(100% - 32px);
  }

  .auth-intro {
    padding-top: 42px;
  }

  .auth-lead {
    font-size: 14px;
  }

  .auth-entry h2 {
    font-size: 30px;
  }
}
