/* LTTH Cloud Panel — Complete Dashboard CSS Framework */

:root {
  /* Brand — Grün wie Desktop-App */
  --brand-primary: #12a116;
  --brand-primary-hover: #0f8712;
  --brand-primary-light: rgba(18, 161, 22, 0.15);
  --brand-glow: 0 0 20px rgba(18, 161, 22, 0.3);

  --sidebar-bg: #0f1420;
  --sidebar-width: 240px;
  --sidebar-border: #1e293b;
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #f1f5f9;
  --sidebar-accent: var(--brand-primary);
  --sidebar-hover: #1e293b;
  --bg-primary: #0a0f1a;
  --bg-surface: #111827;
  --bg-surface-hover: #1a2236;
  --border-color: #1f2937;
  --text-primary: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: var(--brand-primary);
  --accent-hover: var(--brand-primary-hover);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 8px;
  --sidebar-collapsed: 64px;
}

/* Day Theme (hell) */
[data-theme="day"] {
  --sidebar-bg: #ffffff;
  --sidebar-border: #e5e7eb;
  --sidebar-text: #6b7280;
  --sidebar-text-active: #111827;
  --sidebar-accent: #6366f1;
  --sidebar-hover: #f3f4f6;
  --bg-primary: #f9fafb;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f3f4f6;
  --border-color: #e5e7eb;
  --text-primary: #111827;
  --text-muted: #6b7280;
}

/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: 'Courier New', monospace; font-size: 0.9em; background: rgba(0,0,0,0.2); padding: 1px 4px; border-radius: 3px; }

/* ── App Layout ── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width 0.2s;
}

.sidebar-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--sidebar-border);
  min-height: 60px;
}

.sidebar-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.sidebar-title {
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  color: var(--text-primary);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
}

.sidebar-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 12px 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.12s;
  cursor: pointer;
  margin-bottom: 2px;
}

.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
  text-decoration: none;
}

.sidebar-link.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
}

.sidebar-link .icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-link .label {
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--sidebar-border);
}

/* ── Sidebar Categories (Desktop-App-Stil) ── */

/* Scrollbar styling (Desktop-App-Stil) */
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--sidebar-border);
  border-radius: 3px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
.sidebar-nav {
  scrollbar-width: thin;
  scrollbar-color: var(--sidebar-border) transparent;
}

/* Sidebar Search */
.sidebar-search {
  padding: 6px 8px 8px;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 4px;
}
.sidebar-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--sidebar-border);
  border-radius: 8px;
  padding: 6px 10px;
  transition: border-color 0.2s;
}
.sidebar-search-box:focus-within {
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
}
.sidebar-search-box .search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.sidebar-search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--sidebar-text-active);
  font-size: 0.82rem;
  outline: none;
}
.sidebar-search-input::placeholder {
  color: var(--sidebar-text);
  opacity: 0.7;
}
.sidebar-search-empty {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 4px 4px 0;
  text-align: center;
}

/* Kategorie-Container */
.sidebar-category {
  margin: 0;
  padding: 0;
}
.sidebar-category.is-hidden {
  display: none !important;
}

/* Kategorie-Header — klickbar zum Expandieren/Collapsen */
.sidebar-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px 3px;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
.sidebar-category-header:hover {
  color: var(--sidebar-text-active);
}
.sidebar-category-header.is-hidden {
  display: none !important;
}
.sidebar-category-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-category-toggle {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.sidebar-category-toggle.rotated {
  transform: rotate(180deg);
}

/* Kategorie-Items Container (collapse-bar) */
.sidebar-category-items {
  max-height: 600px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  padding: 1px 0;
}
.sidebar-category.collapsed .sidebar-category-items {
  max-height: 0 !important;
  opacity: 0;
  padding: 0;
}

/* Sidebar Item (ein Navigationseintrag) */
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  margin: 1px 6px;
  border-radius: 7px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 450;
  transition: all 0.12s ease;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
  text-decoration: none;
}
.sidebar-item.active {
  background: var(--brand-primary-light, rgba(18, 161, 22, 0.15));
  color: var(--brand-primary, #12a116);
  font-weight: 600;
}
.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--brand-primary, #12a116);
  border-radius: 0 3px 3px 0;
}
.sidebar-item.is-hidden {
  display: none !important;
}

/* Item Icon */
.sidebar-item-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}
.sidebar-item.active .sidebar-item-icon {
  opacity: 1;
}
.sidebar-item-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tooltip (data-tooltip) */
.sidebar-item[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: fixed;
  left: var(--sidebar-width, 240px);
  top: auto;
  margin-left: 8px;
  padding: 4px 10px;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.78rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border: 1px solid #334155;
  transform: translateY(-50%);
}

