:root {
  color: #202124;
  background: #f7f7f5;
  font-family: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-shell { width: min(100%, 424px); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.auth-brand h1 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 650; }
.auth-brand p { margin: 0; color: #777b80; font-size: 12px; line-height: 18px; }
.auth-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; color: white; background: #202322; font-size: 14px; font-weight: 700;
}

.auth-panel {
  padding: 24px;
  border: 1px solid #e1e2df;
  border-radius: 12px;
  background: #fff;
}

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin-bottom: 24px; border-radius: 9px; background: #f2f3f1;
}
.auth-tabs button {
  height: 34px; border: 1px solid transparent; border-radius: 7px;
  color: #6f7377; background: transparent; cursor: pointer;
}
.auth-tabs button.active { border-color: #dfe1de; color: #202124; background: #fff; }
.auth-panel h2 { margin: 0 0 4px; font-size: 16px; line-height: 24px; }
.auth-panel form > p { margin: 0 0 20px; color: #73777b; font-size: 13px; line-height: 20px; }
.auth-panel label { display: grid; gap: 6px; margin-top: 16px; font-size: 13px; }
.auth-panel label[hidden] { display: none; }
.auth-panel label span { font-weight: 550; }
.auth-panel input {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid #d9dbd8; border-radius: 8px; outline: none;
}
.auth-panel input:focus { border-color: #6a87bd; box-shadow: 0 0 0 3px rgb(79 115 177 / 10%); }
.auth-panel small { color: #8b8f93; font-size: 11px; }
.auth-primary, .auth-secondary {
  width: 100%; height: 40px; margin-top: 20px; border-radius: 8px; cursor: pointer;
}
.auth-primary { border: 1px solid #202322; color: #fff; background: #202322; }
.auth-primary:disabled { opacity: .55; cursor: wait; }
.auth-secondary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.auth-secondary {
  display: grid; place-items: center; margin-top: 0; padding: 0 12px;
  border: 1px solid #d9dbd8; color: #343638; background: #fff; text-decoration: none;
}
.auth-secondary:hover { border-color: #c3c6c2; background: #f7f8f6; }
.auth-secondary[hidden] { display: none; }
.auth-secondary-actions:has(.auth-secondary[hidden]) { grid-template-columns: 1fr; }
.auth-error {
  margin: 16px 0 0 !important; padding: 10px 12px; border-radius: 8px;
  color: #9f3131 !important; background: #fff3f1; font-size: 12px !important;
}
