/* AcademicLogin combined CSS */

/**
 * Academic Admin v3 — 基于 Typecho 官方 admin/css/style.css 选择器现代化覆盖
 * 关键选择器来源：typecho-master/admin/css/style.css + menu.php + header.php
 */

/* ---------- 全局 ---------- */
body:not(.academic-login):not(.body-100) {
  font-family: "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif !important;
  background: #f1f5f9 !important;
  color: #1e293b !important;
}

a {
  color: var(--al-accent, #2b6cb0);
}
a:hover {
  color: var(--al-primary, #1a365d);
}

/* ---------- 顶栏导航 .typecho-head-nav（官方结构） ---------- */
.typecho-head-nav {
  padding: 0 12px !important;
  background: linear-gradient(135deg, var(--al-primary, #1a365d), var(--al-accent, #2b6cb0)) !important;
  position: sticky !important;
  top: 0 !important;
  display: flex !important;
  z-index: 100 !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.18) !important;
}

.typecho-head-nav a,
.typecho-head-nav .menu-bar summary {
  padding: 0 18px !important;
  height: 44px !important;
  line-height: 44px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500 !important;
  font-size: 0.92rem !important;
}

.typecho-head-nav a:focus,
.typecho-head-nav a:hover,
.typecho-head-nav .menu-bar summary:focus,
.typecho-head-nav .menu-bar summary:hover {
  color: #fff !important;
  text-decoration: none !important;
}

.typecho-head-nav .menu-bar {
  display: none;
}

.typecho-head-nav menu {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
}

.typecho-head-nav nav {
  width: 100% !important;
}

.typecho-head-nav nav > menu {
  display: flex !important;
  position: relative !important;
  width: 100% !important;
  align-items: stretch !important;
}

.typecho-head-nav nav > menu > li {
  list-style: none !important;
  margin: 0 !important;
  position: relative !important;
}

.typecho-head-nav nav > menu > li:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.typecho-head-nav nav > menu > li > a {
  display: block !important;
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.typecho-head-nav nav > menu > li > a:hover,
.typecho-head-nav nav > menu > li > a:focus {
  background: rgba(0, 0, 0, 0.18) !important;
  color: #fff !important;
}

.typecho-head-nav nav > menu > li:not(.operate).focus > a,
.typecho-head-nav nav > menu > li:not(.operate):hover > a {
  background: rgba(0, 0, 0, 0.22) !important;
  font-weight: 600 !important;
  color: #fff !important;
}

/* 下拉二级 menu */
.typecho-head-nav nav > menu > li menu {
  position: absolute !important;
  top: 44px !important;
  display: none !important;
  flex-flow: column !important;
  min-width: 168px !important;
  max-width: 260px !important;
  background: #fff !important;
  z-index: 250 !important;
  border-radius: 0 0 10px 10px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16) !important;
  border: 1px solid #e2e8f0 !important;
  border-top: none !important;
  padding: 0.35rem !important;
  overflow: hidden;
}

.typecho-head-nav nav > menu > li:hover menu,
.typecho-head-nav nav > menu > li:focus-within menu,
.typecho-head-nav nav > menu > li:focus menu,
.typecho-head-nav nav > menu > li > a:hover + menu,
.typecho-head-nav nav > menu > li > a:focus + menu {
  display: flex !important;
}

.typecho-head-nav nav > menu > li menu > li a {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: block !important;
  color: #334155 !important;
  height: auto !important;
  line-height: 1.4 !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: 6px !important;
  border: none !important;
}

.typecho-head-nav nav > menu > li menu > li a:hover,
.typecho-head-nav nav > menu > li menu > li a:focus {
  background: var(--al-soft, #ebf2fa) !important;
  color: var(--al-primary, #1a365d) !important;
}

.typecho-head-nav nav > menu > li menu > li.focus a {
  color: var(--al-accent, #2b6cb0) !important;
  font-weight: 600 !important;
}

.typecho-head-nav nav > menu > li.operate {
  flex: 1 !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.typecho-head-nav nav > menu > li.operate a:hover {
  background: rgba(0, 0, 0, 0.18) !important;
}

.typecho-head-nav nav > menu > li.operate a:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* 移动端菜单按钮 */
@media (max-width: 575px) {
  .typecho-head-nav {
    padding: 0 !important;
    flex-flow: column !important;
  }
  .typecho-head-nav .menu-bar {
    display: block !important;
    font-size: 14px !important;
    position: sticky !important;
    top: 0 !important;
    background: var(--al-primary, #1a365d) !important;
    z-index: 10 !important;
  }
  .typecho-head-nav .menu-bar summary {
    cursor: pointer !important;
    color: #fff !important;
    list-style: none !important;
  }
  .typecho-head-nav .menu-bar[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
  .typecho-head-nav .menu-bar[open] ~ menu {
    display: flex !important;
  }
  .typecho-head-nav nav > menu {
    display: none !important;
    flex-flow: column !important;
    background: #fff !important;
  }
  .typecho-head-nav nav > menu > li > a {
    color: #334155 !important;
    border-right: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }
  .typecho-head-nav nav > menu > li menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: #f8fafc !important;
  }
}

/* ---------- 页面标题 ---------- */
.typecho-page-title {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  margin: 1.5rem 0 1rem !important;
}

.typecho-page-title h2 {
  margin: 0 !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--al-primary, #1a365d) !important;
}

.typecho-page-title a {
  padding: 0.3rem 0.75rem !important;
  margin-left: 0.6rem !important;
  background: var(--al-primary, #1a365d) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.typecho-page-title a:hover {
  filter: brightness(1.08);
  text-decoration: none !important;
  color: #fff !important;
}

/* ---------- 选项卡 ---------- */
.typecho-option-tabs {
  list-style: none !important;
  margin: 0 0 1rem !important;
  padding: 0.35rem !important;
  font-size: 0.9rem !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 0.25rem !important;
  background: #fff !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  overflow: visible !important;
}

.typecho-option-tabs li {
  list-style: none !important;
  float: none !important;
  margin: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

.typecho-option-tabs a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  min-height: 2.4em !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: 8px !important;
  color: #475569 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: inherit !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  border: none !important;
}

.typecho-option-tabs a:hover {
  background: var(--al-soft, #ebf2fa) !important;
  color: var(--al-primary, #1a365d) !important;
  text-decoration: none !important;
}

.typecho-option-tabs li.current a,
.typecho-option-tabs .current a {
  background: var(--al-primary, #1a365d) !important;
  color: #fff !important;
}

/* ---------- 表格 ---------- */
.typecho-list-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #fff !important;
  table-layout: fixed !important;
  border: 16px solid #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
}

.typecho-list-table th {
  padding: 0.65rem 0.75rem !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.typecho-list-table td {
  padding: 0.65rem 0.75rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #334155 !important;
  font-size: 0.9rem !important;
}

.typecho-list-table tr:hover td {
  background: #f8fafc !important;
}

.typecho-list-table-title {
  margin: 1em 0 !important;
  color: #94a3b8 !important;
  text-align: center !important;
}

/* ---------- 表单选项 ---------- */
.typecho-option {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 1rem 1.25rem !important;
  margin-bottom: 0.75rem !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.typecho-option label.typecho-label,
.typecho-label {
  font-weight: 600 !important;
  color: #1e293b !important;
  display: block !important;
  margin-bottom: 0.35rem !important;
}

.typecho-option .description {
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
  margin-top: 0.35rem !important;
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
  background: #fff !important;
  border: 1.5px solid #e2e8f0 !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  font-size: 0.92rem !important;
  color: #1e293b !important;
  min-height: 40px !important;
  line-height: 1.5 !important;
}

/* select 下拉框：加大整体高度与内边距，避免个别浏览器把原生控件压得
   比中文字符还矮，导致文字被上下边框"腰斩"看起来像加了删除线 */
select {
  min-height: 46px !important;
  padding: 0.75rem 2.25rem 0.75rem 0.9rem !important;
  line-height: 1.5 !important;
  font-size: 0.96rem !important;
}

/* 一些内联小型输入框（如别名/永久链接编辑框）在中文下极易把文字截断，
   这里给一个安全的最小宽度，不再显示半个字。
   这类编辑框常以 position:absolute/fixed 悬浮在预览文字上方，
   宽度变大后反而会向左覆盖到前面的域名/目录文字——
   这里统一收回为 static，让它按正常文档流排列，不再压字。
   注意：不能用 input#name 这类猜测性选择器，因为 Typecho 登录页的
   用户名输入框也叫 id="name"，会被错误命中导致登录框跟着变窄。
   改为只信任 admin.js 通过“实际计算样式为 absolute/fixed”精确识别后
   才添加的 .al-inline-fix，避免误伤其它同名字段。 */
input[type="text"],
input[type="url"] {
  min-width: 180px !important;
}

/* 别名/永久链接编辑行：文字和输入框分别是两个独立容器，
   高度保持一致、行内垂直居中，容器本身留出足够高度，不会再压字 */
.al-slug-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.4rem !important;
  height: auto !important;
  min-height: 2.6em !important;
  overflow: visible !important;
}

.al-slug-text {
  display: inline-flex !important;
  align-items: center !important;
  height: 2.6em !important;
  line-height: 1.3 !important;
  font: inherit !important;
  color: inherit !important;
}

input[type="text"].al-inline-fix,
input[type="url"].al-inline-fix,
.al-inline-fix-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 160px !important;
  height: 1.9em !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 0.5rem !important;
  font-size: inherit !important;
  line-height: 1.3 !important;
  box-sizing: border-box !important;
  position: static !important;
  vertical-align: middle !important;
  margin: 0 !important;
  overflow: visible !important;
}

/* 侧栏里被错误拆成两个独立卡片的标签页（如"选项"/"附件"），
   合并成同一条胶囊状标签栏；文字居中显示，铺满各自的格子 */
.al-merged-tabs {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 0.25rem !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 0.35rem !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  width: 100% !important;
  max-width: 100% !important;
}

.al-merged-tab-item {
  display: flex !important;
  flex: 1 1 0 !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 8px !important;
  padding: 0.6rem 0.75rem !important;
  margin: 0 !important;
  white-space: nowrap !important;
  min-width: 0 !important;
}

.al-merged-tab-item:hover {
  background: rgba(148, 163, 184, 0.14) !important;
}

/* 设置页 / 侧栏选项卡片（自定义模板、父级页面、时区等）：
   输入框和下拉框宽度撑满卡片，不再被截断 */
.typecho-option select,
.typecho-option input[type="text"],
.typecho-option input[type="url"],
.typecho-option input[type="number"],
.typecho-option textarea {
  width: 100% !important;
  max-width: 100% !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  border-color: var(--al-accent, #2b6cb0) !important;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.14) !important;
  outline: none !important;
}

/* ---------- 按钮 ---------- */
.btn {
  border: none !important;
  background-color: #e2e8f0 !important;
  cursor: pointer !important;
  border-radius: 8px !important;
  display: inline-block !important;
  padding: 0 1rem !important;
  height: 36px !important;
  line-height: 36px !important;
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  vertical-align: middle !important;
  text-decoration: none !important;
  transition: filter 0.15s, background 0.15s !important;
}

.btn:hover {
  background-color: #cbd5e1 !important;
  text-decoration: none !important;
}

.btn.primary,
.primary {
  border: none !important;
  background-color: var(--al-primary, #1a365d) !important;
  color: #fff !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2) !important;
}

.btn.primary:hover,
.primary:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.btn-xs {
  padding: 0 0.65rem !important;
  height: 28px !important;
  line-height: 28px !important;
  font-size: 0.82rem !important;
}

/* ---------- 仪表盘 ---------- */
.typecho-dashboard ul {
  list-style: none !important;
  padding: 0 !important;
}

.typecho-dashboard ul li {
  margin-bottom: 0.4rem !important;
}

.typecho-dashboard .welcome-board,
.typecho-dashboard .intro,
.latest-link {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 1.15rem 1.25rem !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  margin-bottom: 1rem !important;
}

.latest-link h3 {
  margin: 0 0 0.75rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--al-primary, #1a365d) !important;
}

/* ---------- 仪表盘：去掉"最近得到的回复""官方最新日志"两栏后，
   "最近发布的文章" 独占一整行（由 admin.js 定位并标记 .al-full-col） ---------- */
.al-dash-hidden {
  display: none !important;
}

.al-full-col {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

.al-full-col ul {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.15rem 2rem !important;
}

@media (max-width: 720px) {
  .al-full-col ul {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- 外观页（可以使用的外观 / 编辑当前外观 / 设置外观）：
   放大间距，避免截图与详情过于拥挤，由 admin.js 标记 body.al-theme-page ---------- */
body.al-theme-page .typecho-option-tabs {
  padding: 0.5rem !important;
  gap: 0.4rem !important;
  margin-bottom: 1.5rem !important;
}

body.al-theme-page .typecho-option-tabs a {
  padding: 0.65rem 1.4rem !important;
  font-size: 0.95rem !important;
}

body.al-theme-page .typecho-list-table {
  border: 22px solid #fff !important;
  border-spacing: 0 1.5rem !important;
}

body.al-theme-page .typecho-list-table th {
  padding: 0.9rem 1.25rem !important;
  font-size: 0.92rem !important;
}

body.al-theme-page .typecho-list-table td {
  padding: 1.5rem !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  vertical-align: top !important;
}

body.al-theme-page .typecho-list-table td:first-child {
  width: 42% !important;
}

body.al-theme-page .typecho-list-table img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
  display: block !important;
}

body.al-theme-page .typecho-list-table td:first-child > * {
  margin-bottom: 0.85rem !important;
}

body.al-theme-page .typecho-list-table h3,
body.al-theme-page .typecho-list-table strong:first-child {
  font-size: 1.05rem !important;
}

body.al-theme-page .typecho-list-table p {
  margin: 0.5rem 0 !important;
}

body.al-theme-page .typecho-list-table .btn {
  margin-top: 0.75rem !important;
  margin-right: 0.5rem !important;
}

/* ---------- 分页 ---------- */
.typecho-pager {
  list-style: none !important;
  margin: 1.25rem 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

.typecho-pager li {
  display: inline-block !important;
  margin: 0 0.15rem !important;
}

.typecho-pager a {
  display: inline-block !important;
  padding: 0.3rem 0.65rem !important;
  border-radius: 6px !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  text-decoration: none !important;
}

.typecho-pager .current a {
  background: var(--al-primary, #1a365d) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* ---------- 消息 ---------- */
.message {
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

/* ---------- 页脚 ---------- */
.typecho-foot {
  padding: 2.5rem 0 2rem !important;
  color: #94a3b8 !important;
  line-height: 1.8 !important;
  text-align: center !important;
}

.typecho-foot a {
  color: var(--al-accent, #2b6cb0) !important;
}

/* ---------- balloon ---------- */
a.balloon-button {
  background: var(--al-soft, #ebf2fa) !important;
  color: var(--al-primary, #1a365d) !important;
  border-radius: 20px !important;
}

a.balloon-button:hover {
  background: var(--al-accent, #2b6cb0) !important;
  color: #fff !important;
}

/* 主内容区留白 */
.main .container {
  padding-bottom: 2rem;
}

/* ---------- Login page ---------- */

/* Login page — Typecho official: .typecho-login-wrap / .typecho-login */

html.academic-login-html,
body.academic-login,
body.body-100.academic-login {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100% !important;
  height: 100% !important;
  background: #eef2f7 !important;
  font-family: "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  overflow-x: hidden !important;
}

body.academic-login .typecho-login-wrap,
body.academic-login .al-wrap {
  display: block !important;
  margin: 0 !important;
  height: 100% !important;
  min-height: 100vh !important;
}

body.academic-login .al-shell {
  display: flex !important;
  min-height: 100vh !important;
  width: 100% !important;
}

/* ---------- 左侧：科技主题背景图 ---------- */
body.academic-login .al-brand {
  flex: 0 0 38%;
  max-width: 38%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  background-color: #060f1f;
  background-image:
    linear-gradient(165deg, rgba(6, 13, 28, 0.68) 0%, rgba(15, 33, 63, 0.38) 55%, rgba(26, 54, 93, 0.32) 100%),
    var(--al-bg-image, none);
  background-size: cover;
  background-position: center;
}

body.academic-login .al-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 320px;
}

body.academic-login .al-brand-title {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

body.academic-login .al-brand-title::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  background: linear-gradient(90deg, #93c5fd, rgba(147, 197, 253, 0));
}

/* ---------- 右侧：登录表单区（浅色科技网点背景，衬托毛玻璃卡片） ---------- */
body.academic-login .al-form-side {
  flex: 1 1 62%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  background-color: #eef2f7;
  background-image:
    radial-gradient(560px circle at 82% 12%, rgba(43, 108, 176, 0.16), transparent 60%),
    radial-gradient(620px circle at 8% 92%, rgba(26, 54, 93, 0.12), transparent 60%),
    radial-gradient(circle, rgba(148, 163, 184, 0.35) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
  background-position: 0 0, 0 0, 0 0;
}

/* ---------- 登录卡片：加大尺寸 + 毛玻璃效果，不含站点标题/引导文案 ---------- */
body.academic-login .typecho-login,
body.academic-login .al-card {
  display: block !important;
  width: 100% !important;
  max-width: 580px !important;
  margin: 0 auto !important;
  padding: 3.75rem 3.5rem !important;
  background: rgba(255, 255, 255, 0.62) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow:
    0 20px 55px rgba(15, 23, 42, 0.14),
    0 2px 8px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  text-align: left !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  position: relative;
  z-index: 1;
}

/* 站点标题 / 登录框内不放任何文案标题（品牌名已在左侧展示） */
body.academic-login .typecho-login h1,
body.academic-login .al-login-title,
body.academic-login .al-login-heading {
  display: none !important;
}

body.academic-login .typecho-login .i-logo {
  display: none !important;
}

/* 表单元素间距：更宽松、更有呼吸感 */
body.academic-login .typecho-login p {
  margin: 0 0 1.6rem !important;
  overflow: visible !important;
}

body.academic-login .typecho-login label {
  display: block !important;
  margin-bottom: 0.55rem !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  letter-spacing: 0.01em;
  line-height: 1.4 !important;
}

body.academic-login .typecho-login input[type="text"],
body.academic-login .typecho-login input[type="password"],
body.academic-login .typecho-login input[type="email"] {
  width: 100% !important;
  max-width: 100% !important;
  height: 54px !important;
  padding: 0 1.1rem !important;
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1.5px solid rgba(203, 213, 225, 0.9) !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  font-size: 0.98rem !important;
  line-height: normal !important;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s !important;
}

body.academic-login .typecho-login input:focus {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: var(--al-accent, #2b6cb0) !important;
  box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.14) !important;
  outline: none !important;
}

/* "下次自动登录" 复选框行：正常间距，不再挤压
   （Typecho 官方结构为 <label><input type="checkbox"> 文案</label>，
   checkbox 与文案天然同行，这里只需修正外边距与字号即可） */
body.academic-login .typecho-login input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 0.5rem 0 0 !important;
  vertical-align: middle !important;
  position: relative;
  top: -1px;
}

body.academic-login .typecho-login label:has(input[type="checkbox"]) {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0.35rem 0 1.85rem !important;
  font-size: 0.92rem !important;
  font-weight: 400 !important;
  color: #475569 !important;
  cursor: pointer;
}

/* 不支持 :has() 的浏览器兜底：包裹整个复选框行的段落也补上间距 */
body.academic-login .typecho-login p:has(input[type="checkbox"]) {
  margin: 0.35rem 0 1.85rem !important;
}

body.academic-login .typecho-login p:has(input[type="checkbox"]) label {
  margin: 0 !important;
}

body.academic-login .typecho-login .submit,
body.academic-login .typecho-login button[type="submit"],
body.academic-login .typecho-login input[type="submit"],
body.academic-login .typecho-login .btn,
body.academic-login .typecho-login .primary {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 54px !important;
  margin: 0.5rem 0 0 !important;
  padding: 0 !important;
  font-size: 1.02rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  color: #fff !important;
  background: linear-gradient(135deg, var(--al-primary, #1a365d), var(--al-accent, #2b6cb0)) !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  box-shadow: 0 10px 24px rgba(26, 54, 93, 0.25) !important;
  line-height: 54px !important;
  transition: filter 0.15s, transform 0.1s !important;
}

body.academic-login .typecho-login .submit:hover,
body.academic-login .typecho-login .primary:hover {
  filter: brightness(1.08);
}

body.academic-login .typecho-login .submit:active,
body.academic-login .typecho-login .primary:active {
  transform: translateY(1px);
}

/* 登录按钮之后的辅助链接（如"返回首页"）：留出清晰的独立间距，不贴边 */
body.academic-login .typecho-login p:last-child {
  margin: 1.75rem 0 0 !important;
  text-align: center !important;
}

body.academic-login .typecho-login a:not(.btn):not(.submit):not(.primary) {
  display: inline-block !important;
  padding: 0.2rem 0 !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  color: var(--al-accent, #2b6cb0) !important;
  text-decoration: none !important;
}

body.academic-login .typecho-login a:not(.btn):not(.submit):not(.primary):hover {
  text-decoration: underline !important;
}

@media (max-width: 860px) {
  body.academic-login .al-shell {
    flex-direction: column !important;
  }
  body.academic-login .al-brand {
    flex: none;
    max-width: none;
    min-height: 200px;
    padding: 2rem;
  }
  body.academic-login .al-form-side {
    padding: 2rem 1.25rem;
  }
  body.academic-login .typecho-login,
  body.academic-login .al-card {
    max-width: 100% !important;
    padding: 2.5rem 1.75rem !important;
  }
}


/* ---------- 登录记录面板 ---------- */
.al-login-log-panel{
  margin:1.25rem 0 0;
  background:#fff;
  border-radius:10px;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
  padding:1rem 1.25rem 1.25rem;
  border:1px solid rgba(0,0,0,.04);
  clear:both;
  width:100%;
  box-sizing:border-box;
}
.al-login-log-panel h3{
  margin:0 0 .85rem;
  font-size:1rem;
  font-weight:600;
  color:#1a202c;
}
.al-login-log-table-wrap{overflow:auto;}
.al-login-log-table{
  width:100%;
  border-collapse:collapse;
  font-size:.875rem;
}
.al-login-log-table th,
.al-login-log-table td{
  padding:.55rem .75rem;
  text-align:left;
  border-bottom:1px solid #edf2f7;
  white-space:nowrap;
}
.al-login-log-table th{
  background:#f7fafc;
  color:#4a5568;
  font-weight:600;
}
.al-login-log-table tr:last-child td{border-bottom:none;}
.al-log-badge{
  display:inline-block;
  padding:.15rem .55rem;
  border-radius:999px;
  font-size:.75rem;
  font-weight:600;
}
.al-log-badge.ok{background:#c6f6d5;color:#22543d;}
.al-log-badge.fail{background:#fed7d7;color:#9b2c2c;}
.al-log-fail td{color:#718096;}
