/* ============================================
   Dash CR — Design System
   Aesthetic: Warm Industrial
   Warm amber/copper on matte dark. Generous spacing.
   Mobile-first. Distinctive, not generic.
   ============================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Variables — Dark (default) */
:root {
  --bg:       #121214;
  --bg2:      #1c1c1f;
  --bg3:      #2a2a2e;
  --border:   #2a2a2e;
  --text:     #ece8e1;
  --text2:    #a09b93;
  --text3:    #6b6660;
  --accent:   #e8a44a;
  --accent2:  #d4873a;
  --accent-soft: rgba(232,164,74,0.12);
  --green:    #4ade80;
  --green-soft: rgba(74,222,128,0.12);
  --yellow:   #fbbf24;
  --red:      #f87171;
  --red-soft: rgba(248,113,113,0.1);
  --radius:   12px;
  --shadow:   0 12px 40px rgba(0,0,0,0.6);
  --sidebar-w: 250px;
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Variables — Light */
[data-theme="light"] {
  --bg:       #f5f0ea;
  --bg2:      #ffffff;
  --bg3:      #e8e2da;
  --border:   #d6cfc5;
  --text:     #1a1814;
  --text2:    #5c574f;
  --text3:    #8c857b;
  --accent:   #c77d2e;
  --accent2:  #b06a1e;
  --accent-soft: rgba(199,125,46,0.1);
  --green-soft: rgba(22,163,74,0.08);
  --red-soft: rgba(220,38,38,0.08);
  --shadow:   0 12px 40px rgba(0,0,0,0.08);
}

/* Base */
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  background-repeat: repeat;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; color-scheme: dark; }
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select { color-scheme: light; }
a { color: inherit; text-decoration: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 99px; }

