/* ============================================
   e 社區 - 共用設計系統 v8.1 (Warm Trust)
   給 admin/、super/、e/ 共用
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Noto+Sans+TC:wght@400;500;700;800&display=swap');

:root {
  /* === Brand === */
  --primary: #f59e0b;
  --primary-light: #fbbf24;
  --primary-dark: #d97706;
  --primary-50: #fffbeb;
  --primary-100: #fef3c7;
  --primary-200: #fde68a;
  --secondary: #84cc16;
  --secondary-dark: #65a30d;
  --accent: #fb923c;
  --pink: #f472b6;

  /* === Surfaces === */
  --bg: #ffffff;
  --bg-warm: #fffbeb;
  --bg-cream: #fef3c7;
  --bg-soft: #fef9f0;
  --bg-page: #f8fafc;
  --bg-dark: #1c1917;
  --bg-sidebar: linear-gradient(180deg, #1c1917 0%, #292524 100%);

  /* === Text === */
  --text: #1c1917;
  --text-2: #44403c;
  --text-muted: #78716c;
  --text-light: #a8a29e;
  --text-white: rgba(255,255,255,0.95);
  --text-white-muted: rgba(255,255,255,0.6);

  /* === Borders === */
  --border: #fde68a;
  --border-light: #fef3c7;
  --border-cool: #e2e8f0;
  --border-strong: #fbbf24;

  /* === Status === */
  --success: #84cc16;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* === Shadows (Diffusion) === */
  --shadow-xs: 0 1px 2px rgba(245, 158, 11, 0.04);
  --shadow-sm: 0 2px 8px rgba(245, 158, 11, 0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px -2px rgba(245, 158, 11, 0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px -4px rgba(245, 158, 11, 0.10), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 16px 40px -8px rgba(245, 158, 11, 0.14), 0 8px 16px rgba(0,0,0,0.04);

  /* === Radii === */
  --r-sm: 8px;
  --r: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 9999px;
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Outfit', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 15px; }
h5 { font-size: 13px; }
p { margin: 0 0 1em; color: var(--text-2); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r-full);
  font-family: 'Outfit', 'Noto Sans TC', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  color: white;
}
.btn-secondary {
  background: var(--secondary);
  color: white;
  box-shadow: 0 2px 8px rgba(132, 204, 22, 0.3);
}
.btn-secondary:hover { background: var(--secondary-dark); color: white; }
.btn-outline {
  background: white;
  color: var(--text);
  border-color: var(--border-cool);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--primary); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* === Cards === */
.card {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-cool);
  padding: 24px;
  transition: all 0.2s;
}
.card:hover { box-shadow: var(--shadow-sm); }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-cool);
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === Badges === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--primary-100);
  color: var(--primary-dark);
  letter-spacing: 0.02em;
}
.badge-success { background: #ecfccb; color: #4d7c0f; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-muted { background: #f1f5f9; color: #475569; }

/* === Tables === */
.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}
.table th, .table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-cool);
}
.table th {
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.table tbody tr:hover { background: var(--bg-warm); }
.table tbody tr:last-child td { border-bottom: none; }

/* === Forms === */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-cool);
  border-radius: var(--r);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: all 0.2s;
  box-sizing: border-box;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { background: white; }

/* === Topbar (admin/super pages) === */
.topbar {
  background: white;
  border-bottom: 1px solid var(--border-cool);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.topbar-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--bg-warm);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
}
.topbar-user .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}

