/* Little 家族 · Authelia 登录页换肤（和官网 www.alittle.hk / 应用台同一套样式令牌）
   由 nginx sub_filter 在 </head> 前插入 <link>；只覆盖 Authelia 自己的 CSS 变量 + 少量外观，不碰它的逻辑。
   Authelia 升级后如果样式错位，删掉 auth vhost 里两行 sub_filter 即可恢复原样。 */
:root, [data-theme=light], [data-theme=dark], [data-theme=grey], [data-theme=oled] {
  --little-sky: #5bbeeb; --little-orange: #ff8a3d; --little-on-color: #0e2230;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "PingFang HK", "Hiragino Sans GB", system-ui, "Microsoft YaHei", sans-serif;
  --default-font-family: var(--font-sans);
  --radius: 14px;
  --primary: var(--little-orange);
  --primary-foreground: var(--little-on-color);
  --ring: var(--little-orange);
}
:root, [data-theme=light] {
  --background: #fff9f1; --foreground: #0e2230;
  --card: #ffffff; --card-foreground: #0e2230;
  --popover: #ffffff; --popover-foreground: #0e2230;
  --muted: #f3ede4; --muted-foreground: #3d5566;
  --accent: #e9f6fc; --accent-foreground: #0e2230;
  --border: #0e2230; --input: #0e2230; --divider: #0e2230;
  --custom-icon: #0e2230;
  --little-line: #0e2230; --little-shadow: #0e2230;
}
[data-theme=dark], [data-theme=grey], [data-theme=oled] {
  --background: #0b1620; --foreground: #eaf4fa;
  --card: #12222f; --card-foreground: #eaf4fa;
  --popover: #12222f; --popover-foreground: #eaf4fa;
  --muted: #173041; --muted-foreground: #a9bfcd;
  --accent: #173041; --accent-foreground: #eaf4fa;
  --border: #eaf4fa; --input: #a9bfcd; --divider: #a9bfcd;
  --custom-icon: #eaf4fa;
  --little-line: #eaf4fa; --little-shadow: #2e7fa8;
}
html, body { background: var(--background) !important; font-family: var(--font-sans) !important; -webkit-font-smoothing: antialiased; }

/* 顶栏：和应用台、NAS 内网页一样的 Little 品牌条（由 sub_filter 插在 <body> 后面） */
.little-head { border-bottom: 3px solid var(--little-line); background: var(--background); }
.little-head .wrap { width: min(100% - 32px, 960px); margin-inline: auto; display: flex; align-items: center; gap: 10px; min-height: 44px; padding-block: 12px; font: 900 22px/1.2 var(--font-sans); letter-spacing: -.01em; color: var(--foreground); }
.little-head a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.little-head .logo { width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--little-line); flex: none; }
.little-head .logo-bg { fill: var(--little-sky); } .little-head .logo-i { fill: #fff; } .little-head .logo-dot { fill: var(--little-orange); }
.little-head .logo-arc { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; } .little-head .logo-arc.far { opacity: .6; }
.little-head .tag { margin-left: auto; font-size: 14px; font-weight: 800; padding: 4px 12px; border: 2px solid currentColor; border-radius: 999px; }

/* 卡片：3px 粗描边 + 6px 硬阴影 */
#root > div [data-slot=card]:not([role=dialog] *) {
  border: 3px solid var(--little-line) !important;
  box-shadow: 6px 6px 0 var(--little-shadow) !important;
  border-radius: 18px !important;
}
/* 按钮：主按钮橙色、粗描边、按下有位移 */
button.bg-primary, a.bg-primary, .bg-primary[role=button] {
  border: 2px solid var(--little-on-color) !important;
  box-shadow: 4px 4px 0 var(--little-shadow) !important;
  font-weight: 900 !important; color: var(--little-on-color) !important;
  transition: transform .08s, box-shadow .08s;
}
button.bg-primary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--little-shadow) !important; }
button.bg-primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--little-shadow) !important; }
/* 输入框 */
input[type=text], input[type=password], input[type=email] { border-width: 2px !important; border-color: var(--input) !important; border-radius: 12px !important; }
input:focus-visible { outline: 3px solid var(--little-orange) !important; outline-offset: 2px; }
a { text-underline-offset: 3px; }

/* 页脚备案号（sub_filter 插在 </body> 前） */
.little-foot { text-align: center; padding: 16px 0 24px; font: 600 13px/1.6 var(--font-sans); color: var(--muted-foreground); }
.little-foot a { color: inherit; }

/* ---- 2026-11-28 打磨：更像官网 ---- */
#root { min-height: calc(100vh - 150px); }
#root > div [data-slot=card]:not([role=dialog] *) { max-width: 440px; margin-inline: auto; }
[role=dialog] { max-width: min(560px, calc(100vw - 24px)) !important; }
h1, h2, h3, h4, h5, h6 { font-weight: 900 !important; letter-spacing: -.01em; }
button.bg-primary { border-radius: 12px !important; font-weight: 800 !important; }

img[alt*="ogo" i], img[src*="logo"] { border-radius: 18px; border: 3px solid var(--little-line); box-shadow: 4px 4px 0 var(--little-shadow); }

/* 亮/暗/自动 开关按钮（theme.js 创建；Authelia 用自己的 data-theme） */
.little-theme-btn{position:fixed;right:16px;bottom:76px;z-index:9999;width:46px;height:46px;border-radius:50% !important;
  display:grid;place-items:center;font-size:20px;line-height:1;cursor:pointer;
  background:var(--card);color:var(--foreground);border:2px solid var(--little-line);box-shadow:3px 3px 0 var(--little-shadow);transition:transform .08s,box-shadow .08s}
.little-theme-btn:hover{transform:translate(-1px,-1px)}
.little-theme-btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--little-shadow)}
