.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, #f8fbff 0%, #ffffff 48%, #ffffff 100%);
}
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 2.5rem;
  position: relative;
}
.auth-main::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 10%, transparent 90%);
  pointer-events: none;
}
.auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  margin: .35rem 0 .5rem;
}
.auth-lead {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 1.5rem;
}
.auth-form {
  display: grid;
  gap: 1rem;
}
.auth-form label {
  display: grid;
  gap: .4rem;
}
.auth-form label span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.auth-form input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: .72rem .9rem;
  font: inherit;
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.auth-form input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.auth-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: .65rem .85rem;
  font-size: .86rem;
}
.auth-switch {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
.auth-switch a {
  color: var(--accent-deep);
  font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }
.btn[disabled] { opacity: .65; cursor: not-allowed; }

.account-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.account-type > span.label-text {
  grid-column: 1 / -1;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.account-type label.choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: .7rem .6rem;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
  margin: 0;
}
.account-type label.choice input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}
.account-type label.choice:has(input:checked),
.account-type label.choice.is-active {
  border-color: #93c5fd;
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.company-field[hidden] { display: none !important; }

.auth-card-wide { width: min(100%, 460px); }
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
  margin: 0 0 1.1rem;
  padding: .25rem;
  background: #f3f4f6;
  border-radius: 12px;
}
.auth-tab {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: .55rem .35rem;
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
}
.auth-tab.is-active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  align-items: center;
}
.code-row .btn { white-space: nowrap; }
.wechat-box { text-align: center; }
.qr-wrap {
  margin: .75rem auto 1rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.qr-wrap img {
  width: 200px;
  height: 200px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}
.qr-status { color: #6b7280; font-size: .9rem; }
.hint { color: #6b7280; font-size: .88rem; margin: 0 0 .75rem; }
