/* ============================================================
   电商 AI 绩效云 · 授权管理端 设计系统 v3
   布局骨架 + 通用组件
   颜色 / 风格由 themes.css 按 data-color / data-style 覆盖
   ============================================================ */

/* ---------- 主题变量默认值（翡翠绿 · 专业深色侧栏） ---------- */
:root {
  --primary: #16a34a;
  --primary-hover: #15803d;
  --primary-soft: rgba(22, 163, 74, .10);
  --accent: #22c55e;

  --bg: #f5f8f6;
  --surface: #ffffff;
  --surface-2: #f4f8f5;

  --sidebar-bg: #0b2a1b;
  --sidebar-title: #ffffff;
  --sidebar-text: rgba(255, 255, 255, .68);
  --sidebar-muted: rgba(255, 255, 255, .38);
  --sidebar-hover: rgba(255, 255, 255, .07);
  --sidebar-active: rgba(255, 255, 255, .13);
  --sidebar-border: rgba(255, 255, 255, .08);

  --border: rgba(15, 23, 42, .09);
  --border-strong: rgba(15, 23, 42, .16);
  --text: #0f172a;
  --text-2: #5a6478;
  --text-3: #8b94a7;

  --success: #16a34a;  --success-soft: #dcfce7;
  --warn: #f59e0b;     --warn-soft: #fef3c7;
  --danger: #ef4444;   --danger-soft: #fee2e2;
  --info: #2563eb;     --info-soft: #dbeafe;
  --purple: #7c5cff;   --purple-soft: #ede9fe;

  --font: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, monospace;

  --sidebar-w: 208px;
  --sidebar-w-collapsed: 66px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 8px 24px -10px rgba(15, 23, 42, .16);
  --shadow-lg: 0 20px 50px -18px rgba(15, 23, 42, .28);
  --transition: .18s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, .16); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, .3); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 布局骨架 ---------- */
.layout { display: flex; height: 100vh; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width var(--transition);
}
.sidebar-brand { padding: 20px 18px 16px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--sidebar-border); white-space: nowrap; }
.sidebar-brand .logo {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -4px var(--primary);
}
.sidebar-brand .logo svg { width: 20px; height: 20px; }
.sidebar-brand .title { color: var(--sidebar-title); font-weight: 700; font-size: 15px; letter-spacing: -.2px; }
.sidebar-brand .sub { color: var(--sidebar-muted); font-size: 11px; margin-top: 1px; }

