/* 理根教育后台登录 / 密码重置页 */
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: linear-gradient(135deg, #16324a 0%, #1f4a6b 55%, #0f2233 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* 品牌水印 + 橙色光晕 */
.login-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(700px 420px at 78% 12%, rgba(242, 101, 34, .22), transparent 62%),
    radial-gradient(560px 400px at 12% 88%, rgba(90, 150, 210, .16), transparent 60%);
}
.login-bg::after {
  content: ""; position: absolute; right: 26px; bottom: 26px;
  width: 300px; height: 300px; opacity: .055;
  background: url("/static/images/brand-mark.png") center / contain no-repeat;
  transform: rotate(8deg);
}
@media (max-width: 900px) {
  .login-bg::after { width: 200px; height: 200px; right: 12px; bottom: 12px; opacity: .045; }
}

.login-wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: 400px; padding: 24px;
}
.login-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 26px 64px rgba(0, 0, 0, .38);
  padding: 38px 36px 30px;
  border-top: 4px solid #F26522;
}

/* ── LOGO ── */
.login-logo { text-align: center; margin-bottom: 26px; }
.login-logo-img {
  display: block; height: 44px; width: auto; max-width: 100%;
  margin: 0 auto 10px;
}
.logo-sub {
  display: inline-block;
  font-size: 12.5px; color: #6B7280; letter-spacing: 4px;
  margin: 0;
}
.logo-sub::before, .logo-sub::after {
  content: ""; display: inline-block; width: 22px; height: 1px;
  background: #E5E7EB; vertical-align: middle; margin: 0 8px;
}

/* ── 表单 ── */
.errornote {
  background: #fdecea; color: #c0392b; border: 1px solid #f5c6c2;
  border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px;
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block; font-size: 13.5px; color: #34495e;
  margin-bottom: 6px; font-weight: 600;
}
.form-row input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid #d5dbe1; border-radius: 9px; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus {
  outline: none; border-color: #F26522;
  box-shadow: 0 0 0 3px rgba(242, 101, 34, .15);
}
.submit-row { margin-top: 24px; }
.submit-row input {
  width: 100%; height: 46px; border: none; border-radius: 9px;
  background: linear-gradient(135deg, #ff7a34, #F26522);
  color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 2px;
  cursor: pointer; box-shadow: 0 8px 18px rgba(242, 101, 34, .28);
  transition: transform .15s, box-shadow .15s;
}
.submit-row input:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(242, 101, 34, .34);
}

.login-links {
  display: flex; justify-content: space-between;
  margin-top: 18px; font-size: 13.5px;
}
.login-links a { color: #F26522; text-decoration: none; }
.login-links a:hover { text-decoration: underline; }

/* ── 页脚 ── */
.login-foot {
  margin-top: 22px; text-align: center;
  font-size: 12.5px; color: rgba(255, 255, 255, .62); letter-spacing: .5px;
}
.login-foot a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.login-foot a:hover { color: #fff; }
.foot-dot { margin: 0 8px; opacity: .5; }

/* 密码重置页共用卡片 */
.auth-card { width: 100%; max-width: 460px; }
.auth-card p, .auth-card ul { color: #34495e; font-size: 14px; line-height: 1.7; }
.auth-card h1, .auth-card h2 { font-size: 20px; color: #16324a; margin: 0 0 16px; }
.auth-card a { color: #F26522; }
.auth-card .login-card { padding: 34px 34px 28px; }

@media (max-width: 420px) {
  .login-card { padding: 30px 22px 24px; }
  .login-logo-img { height: 36px; }
}

/* ── 登录页：验证码 ── */
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input {
  flex: 1; height: 44px; padding: 0 14px; letter-spacing: 2px;
  text-transform: uppercase; font-size: 16px;
  border: 1px solid #d5dbe1; border-radius: 9px; color: #16324a;
}
.captcha-row input:focus {
  outline: none; border-color: #F26522; box-shadow: 0 0 0 3px rgba(242,101,34,.15);
}
.captcha-img {
  height: 44px; width: 132px; border-radius: 9px; cursor: pointer;
  border: 1px solid #d5dbe1; background: #fff; flex-shrink: 0;
}
.captcha-img:hover { border-color: #F26522; }
.field-error { margin: 6px 0 0; font-size: 12.5px; color: #c0392b; }

/* 退出登录后的提示 */
.logout-note {
  margin: 0 0 16px; padding: 10px 14px; border-radius: 9px;
  background: #ecfdf5; color: #047857; font-size: 13.5px;
  border: 1px solid #a7f3d0; text-align: center;
}
