/* ====================================================================
   GEO Cloud · Design Tokens (v0.5.1+ · 调和灰蓝)

   作用：所有走 Arco 视觉语言的页面共享一套颜色 / 圆角 / 阴影。
   引用：<link rel="stylesheet" href="../shared/arco-tokens.css">

   迁移完成的页面：
   - register.html（v0.5.1）
   - login.html       （v0.5.2）
   - workspace.html   （v0.5.2）
   待迁移：alerts / reports / tenants / account / agents / pricing / ...
   ==================================================================== */
:root {
  /* ============ Brand · Indigo（调和灰蓝，灵感来自 Linear / Mantine） ============ */
  --arco-blue-1: #EFF6FF;   /* indigo-50  · 浅底色 */
  --arco-blue-2: #E0E7FF;   /* indigo-100 · 中浅底 */
  --arco-blue-3: #BFDBFE;   /* indigo-200 · 边框 */
  --arco-blue-4: #A5B4FC;   /* indigo-300 */
  --arco-blue-5: #3B82F6;   /* indigo-500 · hover */
  --arco-blue-6: #2563EB;   /* indigo-600 · MAIN PRIMARY */
  --arco-blue-7: #1E40AF;   /* indigo-700 · active / pressed */

  /* ============ Semantic ============ */
  --arco-success:    #10B981;
  --arco-success-bg: #D1FAE5;
  --arco-warning:    #F59E0B;
  --arco-warning-bg: #FEF3C7;
  --arco-error:      #EF4444;
  --arco-error-bg:   #FEE2E2;
  --arco-info:       #06B6D4;
  --arco-info-bg:    #CFFAFE;

  /* ============ Text (Slate) ============ */
  --arco-text-1: #1E293B;   /* slate-800 · 标题 */
  --arco-text-2: #475569;   /* slate-600 · 正文 */
  --arco-text-3: #94A3B8;   /* slate-400 · 提示 / placeholder */
  --arco-text-4: #CBD5E1;   /* slate-300 · 禁用 */

  /* ============ Border ============ */
  --arco-border-1: #E2E8F0; /* slate-200 · 默认 */
  --arco-border-2: #CBD5E1; /* slate-300 · hover */

  /* ============ Background ============ */
  --arco-bg-1: #FFFFFF;     /* 卡片 */
  --arco-bg-2: #F8FAFC;     /* slate-50  · 浅灰 */
  --arco-bg-3: #F1F5F9;     /* slate-100 · 默认页 */
  --arco-bg-4: #E2E8F0;     /* slate-200 · 加深 */

  /* ============ Shadow ============ */
  --arco-shadow-1: 0 1px 3px rgba(15, 23, 42, 0.05);
  --arco-shadow-2: 0 4px 14px rgba(15, 23, 42, 0.08);
  --arco-shadow-3: 0 8px 32px rgba(37, 99, 235, 0.12);   /* indigo 染色 */
  --arco-shadow-btn: 0 4px 12px rgba(37, 99, 235, .25);
  --arco-shadow-btn-hover: 0 6px 18px rgba(37, 99, 235, .35);

  /* ============ Radius ============ */
  --radius-sm: 4px;     /* inputs, buttons, tags */
  --radius-md: 6px;     /* cards, dropdown */
  --radius-lg: 8px;     /* modals, large containers */
  --radius-xl: 12px;    /* page hero / banner */

  /* ============ Spacing ============ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* ============ Font ============ */
  --font-stack: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  /* ============ Layout ============ */
  --header-h: 60px;
  --sidebar-w: 220px;
  --sidebar-w-collapsed: 64px;

  /* 兼容旧变量（部分页面还在用 --accent 等旧名字，让他们自动继承新色系） */
  --accent:        #2563EB;
  --accent-dark:   #1E40AF;
  --accent-light:  #3B82F6;
  --accent-bg:     #EFF6FF;
  --accent-border: #BFDBFE;
  --text:          #1E293B;
  --text2:         #475569;
  --text3:         #94A3B8;
  --border:        #E2E8F0;
  --border-l:      #CBD5E1;
  --bg:            #F1F5F9;
  --bg2:           #F8FAFC;
  --surface:       #FFFFFF;
  --surface2:      #F8FAFC;
  --green:         #10B981;
  --green-bg:      #D1FAE5;
  --red:           #EF4444;
  --red-bg:        #FEE2E2;
  --orange:        #F59E0B;
  --orange-bg:     #FEF3C7;
}

/* ============ Reset & Base ============ */
* { box-sizing: border-box; }

body {
  font-family: var(--font-stack);
  color: var(--arco-text-1);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  background: var(--arco-bg-3);
}

/* lucide icon shared */
.ic { display: inline-block; vertical-align: middle; }

/* ============ Common Utilities ============ */
.arco-divider-h { display: flex; align-items: center; gap: 14px; color: var(--arco-text-3); font-size: 12px; }
.arco-divider-h::before, .arco-divider-h::after { content: ''; flex: 1; height: 1px; background: var(--arco-border-1); }

/* keyframe shared */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
