/* INFATON Control Center v5.0 — Go Edition */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a1f2e;
  --bg-card-hover: #222838;
  --border: #2a3040;
  --border-accent: #06b6d4;
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-green: #22c55e;
  --accent-yellow: #eab308;
  --accent-red: #ef4444;
  --accent-orange: #f97316;
  --gradient-main: linear-gradient(135deg, #06b6d4, #8b5cf6);
  --sidebar-width: 56px;
  --sidebar-expanded: 220px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width 0.25s ease;
}
.sidebar:hover {
  width: var(--sidebar-expanded);
}

.sidebar-logo {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
}
.sidebar-logo .logo-icon {
  width: 28px; height: 28px;
  background: var(--gradient-main);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
  flex-shrink: 0;
}
.sidebar-logo .logo-text {
  font-size: 14px;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transition: opacity 0.2s;
}
.sidebar:hover .logo-text { opacity: 1; }

.sidebar-nav {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 12px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s;
  border-left: 3px solid transparent;
  white-space: nowrap;
  overflow: hidden;
}
.nav-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}
.nav-item.active {
  color: var(--accent-cyan);
  border-left-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
}
.nav-item .nav-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.nav-item .nav-label {
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s;
}
.sidebar:hover .nav-label { opacity: 1; }

.nav-separator {
  height: 1px;
  background: var(--border);
  margin: 8px 12px;
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
}
.sidebar-footer .version {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}

/* Main content */
.main {
  margin-left: var(--sidebar-width);
  height: 100vh;
  overflow-y: auto;
  padding: 20px 24px;
  transition: margin-left 0.25s;
}

/* Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-header .badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Cards grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s;
}
.card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header .card-icon {
  font-size: 18px;
}

/* Status indicators */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.status-dot.green { background: var(--accent-green); box-shadow: 0 0 6px var(--accent-green); }
.status-dot.red { background: var(--accent-red); box-shadow: 0 0 6px var(--accent-red); }
.status-dot.yellow { background: var(--accent-yellow); box-shadow: 0 0 6px var(--accent-yellow); }

/* Stat blocks */
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(42, 48, 64, 0.5);
}
.stat-row:last-child { border-bottom: none; }
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}
.stat-value {
  font-size: 14px;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Progress bar */
.progress-bar {
  height: 6px;
  background: rgba(42, 48, 64, 0.8);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.progress-fill.cyan { background: var(--accent-cyan); }
.progress-fill.green { background: var(--accent-green); }
.progress-fill.yellow { background: var(--accent-yellow); }
.progress-fill.red { background: var(--accent-red); }

/* Service cards */
.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(42, 48, 64, 0.5);
}
.service-item:last-child { border-bottom: none; }
.service-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
}
.service-port {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}

/* PM2 table */
.pm2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.pm2-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pm2-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(42, 48, 64, 0.3);
  color: var(--text-secondary);
}
.pm2-table tr:hover td {
  background: rgba(6, 182, 212, 0.04);
}
.pm2-table .pm2-status {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.pm2-status.online { background: rgba(34, 197, 94, 0.15); color: var(--accent-green); }
.pm2-status.stopped { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }
.pm2-status.errored { background: rgba(249, 115, 22, 0.15); color: var(--accent-orange); }

/* Project cards */
.project-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s;
  cursor: pointer;
}
.project-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}
.project-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.project-info { flex: 1; }
.project-name {
  font-size: 14px;
  font-weight: 600;
}
.project-branch {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
  margin-top: 2px;
}
.project-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.project-status.clean { background: rgba(34, 197, 94, 0.12); color: var(--accent-green); }
.project-status.dirty { background: rgba(234, 179, 8, 0.12); color: var(--accent-yellow); }

/* Placeholder pages */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 120px);
  color: var(--text-muted);
}
.placeholder .placeholder-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.4;
}
.placeholder h2 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.placeholder p {
  font-size: 14px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .main { padding: 12px 14px; }
}