/* === Sidebar (super/admin) - v8.1 Warm Trust */
.super-sidebar,
.admin-sidebar {
  width: 240px;
  min-width: 240px;
  background: linear-gradient(180deg, #1c1917 0%, #292524 100%);
  color: var(--text-white);
  padding: 0;
  min-height: 100vh;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.super-sidebar::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.super-sidebar::-webkit-scrollbar-thumb,
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.super-sidebar h1,
.admin-sidebar h1 {
  font-size: 15px;
  padding: 20px 20px 20px;
  margin: 0 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.super-sidebar h1 img,
.admin-sidebar h1 img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.super-sidebar h1 .logo-text,
.admin-sidebar h1 .logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.super-sidebar h1 .logo-text small,
.admin-sidebar h1 .logo-text small {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  -webkit-text-fill-color: rgba(255,255,255,0.5);
}
.super-sidebar h1 .gradient,
.admin-sidebar h1 .gradient {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.super-sidebar .role,
.admin-sidebar .role {
  padding: 14px 20px 6px;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
}
.super-sidebar .role:first-of-type,
.admin-sidebar .role:first-of-type { margin-top: 4px; }
.super-sidebar a,
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  line-height: 1.3;
}
.super-sidebar a:hover,
.admin-sidebar a:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}
.super-sidebar a.active,
.admin-sidebar a.active {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-left-color: #fbbf24;
  font-weight: 700;
}
.super-sidebar a svg,
.admin-sidebar a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 2;
  opacity: 0.85;
}
.super-sidebar a.active svg,
.admin-sidebar a.active svg { opacity: 1; }
.super-sidebar .spacer,
.admin-sidebar .spacer { flex: 1; }
.super-sidebar .logout,
.admin-sidebar .logout {
  color: #fca5a5;
  margin: 16px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
}
.super-sidebar .logout:hover,
.admin-sidebar .logout:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

/* === Main layout (sidebar + content) === */
.layout {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
  background: var(--bg-page);
}
.layout-main {
  flex: 1;
  min-width: 0;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
}
.layout-main .main-inner { flex: 1; }
.super-banner {
  background: linear-gradient(90deg, #1c1917 0%, #44403c 50%, #1c1917 100%);
  background-size: 200% 100%;
  animation: superMove 8s linear infinite;
  color: white;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 16px;
  flex-wrap: wrap;
}
@keyframes superMove { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.super-banner .left { display: flex; align-items: center; gap: 10px; }
.super-banner .crown { font-size: 18px; }
.super-banner select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.super-banner select option { color: #1c1917; background: white; }
.super-banner a {
  color: #fbbf24;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid #fbbf24;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.super-banner a:hover { background: #fbbf24; color: #1c1917; }
.super-banner code {
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}

/* === Page header (inside admin/super pages) === */
.page-header {
  background: white;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-cool);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-header h1 svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  stroke-width: 2;
}
.page-header .desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.page-body {
  padding: 24px 32px;
  max-width: 1400px;
}

/* === KPI Cards === */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-cool);
  padding: 20px 22px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, #f59e0b, #fb923c);
  opacity: 0;
  transition: opacity 0.2s;
}
.kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
}
.kpi:hover::before { opacity: 1; }
.kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi-label svg {
  width: 14px; height: 14px;
  color: var(--primary);
  stroke-width: 2;
}
.kpi-value {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.kpi.warn .kpi-value { background: linear-gradient(135deg, #f59e0b, #d97706); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.kpi.danger .kpi-value { background: linear-gradient(135deg, #ef4444, #dc2626); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.kpi.success .kpi-value { background: linear-gradient(135deg, #84cc16, #65a30d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.kpi.info .kpi-value { background: linear-gradient(135deg, #3b82f6, #2563eb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.kpi.purple .kpi-value { background: linear-gradient(135deg, #8b5cf6, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.kpi-delta {
  font-size: 11px;
  color: var(--success);
  margin-top: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.kpi-delta.down { color: var(--danger); }

/* === Stat Row (alternative) === */
.stat-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* === Tag chip === */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--bg-warm);
  color: var(--primary-dark);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.tag-info { background: #dbeafe; color: #1e40af; }
.tag-success { background: #ecfccb; color: #4d7c0f; }
.tag-warning { background: #fef3c7; color: #92400e; }
.tag-danger { background: #fee2e2; color: #991b1b; }
.tag-muted { background: #f1f5f9; color: #475569; }

/* === User chip (in topbar) === */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  background: var(--bg-warm);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.user-chip .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}
.user-chip .role-tag {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
}

/* === Page nav (anchor links) === */
.page-nav {
  display: flex;
  gap: 4px;
  background: white;
  padding: 4px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-cool);
  margin-bottom: 24px;
  width: fit-content;
}
.page-nav a {
  padding: 8px 16px;
  border-radius: var(--r-full);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}
.page-nav a.active, .page-nav a:hover {
  background: var(--bg-warm);
  color: var(--primary-dark);
}

/* === Empty state === */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }

/* === Quick action cards (admin dashboard) === */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.quick-card {
  background: white;
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border-cool);
  box-shadow: var(--shadow-sm);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.quick-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.quick-card .quick-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  color: var(--primary-dark);
  border-radius: 14px;
  transition: all 0.2s;
}
.quick-card .quick-icon svg {
  width: 22px; height: 22px; stroke-width: 2;
}
.quick-card:hover .quick-icon {
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  color: white;
  transform: scale(1.05);
}
.quick-name { font-weight: 700; margin-bottom: 4px; font-size: 14px; }
.quick-sub { color: var(--text-muted); font-size: 11px; }

/* === Alert / Message box === */
.alert {
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 2; }
.alert-success { background: #ecfccb; color: #4d7c0f; border-color: #bef264; }
.alert-info { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.alert-warning { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.alert-danger { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

/* === Modal === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(4px);
}
.modal.show { display: flex; }
.modal-content {
  background: white;
  border-radius: var(--r-xl);
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

/* === Mobile === */
@media (max-width: 768px) {
  .super-sidebar, .admin-sidebar {
    position: fixed;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  .super-sidebar.open, .admin-sidebar.open { transform: translateX(0); }
  .layout { flex-direction: column; }
  .page-header, .page-body { padding: 16px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* === Login page (共用) === */
.login-body {
  background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-body::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2), transparent 70%);
  border-radius: 50%;
}
.login-body::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(132, 204, 22, 0.15), transparent 70%);
  border-radius: 50%;
}
.login-wrap { width: 100%; max-width: 440px; position: relative; z-index: 1; }
.login-logo {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 24px; font-weight: 800; color: white;
  margin-bottom: 24px;
}
.login-logo img { width: 40px; height: 40px; border-radius: var(--r-sm); }
.login-logo span { background: linear-gradient(135deg, #fbbf24, #f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.login-card {
  background: white;
  padding: 32px 28px;
  border-radius: var(--r-xl);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.login-card h1 { font-size: 22px; margin-bottom: 4px; }
.login-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.login-form label {
  display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 600;
}
.login-form input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border-cool);
  border-radius: var(--r); font-size: 16px;
  margin-bottom: 20px;
}
.login-form input:focus { outline: none; border-color: var(--primary); }
.login-demo {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px dashed var(--border-cool);
  text-align: center; font-size: 12px; color: var(--text-muted);
}
.login-demo code {
  background: #fef3c7; padding: 4px 10px; border-radius: 4px;
  display: inline-block; margin: 2px;
}
.login-footer { margin-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.7); }

/* === Utility === */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.between { justify-content: space-between; }
.center { align-items: center; }