/* Focus */
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ============================================
   Typography
   ============================================ */
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn  { from { opacity:0; transform:translateY(-6px) } to { opacity:1; transform:translateY(0) } }
@keyframes scaleIn { from { opacity:0; transform:scale(.96) } to { opacity:1; transform:scale(1) } }
@keyframes slideUp { from { opacity:0; transform:translateY(20px) } to { opacity:1; transform:translateY(0) } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes glow    { 0%,100% { box-shadow: 0 0 12px rgba(232,164,74,0.15) } 50% { box-shadow: 0 0 24px rgba(232,164,74,0.3) } }

.fade-in  { animation: fadeIn  .2s ease both; }
.scale-in { animation: scaleIn .2s cubic-bezier(.16,1,.3,1) both; }
.slide-up { animation: slideUp .25s ease both; }

/* Stagger children animation */
.stagger > * { animation: fadeIn .25s ease both; }
.stagger > *:nth-child(1) { animation-delay: 0s }
.stagger > *:nth-child(2) { animation-delay: .04s }
.stagger > *:nth-child(3) { animation-delay: .08s }
.stagger > *:nth-child(4) { animation-delay: .12s }
.stagger > *:nth-child(5) { animation-delay: .16s }
.stagger > *:nth-child(6) { animation-delay: .20s }
.stagger > *:nth-child(7) { animation-delay: .24s }
.stagger > *:nth-child(8) { animation-delay: .28s }

/* ============================================
   Layout — Sidebar + Content
   ============================================ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: #0e0e10;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.16,1,.3,1);
}
[data-theme="light"] .sidebar {
  background: #fff;
  border-right-color: var(--border);
}

.sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
[data-theme="light"] .sidebar-header {
  border-bottom-color: var(--border);
}
.sidebar-logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #121214;
  font-weight: 800;
}
.sidebar-logo span {
  color: var(--text3);
  font-weight: 400;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.6;
  margin-left: 4px;
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: all 0.15s;
  border: 1px solid transparent;
}
.sidebar-link:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
[data-theme="light"] .sidebar-link:hover {
  background: var(--bg);
}
.sidebar-link.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(232,164,74,0.15);
  font-weight: 600;
}
.sidebar-link-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  flex-shrink: 0;
  padding: 16px 20px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  border-top: 1px solid rgba(255,255,255,0.06);
}
[data-theme="light"] .sidebar-footer {
  border-top-color: var(--border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text3);
}
.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #121214;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-logout {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 12px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  margin-left: auto;
  transition: all .15s;
}
.sidebar-logout:hover {
  color: var(--red);
  background: var(--red-soft);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 60;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Overlay mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 40;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Content area */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ============================================
   App layout helpers
   ============================================ */

/* Topbar: title + actions, always a flex row */
.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Filter chip bar */
.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* Sort bar */
.sort-bar {
  display: flex;
  gap: 5px;
  align-items: center;
}

/* FAB — hidden on desktop, shown on mobile */
.app-fab { display: none; }

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 768px) {
  :root {
    --sidebar-w: 280px;
  }
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.open {
    display: block;
  }
  .hamburger {
    display: flex;
  }
  .main-content {
    margin-left: 0;
    padding-bottom: 20px;
  }

  /* Topbar sits beside the hamburger */
  #todo-app { padding-top: 0 !important; }
  .app-topbar {
    padding: 12px 0 18px 58px; /* 58px left clears hamburger (14px + 44px) */
    align-items: center;
  }

  /* Hide Focus+Tâche header buttons on mobile — they move to FAB */
  .header-desktop-btn { display: none !important; }

  /* Filter bar: horizontal scroll, no wrap */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px 4px;
  }
  .filter-bar::-webkit-scrollbar { display: none; }

  /* Sort bar: horizontal scroll */
  .sort-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .sort-bar::-webkit-scrollbar { display: none; }

  /* FAB: floating action buttons at bottom-right */
  .app-fab {
    display: flex;
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom, 0px) + 16px);
    right: 16px;
    gap: 8px;
    z-index: 30;
  }
  .fab-btn {
    height: 46px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    transition: transform 0.15s;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
  .fab-btn:active { transform: scale(0.95); }
  .fab-focus {
    background: var(--bg2);
    border: 1px solid var(--border) !important;
    color: var(--text2);
  }
  .fab-new {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #121214;
    box-shadow: 0 4px 20px rgba(232,164,74,0.3);
  }

  /* Extra bottom padding on content to clear FAB */
  #todo-app { padding-bottom: 100px !important; }

  /* Touch-friendly sizing */
  .filter-btn { padding: 9px 14px !important; font-size: 12px !important; }
  .sort-btn { padding: 7px 12px !important; font-size: 12px !important; }
  .task-card { padding: 14px 16px !important; }
  .task-checkbox { width: 24px !important; height: 24px !important; border-radius: 7px !important; }
  .task-label { font-size: 15px !important; }
  .star-btn { font-size: 20px !important; padding: 6px !important; }
  .action-btn { font-size: 16px !important; padding: 6px 8px !important; }
  .cat-header { padding: 14px 16px !important; }
  .btn { padding: 9px 18px !important; font-size: 13px !important; }
  .input { padding: 12px 16px !important; font-size: 15px !important; }
  .note-toggle { font-size: 13px !important; padding: 4px 0 !important; }
  .subtask-item { padding: 6px 0 !important; gap: 10px !important; }
  .drag-handle { font-size: 18px !important; padding: 4px !important; }

  /* Mobile: always show action buttons on task cards */
  .task-hover-btn { display: block !important; }
}

@media (max-width: 380px) {
  .filter-btn { padding: 8px 12px !important; }
  .app-topbar { padding-left: 56px; }
}

/* ============================================
   Shared Components
   ============================================ */

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #121214;
}
.btn-primary:hover { box-shadow: 0 4px 20px rgba(232,164,74,0.3); }

.btn-green {
  background: var(--green);
  color: #121214;
}
.btn-green:hover { box-shadow: 0 4px 20px rgba(74,222,128,0.25); }

.btn-ghost {
  background: var(--bg3);
  color: var(--text2);
  border: none;
}

/* Input */
.input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder {
  color: var(--text3);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.modal-box {
  background: var(--bg2);
  border-radius: 16px;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
@media (max-width: 768px) {
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-box {
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 32px;
    max-height: 92vh;
    max-height: 92dvh;
  }
}

/* Field */
.field {
  margin-bottom: 16px;
}
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
}

/* Filter button */
.filter-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--text3);
  color: var(--text);
}
.filter-btn.active {
  background: var(--accent);
  color: #121214;
  border-color: var(--accent);
  font-weight: 600;
}