/* ===== Files Layout ===== */
.files-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  height: calc(100vh - 100px);
}
.files-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-y: auto;
  padding: 12px;
}
.files-editor {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Breadcrumb */
.breadcrumb {
  padding: 8px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.bc-item {
  cursor: pointer;
  color: var(--accent-cyan);
  transition: color 0.15s;
}
.bc-item:hover { color: var(--text-primary); }

/* File actions */
.file-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

/* File list */
.file-list { }
.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 13px;
}
.file-item:hover { background: var(--bg-card-hover); }
.file-item.active { background: rgba(6, 182, 212, 0.12); border-left: 2px solid var(--accent-cyan); }
.file-icon { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-primary); }
.file-size { font-size: 11px; color: var(--text-muted); font-family: monospace; }
.file-dl {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 14px; padding: 2px 4px; border-radius: 4px;
  transition: color 0.15s;
}
.file-dl:hover { color: var(--accent-cyan); }

/* Editor */
.editor-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--text-muted); font-size: 14px;
}
.editor-header {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.editor-filename {
  font-weight: 600; font-size: 13px; color: var(--text-primary);
}
.editor-path {
  font-size: 11px; color: var(--text-muted); font-family: monospace;
}
.editor-actions { margin-left: auto; display: flex; gap: 6px; }
.editor-body {
  flex: 1; display: flex; overflow: hidden;
}
.line-numbers {
  width: 48px; padding: 12px 8px; text-align: right;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text-muted); background: rgba(0,0,0,0.2);
  overflow: hidden; white-space: pre-line; line-height: 1.5;
  user-select: none;
}
#codeArea {
  flex: 1; padding: 12px; border: none; outline: none;
  background: var(--bg-primary); color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  line-height: 1.5; resize: none; tab-size: 8;
  overflow: auto;
}