.nav { padding: 10px 10px 20px; flex: 1; }
.nav-section {
  font-size: 10.5px; color: var(--sidebar-muted); padding: 16px 12px 6px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; white-space: nowrap;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  cursor: pointer; color: var(--sidebar-text); font-size: 13.5px; margin-bottom: 1px;
  transition: all .15s ease; position: relative; white-space: nowrap;
}
.nav-item:hover { background: var(--sidebar-hover); color: var(--sidebar-title); }
.nav-item.active { background: var(--sidebar-active); color: var(--sidebar-title); font-weight: 600; }
.nav-item.active::before {
  content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--primary);
}
.nav-item .ico { width: 18px; height: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.nav-item .ico svg { width: 18px; height: 18px; }
.nav-item .badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 10px; font-weight: 600; }
.sidebar-foot { padding: 14px 16px; border-top: 1px solid var(--sidebar-border); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.sidebar-foot .avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px;
}
.sidebar-foot .info { flex: 1; min-width: 0; }
.sidebar-foot .name { color: var(--sidebar-title); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot .ver { color: var(--sidebar-muted); font-size: 11px; }

/* ---------- 主区域 ---------- */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar {
  height: 60px; background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 20px; gap: 12px; flex-shrink: 0;
}
.topbar .nav-toggle { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-2); flex-shrink: 0; }
.topbar .nav-toggle:hover { background: var(--surface-2); color: var(--text); }
.topbar .page-title { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.topbar .spacer { flex: 1; }
.topbar .admin-info { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.topbar .admin-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}

.content { flex: 1; overflow-y: auto; padding: 22px 24px 48px; }

/* ---------- KPI 统计卡片（全站统一尺寸，自适应列数） ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
/* 全站统计卡片统一 4 列尺寸排版（与授权列表四个卡片一致）；窄屏回退自适应避免挤压 */
@media (min-width: 1280px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; position: relative; overflow: hidden;
  min-height: 128px; display: flex; flex-direction: column; justify-content: center;
  transition: all .2s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.stat-card::after {
  content: ""; position: absolute; right: -20px; top: -20px; width: 82px; height: 82px;
  border-radius: 50%; background: var(--card-color, var(--primary)); opacity: .06;
}
.stat-card .ico-wrap {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.stat-card .ico-wrap svg { width: 20px; height: 20px; }
.stat-card .n { font-size: 27px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.stat-card .l { font-size: 13px; color: var(--text-2); margin-top: 3px; font-weight: 500; }
.stat-card .sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ---------- 卡片 ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 20px; overflow: hidden; }
.card-head { padding: 15px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.card-body { padding: 20px; }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.tbl th { background: var(--surface-2); font-weight: 600; color: var(--text-2); font-size: 12px; letter-spacing: .2px; white-space: nowrap; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl-wrap { overflow-x: auto; }

/* ---------- 徽章 ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warn { background: var(--warn-soft); color: #b45309; }
.badge-gray { background: rgba(139, 148, 167, .14); color: var(--text-2); }
.badge-info { background: var(--info-soft); color: var(--info); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 8px;
  font-size: 14px; background: var(--surface); color: var(--text); outline: none; transition: all .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.textarea { min-height: 80px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b94a7' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }

/* ---------- 按钮 ---------- */
.btn {
  padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer;
  transition: all .15s; font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px -4px var(--primary); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; border-color: var(--primary-hover); }
.btn-danger { color: var(--danger); border-color: rgba(239, 68, 68, .3); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-lg { max-width: 680px; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.modal-body { padding: 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-size: 13px; }
.pager button { padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); cursor: pointer; transition: all .15s; }
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .info { color: var(--text-3); }

/* ---------- 日志 ---------- */
.log-item { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 13px; }
.log-item:last-child { border-bottom: none; }
.log-time { color: var(--text-3); font-size: 12px; }
.log-detail { color: var(--text-2); font-size: 12px; margin-top: 4px; }
.log-level-high { border-left: 3px solid var(--danger); padding-left: 15px; }
.log-level-medium { border-left: 3px solid var(--warn); padding-left: 15px; }
.log-level-low { border-left: 3px solid var(--info); padding-left: 15px; }

/* ---------- 工具栏 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .search { position: relative; flex: 1; min-width: 200px; }
.toolbar .search input { padding-left: 34px; }
.toolbar .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--text-3); }
.empty .ico { font-size: 48px; margin-bottom: 12px; opacity: .4; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 18px;
  box-shadow: var(--shadow); font-size: 13.5px; display: flex; align-items: center; gap: 8px; animation: slideDown .24s ease;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-14px) } to { opacity: 1; transform: none } }

/* ---------- 工具类 ---------- */
.small { font-size: 12.5px; }
.muted { color: var(--text-3); }
.nowrap { white-space: nowrap; }

/* ---------- 折叠导航（缩进为图标栏） ---------- */
html.nav-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
html.nav-collapsed .sidebar-brand { justify-content: center; padding-left: 0; padding-right: 0; }
html.nav-collapsed .sidebar-brand .title,
html.nav-collapsed .sidebar-brand .sub,
html.nav-collapsed .nav-item span:not(.ico),
html.nav-collapsed .nav-section,
html.nav-collapsed .sidebar-foot .info { display: none; }
html.nav-collapsed .nav-item { justify-content: center; padding: 9px 0; }
html.nav-collapsed .nav-item.active::before { left: -10px; }
html.nav-collapsed .sidebar-foot { justify-content: center; padding-left: 0; padding-right: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .grid2 { grid-template-columns: 1fr; }
  .content { padding: 16px; }

  /* 移动端：侧栏改为抽屉，默认隐藏，点击顶栏菜单按钮展开 */
  .sidebar,
  html.nav-collapsed .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 120;
    width: var(--sidebar-w);
    transform: translateX(-100%);
    transition: transform var(--transition);
  }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }

  /* 抽屉展开时始终显示完整文字导航（即使桌面端曾折叠侧栏） */
  html.nav-collapsed .sidebar-brand { justify-content: flex-start; padding: 20px 18px 16px; }
  html.nav-collapsed .sidebar-brand .title,
  html.nav-collapsed .sidebar-brand .sub,
  html.nav-collapsed .nav-item span:not(.ico),
  html.nav-collapsed .nav-section,
  html.nav-collapsed .sidebar-foot .info { display: block; }
  html.nav-collapsed .nav-item { justify-content: flex-start; padding: 9px 12px; }
  html.nav-collapsed .sidebar-foot { justify-content: flex-start; padding: 14px 16px; }

  .nav-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 110; }
}

/* ==================== 登录页（左介绍 + 右登录） ==================== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(22, 163, 74, .12), transparent 60%),
    radial-gradient(900px 480px at 108% 118%, rgba(124, 92, 255, .09), transparent 55%),
    linear-gradient(165deg, #f8fbf9, #edf3ef);
  position: relative; overflow: hidden;
}
.auth-deco { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .55; pointer-events: none; }
.auth-deco-1 { width: 340px; height: 340px; background: rgba(22, 163, 74, .18); top: -130px; left: -90px; }
.auth-deco-2 { width: 320px; height: 320px; background: rgba(34, 197, 94, .15); bottom: -120px; right: -70px; }
.auth-card {
  position: relative; width: 100%; max-width: 940px; min-height: 560px;
  display: grid; grid-template-columns: 1.04fr 1fr;
  border-radius: 22px; overflow: hidden; background: var(--surface);
  box-shadow: 0 34px 90px -28px rgba(15, 23, 42, .38);
}
/* 左：介绍区 */
.auth-aside {
  background: linear-gradient(168deg, #081f13 0%, #0b2a1b 48%, #14532d 100%);
  color: #fff; padding: 44px 40px 34px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.auth-aside::after, .auth-aside::before { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .10); }
.auth-aside::after { width: 300px; height: 300px; top: -90px; right: -110px; }
.auth-aside::before { width: 200px; height: 200px; top: -40px; right: -60px; }
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-logo {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(34, 197, 94, .65);
}
.auth-brand-name { font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.auth-brand-sub { font-size: 12px; color: rgba(255, 255, 255, .58); margin-top: 1px; }
.auth-title { margin: 36px 0 10px; font-size: 25px; font-weight: 800; letter-spacing: -.6px; line-height: 1.3; position: relative; z-index: 1; }
.auth-desc { margin: 0; color: rgba(255, 255, 255, .72); font-size: 13.5px; line-height: 1.75; position: relative; z-index: 1; }
.auth-feats { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 15px; position: relative; z-index: 1; }
.auth-feats li { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: rgba(255, 255, 255, .88); line-height: 1.45; }
.auth-feat-ico {
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: center; color: #86efac;
}
.auth-feat-ico svg { width: 15px; height: 15px; }
.auth-foot { margin-top: auto; padding-top: 26px; font-size: 11.5px; color: rgba(255, 255, 255, .42); letter-spacing: .3px; position: relative; z-index: 1; }
/* 右：表单区 */
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 44px 42px; }
.auth-main-inner { width: 100%; max-width: 342px; }
.auth-welcome { margin: 0 0 6px; font-size: 23px; font-weight: 800; letter-spacing: -.4px; color: var(--text); }
.auth-hint { margin: 0 0 26px; font-size: 13px; color: var(--text-3); }
.auth-input-wrap { position: relative; }
.auth-input-wrap > svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-3); pointer-events: none;
}
.auth-input { height: 45px; border-radius: 10px; padding-left: 39px; font-size: 14px; }
.auth-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.auth-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; color: var(--text-3);
  transition: all .15s;
}
.auth-eye:hover { color: var(--text); background: var(--surface-2); }
.auth-eye svg { width: 17px; height: 17px; }
.auth-alert {
  display: flex; align-items: center; gap: 8px; padding: 10px 13px; margin: 2px 0 15px;
  border-radius: 10px; background: var(--danger-soft); color: #b91c1c;
  font-size: 12.5px; font-weight: 600; border: 1px solid rgba(239, 68, 68, .25);
}
.auth-alert svg { width: 15px; height: 15px; flex-shrink: 0; }
.auth-submit {
  width: 100%; height: 46px; font-size: 15px; font-weight: 700; letter-spacing: 2px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 10px 24px -8px rgba(22, 163, 74, .55); transition: all .18s;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(22, 163, 74, .6); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: .8; cursor: not-allowed; transform: none; }
.auth-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: authspin .7s linear infinite; display: inline-block; flex-shrink: 0;
}
@keyframes authspin { to { transform: rotate(360deg); } }
.input-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12) !important; }
@keyframes authshake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.auth-shake { animation: authshake .5s ease both; }
@media (max-width: 880px) {
  .auth-card { grid-template-columns: 1fr; max-width: 440px; min-height: auto; }
  .auth-aside { display: none; }
  .auth-main { padding: 40px 28px; }
}