/* Sort button */
.sort-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text3);
  cursor: pointer;
  transition: all 0.15s;
}
.sort-btn:hover { color: var(--text2); }
.sort-btn.active {
  background: var(--bg3);
  border-color: var(--border);
  color: var(--text);
}

/* Progress bar */
.progress-wrap {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 14px 18px;
  border: 1px solid var(--border);
}
.progress-track {
  background: var(--bg3);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}
.progress-fill {
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(.16,1,.3,1);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* Task card */
.task-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 6px;
  transition: all 0.2s;
}
.task-card:hover {
  border-color: var(--text3);
}
.task-card.done {
  background: transparent;
  opacity: 0.4;
}
.task-card.done:hover { opacity: 0.5; }
.task-card.priority-urgent {
  border-color: var(--red);
  border-left: 3px solid var(--red);
}
.task-card.priority-high {
  border-color: var(--yellow);
  border-left: 3px solid var(--yellow);
}

.task-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--text3);
  background: transparent;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}
.task-checkbox:hover {
  border-color: var(--accent);
}
.task-checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
}

.task-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.task-label.done {
  color: var(--text3);
  text-decoration: line-through;
}

.priority-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 700;
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.priority-badge.urgent { background: var(--red-soft); color: var(--red); border: 1px solid rgba(248,113,113,0.3); }
.priority-badge.high   { background: rgba(251,191,36,0.1); color: var(--yellow); border: 1px solid rgba(251,191,36,0.3); }

.due-badge {
  font-size: 11px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}

.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: all 0.15s;
}
.star-btn:hover { transform: scale(1.2); }

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--text3);
  transition: all .15s;
}
.action-btn:hover { background: var(--bg3); color: var(--text); }

/* Category section */
.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg2);
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
  user-select: none;
  margin-bottom: 6px;
  transition: all 0.15s;
}
.cat-header:hover { background: var(--bg3); }

/* Drag handle */
.drag-handle {
  cursor: grab;
  color: transparent;
  font-size: 14px;
  user-select: none;
  flex-shrink: 0;
  transition: color 0.15s;
  padding: 2px;
}
.task-card:hover .drag-handle {
  color: var(--text3);
}

/* Note toggle */
.note-toggle {
  font-size: 12px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 0;
  display: block;
  margin-top: 3px;
  opacity: 0.7;
  transition: opacity .15s;
}
.note-toggle:hover { opacity: 1; }

/* Subtask */
.subtask-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  padding: 3px 0;
  transition: opacity .15s;
}
.subtask-item:hover { opacity: 0.8; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text3);
}
.empty-state-icon { font-size: 52px; margin-bottom: 16px; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 22px;
  font-size: 13px;
  color: var(--text);
  box-shadow: var(--shadow);
  z-index: 300;
  animation: slideUp 0.25s ease both;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.toast.error { border-color: var(--red); color: var(--red); }
.toast.success { border-color: var(--green); color: var(--green); }

@media (max-width: 768px) {
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--bg3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============================================
   Login page
   ============================================ */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
  position: relative;
}
.login-page::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,164,74,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.login-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  position: relative;
}
@media (max-width: 480px) {
  .login-box { padding: 36px 24px; }
}
.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}
.login-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #121214;
  font-weight: 800;
}
.login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.03em;
}
.login-subtitle {
  font-size: 14px;
  color: var(--text3);
  text-align: center;
  margin-bottom: 32px;
}
.login-error {
  background: var(--red-soft);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--red);
  margin-bottom: 16px;
}
.login-field { margin-bottom: 18px; }
.login-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
  font-family: 'JetBrains Mono', monospace;
}
.login-field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.login-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.login-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  color: #121214;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: all .2s;
  letter-spacing: -0.01em;
}
.login-btn:hover {
  box-shadow: 0 6px 24px rgba(232,164,74,0.35);
  transform: translateY(-1px);
}
.login-btn:active { transform: translateY(0); }
.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.login-toggle {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text3);
}
.login-toggle button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.login-toggle button:hover { text-decoration: underline; }

/* ============================================
   Sortable ghost
   ============================================ */
.sortable-ghost {
  opacity: 0.35;
}
.sortable-chosen {
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  border-color: var(--accent) !important;
}