/* Search results */
.search-results { max-height: calc(100vh - 200px); overflow-y: auto; padding: 8px; }
.search-result {
  display: flex; gap: 8px; padding: 6px 8px; cursor: pointer;
  border-radius: 4px; font-size: 12px;
  transition: background 0.15s;
}
.search-result:hover { background: var(--bg-card-hover); }
.sr-file { color: var(--accent-cyan); font-weight: 500; flex-shrink: 0; }
.sr-line { color: var(--accent-yellow); font-family: monospace; flex-shrink: 0; }
.sr-content { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Git ===== */
.git-tabs {
  display: flex; gap: 4px; margin-bottom: 16px;
}
.git-tab {
  padding: 8px 20px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-secondary);
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: all 0.15s;
}
.git-tab:hover { border-color: var(--accent-cyan); color: var(--text-primary); }
.git-tab.active {
  background: rgba(6, 182, 212, 0.12); border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.git-actions {
  display: flex; gap: 8px; margin-bottom: 16px;
}

.git-file {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-bottom: 1px solid rgba(42,48,64,0.3);
  font-size: 13px;
}
.git-file:last-child { border-bottom: none; }
.git-file-status {
  width: 20px; height: 20px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.git-modified .git-file-status { background: rgba(234,179,8,0.2); color: var(--accent-yellow); }
.git-added .git-file-status { background: rgba(34,197,94,0.2); color: var(--accent-green); }
.git-deleted .git-file-status { background: rgba(239,68,68,0.2); color: var(--accent-red); }
.git-untracked .git-file-status { background: rgba(139,92,246,0.2); color: var(--accent-purple); }
.git-renamed .git-file-status { background: rgba(6,182,212,0.2); color: var(--accent-cyan); }
.git-file-name { flex: 1; font-family: monospace; color: var(--text-primary); }

/* Diff view */
.diff-view {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  line-height: 1.6; padding: 16px; overflow: auto;
  max-height: 60vh; color: var(--text-secondary);
  white-space: pre;
}
.diff-add { color: var(--accent-green); }
.diff-del { color: var(--accent-red); }
.diff-hunk { color: var(--accent-cyan); font-weight: 600; }

/* Branches */
.branch-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid rgba(42,48,64,0.3);
  font-size: 13px;
}
.branch-item:last-child { border-bottom: none; }
.branch-item.current { background: rgba(6,182,212,0.06); }
.branch-icon { width: 18px; text-align: center; color: var(--accent-cyan); font-weight: 700; }
.branch-name { flex: 1; font-family: monospace; color: var(--text-primary); }

/* ===== Common Controls ===== */
.cc-select {
  padding: 6px 12px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 13px;
  cursor: pointer;
}
.cc-select:focus { border-color: var(--accent-cyan); outline: none; }

.cc-input {
  padding: 6px 12px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 13px;
}
.cc-input:focus { border-color: var(--accent-cyan); outline: none; }
.cc-input::placeholder { color: var(--text-muted); }

.cc-btn {
  padding: 6px 16px; border-radius: 8px;
  background: rgba(6, 182, 212, 0.15); border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.cc-btn:hover { background: rgba(6, 182, 212, 0.25); }
.cc-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.cc-btn-sm {
  padding: 3px 10px; border-radius: 6px;
  background: var(--bg-card-hover); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 11px;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.cc-btn-sm:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.header-actions {
  display: flex; gap: 8px; align-items: center;
}

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 10px 20px; border-radius: 10px;
  background: var(--accent-cyan); color: #000;
  font-size: 13px; font-weight: 600;
  transform: translateY(60px); opacity: 0;
  transition: all 0.3s ease; z-index: 9999;
}
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 768px) {
  .files-layout { grid-template-columns: 1fr; }
}

/* ===== TERMINAL ===== */
.terminal-container {
  background: #0a0e14;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 160px);
  overflow: hidden;
}
.terminal-output {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.5;
}
.term-line { white-space: pre-wrap; word-break: break-all; }
.term-prompt { color: #00e5ff; font-weight: 600; }
.term-output { color: #b0bec5; }
.term-error { color: #ff5252; }
.terminal-input-row {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  background: #0d1117;
  gap: 4px;
}
.terminal-input-row .term-prompt {
  color: #00e5ff;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e0e0e0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  caret-color: #00e5ff;
}
.terminal-input::placeholder { color: #555; }
.term-cwd {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ===== LOGS ===== */
.logs-container {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  height: calc(100vh - 160px);
}
.logs-output {
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  background: #0a0e14;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #b0bec5;
}
.log-line { white-space: pre-wrap; word-break: break-all; padding: 1px 0; }
.log-error { color: #ff5252; font-weight: 500; }
.log-warn { color: #ffa726; }
.log-info { color: #29b6f6; }
.log-debug { color: #78909c; }
#btnAutoScroll.active { background: var(--accent-cyan); color: #000; border-color: var(--accent-cyan); }

/* ===== CHAT ===== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 160px);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: fadeIn 0.2s ease;
}
.chat-user { align-self: flex-end; flex-direction: row-reverse; }
.chat-assistant, .chat-system { align-self: flex-start; }
.chat-avatar {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  font-size: 16px;
  flex-shrink: 0;
}
.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  position: relative;
}
.chat-user .chat-bubble {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.3);
}
.chat-assistant .chat-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}
.chat-system .chat-bubble {
  background: rgba(100, 255, 218, 0.08);
  border: 1px solid rgba(100, 255, 218, 0.2);
}
.chat-content {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-pre {
  background: #0a0e14;
  padding: 10px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 12px;
  color: #b0bec5;
  margin: 4px 0;
}
.chat-time {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
  text-align: right;
}
.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--accent-cyan); }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding: 0;
  background: var(--accent-cyan);
  color: #000;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.chat-send:hover { opacity: 0.8; }
.chat-send:disabled { opacity: 0.3; cursor: not-allowed; }
.chat-hints {
  display: flex;
  gap: 6px;
  padding: 8px 16px 12px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.2);
}
.chat-hint {
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}
.chat-hint:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

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

/* ===== LOGIN ===== */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--bg-main);
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 360px;
  text-align: center;
}
.login-logo { font-size: 48px; margin-bottom: 12px; }
.login-card h2 {
  color: var(--text-primary);
  font-size: 20px;
  margin: 0 0 4px;
}
.login-subtitle {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0 0 24px;
}
.login-input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.login-input:focus { border-color: var(--accent-cyan); }
.login-input::placeholder { color: var(--text-muted); }
.login-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent-cyan);
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}
.login-btn:hover { opacity: 0.85; }
.login-error {
  margin-top: 12px;
  padding: 8px;
  background: rgba(255,82,82,0.15);
  border: 1px solid rgba(255,82,82,0.3);
  border-radius: 8px;
  color: #ff5252;
  font-size: 13px;
}

/* ===== BACKUP ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== GITEA IFRAME ===== */
.gitea-frame-container {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  height: calc(100vh - 140px);
}
.gitea-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #0d1117;
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .login-card { width: 90%; padding: 24px; }
}
