/* 登录 / 注册 / 激活 页面样式 */
* { box-sizing: border-box; }
/* 兜底：[hidden] 必须真正隐藏。否则被 .auth-form{display:flex} 之类的
   作者样式覆盖（作者样式优先于浏览器默认的 [hidden]{display:none}），
   会导致 hidden 属性失效、登录与注册表单同时显示。 */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: #37474F;
  background: linear-gradient(160deg, #FFF8E1, #E1F5FE);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 24px 16px 48px; }
.brand-bar {
  display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800;
  color: #37474F; text-decoration: none; margin-bottom: 18px;
}
.auth-card {
  background: #fff; border-radius: 20px; padding: 28px 24px;
  box-shadow: 0 8px 0 rgba(0,0,0,0.06); text-align: center;
}
.auth-card h1 { font-size: 24px; margin: 6px 0 6px; }
.auth-card .sub { color: #607D8B; font-size: 14px; margin: 0 0 20px; line-height: 1.6; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tabs button {
  flex: 1; border: none; background: #F5F7FA; border-radius: 12px; padding: 12px;
  font-size: 16px; font-weight: 700; color: #607D8B; cursor: pointer;
}
.tabs button.active { background: #FF7043; color: #fff; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input {
  width: 100%; border: 2px solid #ECEFF1; border-radius: 12px; padding: 14px 16px;
  font-size: 16px; outline: none; transition: border-color .15s;
}
.auth-form input:focus { border-color: #FF7043; }
.btn-primary {
  width: 100%; border: none; border-radius: 12px; padding: 15px; font-size: 17px;
  font-weight: 700; color: #fff; background: #FF7043; cursor: pointer;
  box-shadow: 0 6px 0 rgba(0,0,0,0.06);
}
.btn-primary:active { transform: translateY(2px); box-shadow: none; }
.msg { min-height: 20px; font-size: 14px; font-weight: 600; }
.msg.err { color: #E53935; }
.msg.ok { color: #43A047; }
.link { display: inline-block; margin-top: 16px; color: #FF7043; font-size: 14px; font-weight: 700; text-decoration: none; }
.link + .link { margin-left: 14px; }
.hint-box {
  margin-top: 16px; background: #FFF3E0; color: #E65100; border-radius: 12px;
  padding: 12px 14px; font-size: 13px; line-height: 1.6; text-align: left;
}
