@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

/* BilzatWork Auth — Bento Soft（参考消费端大圆角/柔和底，工作台版） */
:root {
  --auth-primary: #2b9bff;
  --auth-primary-dark: #1a7fe0;
  --auth-teal: #12d4b8;
  --auth-coral: #ff7a6e;
  --auth-text: #1e293b;
  --auth-sub: #64748b;
  --auth-border: #e2e8f0;
  --auth-soft: #edf1f6;
  --auth-card: #ffffff;
  --auth-radius: 22px;
  --auth-radius-sm: 14px;
  --auth-radius-xs: 12px;
  --auth-shadow: 0 8px 28px rgba(30, 41, 59, 0.08);
  --auth-shadow-soft: 0 4px 16px rgba(30, 41, 59, 0.06);
  --auth-grad: linear-gradient(135deg, #2b9bff 0%, #12d4b8 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.auth-page,
body {
  font-family: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  color: var(--auth-text);
  background:
    radial-gradient(ellipse 70% 45% at 8% 0%, rgba(43, 155, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 8%, rgba(18, 212, 184, 0.12), transparent 50%),
    radial-gradient(ellipse 45% 35% at 78% 92%, rgba(255, 122, 110, 0.08), transparent 48%),
    linear-gradient(180deg, #f4f7fb 0%, #eef2f7 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 0;
}

.auth-top-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--auth-text);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.auth-top-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--auth-grad);
  box-shadow: 0 6px 16px rgba(43, 155, 255, 0.28);
  overflow: hidden;
}

.auth-top-mark::before,
.auth-top-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

.auth-top-mark::before { top: 11px; }
.auth-top-mark::after { bottom: 11px; width: 55%; right: auto; }

.auth-top-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-top-links a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--auth-sub);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--auth-shadow-soft);
  transition: color .18s, background .18s, transform .18s;
}

.auth-top-links a:hover {
  color: var(--auth-primary-dark);
  background: #fff;
  transform: translateY(-1px);
}

.auth-top-links a.primary {
  color: #fff;
  background: var(--auth-text);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(30, 41, 59, 0.18);
}

.auth-top-links a.primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.auth-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  padding: 36px 20px 48px;
}

.auth-brand {
  width: min(460px, 100%);
  margin-bottom: 20px;
  text-align: center;
  color: var(--auth-text);
}

.auth-brand h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.auth-brand p {
  margin: 0;
  color: var(--auth-sub);
  font-size: 14px;
  line-height: 1.6;
}

.auth-box {
  width: min(460px, 100%);
  background: var(--auth-card);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--auth-radius);
  padding: 34px 32px 28px;
  box-shadow: var(--auth-shadow);
}

.auth-box h2 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--auth-text);
  letter-spacing: -0.02em;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--auth-sub);
  font-size: 13px;
  font-weight: 650;
}

.form-group input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-xs);
  background: #f8fafc;
  color: var(--auth-text);
  font-size: 14px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(43, 155, 255, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43, 155, 255, 0.14);
}

.form-hint {
  margin: 6px 0 0;
  color: #8a93a8;
  font-size: 12px;
  line-height: 1.45;
}

.invite-tip {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--auth-radius-xs);
  color: #0b9a88;
  background: rgba(18, 212, 184, 0.12);
  border: 1px solid rgba(18, 212, 184, 0.22);
  font-size: 12px;
}

.msg {
  min-height: 18px;
  margin-bottom: 14px;
  text-align: center;
  font-size: 13px;
}

.msg.error { color: #ef5b5b; }
.msg.success { color: #12b981; }

.auth-btn {
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  border: none;
  border-radius: var(--auth-radius-sm);
  color: #fff;
  background: var(--auth-grad);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(43, 155, 255, 0.28);
  transition: transform .18s, box-shadow .18s, filter .18s;
}

.auth-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(43, 155, 255, 0.34);
}

.auth-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
  color: var(--auth-sub);
  font-size: 13px;
}

.auth-footer a {
  color: var(--auth-primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

.back-home {
  display: inline-block;
  margin-top: 16px;
  color: var(--auth-primary-dark);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.back-home:hover { text-decoration: underline; }

body.auth-page .official-footer,
body .official-footer {
  width: 100%;
  flex: 0 0 auto;
  align-self: stretch;
  margin-top: auto;
}

@media (max-width: 640px) {
  .auth-top { width: calc(100% - 28px); }
  .auth-box { padding: 28px 20px 22px; border-radius: 20px; }
  .auth-brand h1 { font-size: 24px; }
}
