/* =========================================================
 * admin/css/login.css
 * 1) Legacy layui login (restaurant_queue_screen 等)
 * 2) Modern login page (从 app/view/login/index.html 迁移)
 *    主题色由 admin_set.color1 / color2 注入：
 *    --primary、--primary-rgb、--primary-dark、--color2
 *    在模板 head 内联 <style> 中按租户动态覆盖
 * ========================================================= */

/* =========================================================
 * 1) Legacy layui-based login (保留给老页面用，不要删)
 * ========================================================= */
html,body,#LAY_app{height:100%;}
.layui-layout-body{overflow: auto;}

#LAY-user-login,
.layadmin-user-display-show{display: block !important;}
.layadmin-user-login{position: relative; left: 0; top: 0; padding: 110px 0; min-height: 100%; box-sizing: border-box;}
.layadmin-user-login-main{width: 375px; margin: 0 auto; box-sizing: border-box;}
.layadmin-user-login-box{padding: 20px;}
.layadmin-user-login-header{text-align: center;}
.layadmin-user-login-header h2{margin-bottom: 10px; font-weight: 300; font-size: 30px; color: #000;}
.layadmin-user-login-header p{font-weight: 300; color: #666;font-size: 16px;}

.layadmin-user-login-body .layui-form-item{position: relative;}
.layadmin-user-login-icon{position: absolute; left: 1px; top: 1px; width: 38px; line-height: 36px; text-align: center; color: #d2d2d2;}
.layadmin-user-login-body .layui-form-item .layui-input{padding-left: 38px;}
.layadmin-user-login-codeimg{max-height: 38px; width: 100%; cursor: pointer; box-sizing: border-box;}

.layadmin-user-login-other{position: relative; font-size: 0; line-height: 38px; padding-top: 20px;}
.layadmin-user-login-other>*{display: inline-block; vertical-align: middle; margin-right: 10px; font-size: 14px;}
.layadmin-user-login-other .layui-icon{position: relative; top: 2px; font-size: 26px;}
.layadmin-user-login-other a:hover{opacity: 0.8;}

.layadmin-user-jump-change{float: right;}

.layadmin-user-login-footer{position: absolute;/*text-shadow: #888 1px 1px 1px;*/ left: 0; bottom: 0; width: 100%;padding: 20px; text-align: center; box-sizing: border-box; color: rgba(0,0,0,.6)}
.layadmin-user-login-footer span{padding: 0 5px;}
.layadmin-user-login-footer a{padding: 0 5px; color: rgba(0,0,0,.5);}
.layadmin-user-login-footer a:hover{color: rgba(0,0,0,1);}

/* 有背景图时 */
.layadmin-user-login-main[bgimg]{background-color: #fff; box-shadow: 0 0 5px rgba(0,0,0,0.05);}

/* 主题背景 */
.ladmin-user-login-theme{position: fixed; bottom: 0; left: 0; width: 100%; text-align: center;}
.ladmin-user-login-theme ul{display: inline-block; padding: 5px; background-color: #fff;}
.ladmin-user-login-theme ul li{display: inline-block; vertical-align: top; width: 64px; height: 43px; cursor: pointer; transition: all .3s; -webkit-transition: all .3s; background-color: #f2f2f2;}
.ladmin-user-login-theme ul li:hover{opacity: 0.9}

@media screen and (max-width: 768px) {
  .layadmin-user-login{padding-top: 60px;}
  .layadmin-user-login-main{width: 300px;}
  .layadmin-user-login-box{padding: 10px;}
}

/* =========================================================
 * 2) Modern login page (从 app/view/login/index.html 迁移)
 *    迁移日期 2026-07-01
 * ========================================================= */

/* 静态兜底变量（被模板 head 内联 <style> 覆盖） */
:root {
  --primary: #9670FF;
  --primary-rgb: 150, 112, 255;
  --primary-dark: #7c5ce0;
  --color2: #7c5ce0;
  --text-main: #A67B5B;
  --text-sub: #78636f;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(255, 255, 255, 0.7);
  --input-bg: rgba(255, 255, 255, 0.55);
  --input-border: rgba(255, 255, 255, 0.9);
  --btn-shadow: rgba(var(--primary-rgb), 0.38);
}

body.dark-theme {
  --text-main: #f0f0f5;
  --text-sub: #9ca3af;
  --card-bg: rgba(20, 20, 45, 0.9);
  --card-border: rgba(255, 255, 255, 0.12);
  --input-bg: rgba(0, 0, 0, 0.22);
  --input-border: rgba(255, 255, 255, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; overflow: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8e0ff 50%, #f5f0ff 100%);
  position: relative;
  transition: background 0.5s ease;
}

/* 暗色主题叠加在背景图上 */
body.dark-theme::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 8, 30, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 0;
}

/* 明亮模式蒙版（背景图时让文字更清晰） */
body::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 1, 7, 0.638);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 0;
  pointer-events: none;
}

/* 优先内嵌 !important 强化优先级 */
.layui-icon {
    font-family: layui-icon !important;
    font-size: 16px !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    color: #ffffff;
}

/* ========== 彩色气泡（仅无背景图时显示） ========== */
.color-blobs {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  filter: blur(55px);
}
.color-blobs .blob {
  position: absolute; width: 36vw; height: 36vw;
  border-radius: 50%; mix-blend-mode: screen; opacity: 0.5;
  will-change: transform;
}
.blob1 { background: radial-gradient(circle at 30% 30%, #ff6b6b 0%, transparent 65%); top: 8%; left: 5%; animation: float1 28s ease-in-out infinite; }
.blob2 { background: radial-gradient(circle at 60% 40%, #feca57 0%, transparent 65%); top: 12%; left: 48%; animation: float2 32s ease-in-out infinite; }
.blob3 { background: radial-gradient(circle at 40% 70%, #54a0ff 0%, transparent 65%); top: 48%; left: 18%; animation: float3 26s ease-in-out infinite; }
.blob4 { background: radial-gradient(circle at 70% 60%, #5f27cd 0%, transparent 65%); top: 52%; left: 60%; animation: float4 30s ease-in-out infinite; }
.blob5 { background: radial-gradient(circle at 50% 50%, #1dd1a1 0%, transparent 65%); top: 68%; left: 32%; animation: float5 34s ease-in-out infinite; }
@keyframes float1 { 0%{transform:translate(0,0) scale(1)} 50%{transform:translate(7vw,-4vw) scale(1.07)} 100%{transform:translate(0,0) scale(1)} }
@keyframes float2 { 0%{transform:translate(0,0) scale(1)} 50%{transform:translate(-5vw,5vw) scale(1.05)} 100%{transform:translate(0,0) scale(1)} }
@keyframes float3 { 0%{transform:translate(0,0) scale(1)} 50%{transform:translate(6vw,5vw) scale(1.06)} 100%{transform:translate(0,0) scale(1)} }
@keyframes float4 { 0%{transform:translate(0,0) scale(1)} 50%{transform:translate(-4vw,-5vw) scale(1.04)} 100%{transform:translate(0,0) scale(1)} }
@keyframes float5 { 0%{transform:translate(0,0) scale(1)} 50%{transform:translate(5vw,-4vw) scale(1.05)} 100%{transform:translate(0,0) scale(1)} }

/* ========== 粒子 ========== */
.circles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.circles li {
  position: absolute; list-style: none; background: rgba(255,255,255,0.6); border-radius: 50%;
  animation: animateBubble 25s linear infinite; bottom: -150px;
}
.circles li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.circles li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.circles li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.circles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.circles li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.circles li:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.circles li:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.circles li:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.circles li:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.circles li:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }
body.dark-theme .circles li { background: rgba(var(--primary-rgb), 0.3); }

@keyframes animateBubble {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 50%; }
  100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}

/* ========== 主题切换 ========== */
.theme-btn {
  position: fixed; top: 20px; right: 20px; z-index: 200;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(12px);
  color: var(--primary); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.theme-btn:hover { transform: rotate(15deg) scale(1.1); }

/* ========== 页面层 ========== */
.page {
  position: relative; z-index: 1;
  height: 100vh;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ========== 第一页：英雄区 ========== */
.page-hero {
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 8vw;
  position: relative;
}
.hero-back-home {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  transition: background 0.2s;
  z-index: 10;
}
.hero-back-home:hover {
  background: rgba(255,255,255,0.3);
}

.hero-content {
  animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  max-width: 600px;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: 72px; height: 72px; border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  box-shadow: 0 12px 36px var(--btn-shadow);
  animation: logoFloat 3s ease-in-out infinite;
}
@keyframes logoFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
.hero-logo svg { width: 38px; height: 38px; fill: white; }

/* 主标题色：使用 color2（来自 admin_set.color2） */
.hero-title {
  font-size: clamp(38px, 1.5vw, 76px);
  font-weight: 700; color: var(--color2);
  line-height: 1.15; margin-bottom: 20px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(255,255,255,0.4);
}
body.dark-theme .hero-title { text-shadow: 0 2px 20px rgba(0,0,0,0.4); }

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 20px);
  color: var(--text-sub); line-height: 1.9;
  letter-spacing: 1px; margin-bottom: 52px;
}

.hero-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 58px; padding: 0 48px;
  border: none; border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: clamp(16px, 1.5vw, 19px);
  letter-spacing: 4px; font-weight: 600;
  cursor: pointer; box-shadow: 0 12px 36px var(--btn-shadow);
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.hero-btn::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 44px var(--btn-shadow); }
.hero-btn:hover::before { left: 100%; }

/* 英雄页底部版权/备案 */
.hero-footer {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 4px 14px;
  padding: 16px 24px 22px;
  color: rgba(255,255,255,0.55); font-size: 11px; line-height: 1.6;
}
.hero-footer > span { display: inline-flex; align-items: center; gap: 6px; }
.hero-footer a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.25s; }
.hero-footer a:hover { color: #fff; }

/* ========== 第二页：登录卡 ========== */
.page-login {
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 30px 20px;
}

.login-card {
  width: 100%; max-width: 440px;
  background: var(--card-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow: 0 28px 72px rgba(0,0,0,0.12), 0 0 0 1px rgba(255,255,255,0.05) inset;
  overflow: hidden;
  animation: cardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 顶部渐变条 */
.login-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), #00c6ff, var(--primary));
  background-size: 300% 100%;
  animation: gradFlow 4s linear infinite;
}
@keyframes gradFlow { to { background-position: -300% 0; } }

/* 返回按钮 */
.back-btn {
  position: absolute; top: 20px; left: 20px;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(12px);
  color: var(--text-main); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s;
  z-index: 10;
}
.back-btn:hover { background: rgba(255,255,255,0.4); transform: scale(1.1); }

/* 登录卡头部 */
.login-header {
  padding: 44px 40px 28px;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.08) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  text-align: center;
}
body.dark-theme .login-header {
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.12) 0%, transparent 100%);
  border-bottom-color: rgba(255,255,255,0.07);
}

.login-logo-sm {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px var(--btn-shadow);
}
.login-logo-sm svg { width: 28px; height: 28px; fill: white; }

/* 登录卡标题（含 {$webname}）使用 color2 主题色，来源 admin_set.color2 */
.login-title { font-size: 24px; font-weight: 700; color: var(--color2); letter-spacing: 2px; margin-bottom: 6px; }
.login-subtitle { font-size: 13px; color: var(--text-sub); }

/* 可复用的 theme 颜色工具类（用于英雄区副标题里混排的 {$webname}） */
.webname-color { color: var(--color2); }
.hero-title-color { color: var(--color2); }

/* 错误提示 */
.error-tips {
  margin: 20px 36px 0;
  background: rgba(254, 215, 215, 0.95);
  border-left: 4px solid #f56565;
  color: #c53030; padding: 12px 16px; border-radius: 10px;
  font-size: 13px; display: none; align-items: center;
  animation: shakeErr 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
body.dark-theme .error-tips { background: rgba(220,38,38,0.85); color: #fca5a5; }
@keyframes shakeErr {
  10%,90%{transform:translate3d(-1px,0,0)} 20%,80%{transform:translate3d(2px,0,0)}
  30%,50%,70%{transform:translate3d(-4px,0,0)} 40%,60%{transform:translate3d(4px,0,0)}
}
.error-tips i { margin-right: 8px; }

/* 表单 */
.login-body { padding: 24px 36px 28px; }

.form-item { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 8px; letter-spacing: 0.5px; }
.input-wrap { position: relative; }

.form-input {
  width: 100%; height: 50px; padding: 0 16px 0 48px;
  background: var(--input-bg); border: 2px solid var(--input-border);
  border-radius: 12px; color: var(--text-main); font-size: 14px;
  outline: none; transition: all 0.25s;
}
.form-input::placeholder { color: rgba(128,128,128,0.4); }
.form-input:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.65);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}
body.dark-theme .form-input { color: #f0f0f5; }
body.dark-theme .form-input:focus { background: rgba(0,0,0,0.3); }

.input-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 17px; color: var(--text-sub); transition: color 0.25s; pointer-events: none;
}
.form-item:focus-within .input-icon { color: var(--primary); }

.pwd-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-sub); font-size: 16px; transition: color 0.25s; padding: 4px;
}
.pwd-toggle:hover { color: var(--primary); }

.captcha-row { display: flex; gap: 10px; align-items: flex-end; }
.captcha-row .input-wrap { flex: 1; }

.captcha-img {
  width: 112px; height: 50px; border-radius: 12px; cursor: pointer;
  border: 2px solid var(--input-border); object-fit: cover;
  transition: all 0.25s; flex-shrink: 0;
}
.captcha-img:hover { border-color: var(--primary); transform: scale(1.02); box-shadow: 0 4px 16px rgba(var(--primary-rgb),0.18); }

/* ========== 记住登录复选框（修复版） ========== */
.remember-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  min-height: 24px;
  width: 100%;
}

.remember-label {
  display: flex; align-items: center;
  cursor: pointer; user-select: none;
  color: var(--text-sub); font-size: 13px;
  padding: 4px 0;
  position: relative;
}

/* 彻底隐藏原生 checkbox */
.remember-label input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  border: none !important;
  background: transparent !important;
}

/* 自定义复选框 */
.checkmark {
  width: 20px; height: 20px; flex-shrink: 0;
  margin-right: 10px;
  border: 2px solid rgba(128,128,128,0.4);
  border-radius: 6px;
  background: var(--input-bg);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  box-sizing: border-box;
}

/* 勾选后 */
.remember-label input[type="checkbox"]:checked ~ .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.remember-label input[type="checkbox"]:checked ~ .checkmark::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}

.remember-label:hover .checkmark { border-color: var(--primary); }

/* ========== 登录按钮 ========== */
.btn-login {
  width: 100%; height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none; border-radius: 12px;
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 4px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: all 0.3s; box-shadow: 0 8px 28px var(--btn-shadow);
}
.btn-login::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 12px 36px var(--btn-shadow); }
.btn-login:hover::before { left: 100%; }
.btn-login.loading { pointer-events: none; }
.btn-login.loading::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%;
  animation: spinBtn 0.75s linear infinite; top: 50%; left: 50%; transform: translate(-50%,-50%);
}
@keyframes spinBtn { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* 底部链接 */
.login-footer {
  padding: 0 36px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.login-link { color: var(--text-sub); font-size: 13px; text-decoration: none; transition: color 0.25s; margin-left: 20px; }
.login-link:hover { color: var(--primary); }

/* 版权 */
.copyright-bar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 4px 14px;
  text-align: center; padding: 14px 36px 22px;
  border-top: 1px solid rgba(128,128,128,0.1);
  color: rgba(128,128,128,0.5); font-size: 11px; line-height: 1.6;
}
.copyright-bar > span { display: inline-flex; align-items: center; gap: 6px; }
.copyright-bar a { color: rgba(128,128,128,0.6); text-decoration: none; transition: color 0.25s; }
.copyright-bar a:hover { color: var(--primary); }
/* 默认隐藏这个复选框，页面优先不显示 */
.layui-form-checkbox {
    display: none !important;
}
/* ========== 响应式 ========== */
@media (max-width: 640px) {
  .page-login {
    padding: 0;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 20px;
  }
  .login-card {
    max-width: 100%;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    margin: 0 auto;
  }
  .login-header { padding: 32px 28px 22px; }
  .login-body { padding: 16px 28px 24px; }
  .error-tips { margin: 16px 28px 0; }
  .login-footer { padding: 0 28px 18px; }
  .copyright-bar { padding: 12px 28px 18px; }
  .captcha-img { width: 96px; height: 46px; }
  .form-input, .btn-login { height: 46px; }
}

@media (max-width: 380px) {
  .login-header { padding: 28px 20px 18px; }
  .login-body { padding: 12px 20px 20px; }
  .error-tips { margin: 12px 20px 0; }
  .login-footer { padding: 0 20px 14px; }
  .copyright-bar { padding: 10px 20px 14px; }
  .captcha-img { width: 84px; height: 42px; }
  .form-input, .btn-login { height: 42px; }
}

/* ========== 错误弹窗 ========== */
.error-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}
.error-modal-overlay.show {
  display: flex;
}
.error-modal-card {
  width: 340px;
  max-width: 90%;
  background: white;
  border-radius: 20px;
  padding: 36px 28px 30px;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0,0,0,0.25);
  animation: scaleIn 0.35s ease;
}
.error-modal-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(255,107,107,0.3);
}
.error-modal-icon i {
  font-size: 36px;
  color: white;
}
.error-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 10px;
}
.error-modal-msg {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.6;
}
.error-modal-btn {
  display: inline-block;
  padding: 10px 36px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(255,107,107,0.3);
}
.error-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,107,0.45);
}
body.dark-theme .error-modal-card {
  background: #1e2235;
}
body.dark-theme .error-modal-title {
  color: #e2e8f0;
}
body.dark-theme .error-modal-msg {
  color: #94a3b8;
}

/* ========== 成功弹窗 ========== */
.success-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
.success-modal-overlay.show {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.success-modal-card {
  width: 360px;
  max-width: 90%;
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0,0,0,0.3);
  animation: scaleIn 0.4s ease;
}
@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-modal-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #52c41a, #389e0d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(82,196,26,0.3);
}
.success-modal-icon i {
  font-size: 40px;
  color: white;
}
.success-modal-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 12px;
}
.success-modal-msg {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 28px;
  line-height: 1.6;
}
.success-modal-btn {
  display: inline-block;
  padding: 12px 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.35);
}
.success-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.45);
}
