/* 运维知识库登录页样式 —— 参考知乎（zhihu.com）登录页：
   蓝色渐变背景 + 居中白卡片 + 「密码登录 / 使用须知」标签页 +
   带左侧标签的输入行 + 蓝色主按钮。移动端自适应。 */
:root {
  --brand: #0066ff;
  --brand-dark: #0052cc;
  --brand-dim: #e8f1ff;
  --ink: #121212;
  --ink-2: #444;
  --gray: #8590a6;
  --line: #ebebeb;
  --card: #ffffff;
  --danger: #f1403c;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body.auth-page {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #0066ff;
  position: relative;
  overflow-x: hidden;
}

/* 背景：知乎式的蓝色 + 柔和光斑 */
.auth-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1000px 700px at 12% 8%, rgba(255, 255, 255, .22), transparent 60%),
    radial-gradient(900px 600px at 92% 88%, rgba(0, 0, 0, .22), transparent 62%),
    linear-gradient(135deg, #0a70ff 0%, #0066ff 45%, #0047b3 100%);
  z-index: 0;
}
.auth-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .5;
}

/* 左上角品牌 */
.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 30px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .5px;
}
.brand-link:hover { opacity: .9; }
.brand-ico { font-size: 22px; }
.brand-sub {
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  border-left: 1px solid rgba(255, 255, 255, .35);
  padding-left: 10px;
}

/* 主体：卡片居中 */
.auth-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 56px;
}

.auth-card {
  width: 400px;
  max-width: 100%;
  background: var(--card);
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .22), 0 2px 8px rgba(0, 0, 0, .08);
  padding: 30px 32px 22px;
}

/* 标签页 */
.auth-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.tab {
  appearance: none;
  background: none;
  border: 0;
  padding: 0 0 12px;
  font-size: 16px;
  color: var(--gray);
  cursor: pointer;
  position: relative;
  font-family: inherit;
}
.tab:hover { color: var(--brand); }
.tab.is-active { color: var(--ink); font-weight: 500; }
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--brand);
}

.pane { display: none; }
.pane.is-active { display: block; }

/* 输入行：左侧灰标签 + 右侧输入（知乎密码登录的字段样式） */
.field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fafafa;
  margin-bottom: 14px;
  transition: border-color .15s, background .15s;
}
.field:focus-within {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px var(--brand-dim);
}
.field-label {
  flex: 0 0 74px;
  padding: 0 12px;
  color: var(--gray);
  font-size: 14px;
  border-right: 1px solid var(--line);
  line-height: 44px;
  text-align: center;
}
.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 12px;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
}
.field input::placeholder { color: #b8c1cf; }

.form-msg {
  min-height: 20px;
  margin: 2px 0 10px;
  font-size: 13px;
  color: var(--danger);
}
.form-msg.is-ok { color: #12a150; }

/* 主按钮 */
.btn-primary {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 3px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:disabled { opacity: .6; cursor: default; }

.form-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 4px;
  font-size: 13px;
  color: var(--gray);
}
.link-muted { color: var(--gray); }

/* 使用须知面板 */
.notice { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.notice h2 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink);
}
.notice ul { margin: 0; padding-left: 18px; }
.notice li { margin-bottom: 6px; }
.notice code {
  background: #f5f6f8;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #c7254e;
}

/* 卡片底部 */
.card-foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #b0b8c6;
  text-align: center;
  letter-spacing: .5px;
}

/* 备案信息（工信部要求：网站底部展示备案号并链接到 beian.miit.gov.cn） */
.site-footer {
  position: relative;
  z-index: 1;
  margin: 20px 0 28px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .82);
}
.site-footer .footer-icp {
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .38);
  padding-bottom: 1px;
}
.site-footer .footer-icp:hover { color: #fff; border-bottom-color: #fff; }

@media (max-width: 520px) {
  .auth-brand { padding: 16px 18px; }
  .auth-card { padding: 24px 20px 18px; border-radius: 4px; }
  .field-label { flex-basis: 66px; font-size: 13px; }
}