/* Responsive: schmale Sidebar */
@media (max-width: 768px) {
  .sidebar .sidebar-search { display: none; }
  .sidebar .sidebar-category-label { display: none; }
  .sidebar .sidebar-category-toggle { display: none; }
  .sidebar .sidebar-item-text { display: none; }
  .sidebar .sidebar-item { justify-content: center; padding: 10px; margin: 1px 2px; }
  .sidebar .sidebar-item.active::before { display: none; }
  .sidebar .sidebar-item-icon { width: 22px; height: 22px; }
  .sidebar-category-items { max-height: none !important; opacity: 1 !important; }
}

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  transition: margin-left 0.2s;
}

/* ── Top Bar ── */
.topbar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-user {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Page Container ── */
.page-container {
  padding: 24px;
  max-width: 1200px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
}

.stat-card .stat-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Cards ── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-body {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
  text-decoration: none;
  line-height: 1.4;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-surface-hover); }
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover:not(:disabled) { background: #dc2626; }
.btn-sm { padding: 4px 10px; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.form-input { width: 100%; padding: 8px 12px; background: #1a2236; border: 1px solid var(--border-color); border-radius: var(--radius); color: var(--text-primary); font-size: 0.9rem; outline: none; transition: border-color 0.12s; }
[data-theme="day"] .form-input { background: #f9fafb; border-color: #d1d5db; }
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: #4b5563; }
.form-select { appearance: none; background: #1a2236 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E") no-repeat right 10px center; padding-right: 30px; width: 100%; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: var(--radius); color: var(--text-primary); font-size: 0.9rem; outline: none; cursor: pointer; }
[data-theme="day"] .form-select { background-color: #f9fafb; }

/* ── Toggle Switch ── */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #374151; border-radius: 24px; transition: 0.2s; }
.toggle-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.2s; }
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

[data-theme="day"] .toggle-slider { background: #d1d5db; }

/* ── Badges ── */
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.badge-free { background: rgba(156, 163, 175, 0.15); color: #9ca3af; }
.badge-basic { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.badge-pro { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-error { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-info { background: rgba(99, 102, 241, 0.15); color: #818cf8; }

/* ── Alerts ── */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.9rem; line-height: 1.5; }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.25); color: var(--error); }
.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); color: var(--success); }
.alert-info { background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.25); color: #818cf8; }
.alert-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.25); color: var(--warning); }

/* ── Plugin List ── */
.plugin-list { display: flex; flex-direction: column; gap: 0; }
.plugin-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-color); transition: background 0.12s; }
.plugin-item:last-child { border-bottom: none; }
.plugin-item:hover { background: var(--bg-surface-hover); }
.plugin-item .plugin-icon { font-size: 1.5rem; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(99, 102, 241, 0.1); border-radius: 8px; flex-shrink: 0; }
.plugin-item .plugin-info { flex: 1; min-width: 0; }
.plugin-item .plugin-name { font-weight: 600; font-size: 0.9rem; }
.plugin-item .plugin-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plugin-item .plugin-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── Overlay URL Box ── */
.overlay-url-box { background: #1a2236; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 12px 16px; font-family: 'Courier New', monospace; font-size: 0.85rem; word-break: break-all; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
[data-theme="day"] .overlay-url-box { background: #f3f4f6; }

/* High Contrast Theme (Barrierefreiheit) */
[data-theme="highcontrast"] {
  --sidebar-bg: #000000;
  --sidebar-border: #ffffff;
  --sidebar-text: #ffffff;
  --sidebar-text-active: #00ff00;
  --sidebar-accent: #00ff00;
  --sidebar-hover: #1a1a1a;
  --bg-primary: #000000;
  --bg-surface: #0a0a0a;
  --bg-surface-hover: #1a1a1a;
  --border-color: #ffffff;
  --text-primary: #ffffff;
  --text-muted: #cccccc;
  --accent: #00ff00;
  --accent-hover: #00cc00;
  --success: #00ff00;
  --warning: #ffff00;
  --error: #ff0000;
}

[data-theme="highcontrast"] .form-input { background: #000000; border-color: #ffffff; color: #ffffff; }
[data-theme="highcontrast"] .form-select { background-color: #000000; color: #ffffff; border-color: #ffffff; }
[data-theme="highcontrast"] .toggle-slider { background: #333333; }
[data-theme="highcontrast"] .toggle-slider::before { background: #ffffff; }
[data-theme="highcontrast"] .toggle-switch input:checked + .toggle-slider { background: #00ff00; }
[data-theme="highcontrast"] .overlay-url-box { background: #000000; border: 2px solid #ffffff; color: #ffffff; }
[data-theme="highcontrast"] .plugin-item { border-bottom: 1px solid #ffffff; }
[data-theme="highcontrast"] .badge-free { background: #333333; color: #ffffff; }
[data-theme="highcontrast"] .badge-basic { background: #003300; color: #00ff00; }
[data-theme="highcontrast"] .badge-pro { background: #330000; color: #ff0000; }
.overlay-url-box .url-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--accent); }

/* ── Filter Bar ── */
.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-btn { padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; cursor: pointer; border: 1px solid var(--border-color); background: transparent; color: var(--text-muted); transition: all 0.12s; }
.filter-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.filter-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.filter-btn.active:hover { background: var(--accent-hover); }

/* ── Loading Spinner ── */
.loading { text-align: center; padding: 48px; color: var(--text-muted); font-size: 0.9rem; }
.loading::after { content: ''; display: block; width: 32px; height: 32px; margin: 12px auto; border: 2px solid var(--border-color); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Progress Bar ── */
.progress-bar { width: 100%; height: 8px; background: #1f2937; border-radius: 4px; overflow: hidden; margin: 8px 0; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s; }
.progress-fill.warning { background: var(--warning); }
.progress-fill.danger { background: var(--error); }

/* ── Utility ── */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.85rem; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar { width: var(--sidebar-collapsed); }
  .sidebar .sidebar-title,
  .sidebar .sidebar-link .label,
  .sidebar .sidebar-section-title { display: none; }
  .main-content { margin-left: var(--sidebar-collapsed); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-container { padding: 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 12px; }
  .topbar-user { display: none; }
}

/* ── Auth Pages (Login/Register) ── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.auth-box {
  width: 100%;
  max-width: 420px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo svg { width: 48px; height: 48px; }
.auth-logo h1 { font-size: 1.5rem; margin-top: 12px; font-weight: 700; }
.auth-logo p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-muted); }
.auth-tabs { display: flex; margin-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.auth-tab { flex: 1; padding: 12px; text-align: center; cursor: pointer; font-weight: 500; color: var(--text-muted); border-bottom: 2px solid transparent; transition: all 0.15s; background: none; border-top: none; border-left: none; border-right: none; font-size: 1rem; }
.auth-tab:hover { color: var(--text-primary); }
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── NEU: Desktop-App-inspirierte Auth-Seite (Split-Screen) ── */
.auth-page {
  display: flex;
  min-height: 100vh;
  background: var(--bg-primary);
}

/* Linke Brand-Seite (grüner Gradient) */
.auth-brand {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1a0a 0%, #0f2a0f 30%, #0a1a0a 100%);
  position: relative;
  overflow: hidden;
  padding: 48px;
}

.auth-brand::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(18, 161, 22, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(18, 161, 22, 0.05) 0%, transparent 50%);
  animation: brandBgShift 20s ease-in-out infinite alternate;
}

@keyframes brandBgShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, -3%); }
}

.auth-brand-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
  text-align: center;
}

.auth-brand-logo {
  margin-bottom: 24px;
}

.auth-brand-logo svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 20px rgba(18, 161, 22, 0.4));
}

.auth-brand-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth-brand-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 40px;
}

.auth-brand-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(18, 161, 22, 0.06);
  border: 1px solid rgba(18, 161, 22, 0.12);
  border-radius: 10px;
  transition: all 0.2s;
}

.auth-feature:hover {
  background: rgba(18, 161, 22, 0.1);
  border-color: rgba(18, 161, 22, 0.25);
  transform: translateX(4px);
}

.auth-feature-icon {
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 161, 22, 0.12);
  border-radius: 8px;
  flex-shrink: 0;
}

.auth-feature-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.auth-brand-footer {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-brand-dot {
  opacity: 0.4;
}

/* Rechte Form-Seite */
.auth-form-side {
  width: 460px;
  min-width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
}

.auth-form-container {
  width: 100%;
  max-width: 380px;
}

/* Input mit Icon */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 12px;
  font-size: 1rem;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.input-with-icon .form-input {
  padding-left: 40px;
}

/* Glow-Button (wie Desktop-App) */
.btn-glow {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-hover));
  box-shadow: 0 4px 15px rgba(18, 161, 22, 0.3);
  transition: all 0.2s;
}

.btn-glow:hover:not(:disabled) {
  box-shadow: 0 6px 25px rgba(18, 161, 22, 0.45);
  transform: translateY(-1px);
}

.btn-glow:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(18, 161, 22, 0.3);
}

/* Auth-Form Footer */
.auth-form-footer {
  text-align: center;
  margin-top: 20px;
}

.auth-form-footer a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.15s;
}

.auth-form-footer a:hover {
  color: var(--accent);
}

/* Responsive Auth */
@media (max-width: 860px) {
  .auth-page {
    flex-direction: column;
  }
  .auth-brand {
    padding: 32px 24px;
    min-height: auto;
  }
  .auth-brand-features {
    display: none;
  }
  .auth-brand-footer {
    margin-top: 24px;
  }
  .auth-form-side {
    width: 100%;
    min-width: auto;
    padding: 32px 24px;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
}
