/* ============================================================
   PROJET MIDDLE-TRACKING — Design System
   Thème Hybride : Sidebar Navy · Contenu Clair · Accents Vifs
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variables globales ─────────────────────────────────── */
:root {
  /* ── Sidebar (dark navy) ──────────────────────────────── */
  --sidebar-bg:          #1E2235;
  --sidebar-bg-hover:    #272D48;
  --sidebar-bg-active:   #303762;
  --sidebar-border:      #2A304E;
  --sidebar-text:        #A8B2D8;
  --sidebar-text-active: #FFFFFF;
  --sidebar-text-muted:  #5A6490;

  /* ── Fond principal (clair) ───────────────────────────── */
  --bg-base:     #EDEEF5;
  --bg-surface:  #FFFFFF;
  --bg-elevated: #F5F6FB;
  --bg-hover:    #EAECF6;
  --bg-active:   #DDE0F4;

  /* ── Bleu principal ───────────────────────────────────── */
  --accent-blue:        #1565C0;
  --accent-blue-mid:    #1976D2;
  --accent-blue-light:  #42A5F5;
  --accent-blue-dim:    rgba(21,101,192,0.09);

  /* ── Vert ─────────────────────────────────────────────── */
  --accent-green:       #2E7D32;
  --accent-green-mid:   #388E3C;
  --accent-green-light: #66BB6A;
  --accent-green-dim:   rgba(46,125,50,0.09);

  /* ── Rouge ────────────────────────────────────────────── */
  --accent-red:         #C62828;
  --accent-red-mid:     #D32F2F;
  --accent-red-light:   #EF5350;
  --accent-red-dim:     rgba(198,40,40,0.09);

  /* ── Orange / Ambre ───────────────────────────────────── */
  --accent-orange:   #E65100;
  --accent-amber:    #F57F17;
  --accent-amber-dim:rgba(245,127,23,0.10);

  /* ── Violet (secondaire) ──────────────────────────────── */
  --accent-violet:       #6A1B9A;
  --accent-violet-light: #AB47BC;
  --accent-violet-dim:   rgba(106,27,154,0.09);

  /* ── Aliases (compatibilité) ──────────────────────────── */
  --accent-cyan:          #00838F;

  /* ── Textes (sur fond clair) ──────────────────────────── */
  --text-primary:   #1A1F36;
  --text-secondary: #3D4670;
  --text-muted:     #7A84A8;
  --text-inverse:   #FFFFFF;

  /* ── Bordures ─────────────────────────────────────────── */
  --border-subtle:  #E4E6F2;
  --border-default: #C9CEEA;
  --border-strong:  #9EA8CF;

  /* ── Statuts tâches ───────────────────────────────────── */
  --status-backlog:  #7A84A8;
  --status-planifie: #1565C0;
  --status-encours:  #E65100;
  --status-realise:  #2E7D32;
  --status-annule:   #C62828;

  /* ── Flux (couleurs barres de tâches) ────────────────── */
  --flux-push:     #1565C0;   /* Bleu        → PUSH assigné OPS  */
  --flux-pull:     #1565C0;   /* Bleu        → PULL backlog       */
  --flux-bottomup: #2E7D32;   /* Vert        → BOTTOM_UP plannif  */
  --flux-volee:    #C62828;   /* Rouge       → Saisie à la volée  */

  /* ── Priorités ────────────────────────────────────────── */
  --prio-haute:   #C62828;
  --prio-normale: #1565C0;
  --prio-basse:   #2E7D32;

  /* ── Espacement ───────────────────────────────────────── */
  --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;

  /* ── Radius ───────────────────────────────────────────── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   18px;
  --radius-full: 9999px;

  /* ── Ombres (légères, fond clair) ────────────────────── */
  --shadow-sm:  0 1px 3px rgba(26,31,54,0.08);
  --shadow-md:  0 4px 14px rgba(26,31,54,0.10);
  --shadow-lg:  0 8px 28px rgba(26,31,54,0.13);
  --shadow-glow-blue:   0 0 16px rgba(21,101,192,0.22);
  --shadow-glow-green:  0 0 16px rgba(46,125,50,0.22);
  --shadow-glow-violet: 0 0 16px rgba(106,27,154,0.22);

  /* ── Transitions ──────────────────────────────────────── */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow:   0.4s ease;

  /* ── Layout ───────────────────────────────────────────── */
  --sidebar-width: 220px;
  --header-height: 56px;
  --slot-height:   56px;
}

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

html { font-size: 15px; scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img, svg { display: block; }

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

/* ── Layout Principal ───────────────────────────────────── */
#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
#sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: width var(--transition-normal);
  z-index: 100;
}

/* Contenu principal */
#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
#header {
  height: var(--header-height);
  flex-shrink: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
  gap: var(--space-4);
}

/* Zone de vue */
#view-container {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
  background: var(--bg-base);
}

/* ── Logo / Brand ───────────────────────────────────────── */
.brand {
  padding: var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #1565C0, #42A5F5);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(21,101,192,0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sidebar-text-active);
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.62rem;
  color: var(--sidebar-text-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Navigation Sidebar ─────────────────────────────────── */
.nav-section {
  padding: var(--space-3) 0;
  flex: 1;
}

.nav-section-title {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sidebar-text-muted);
  padding: var(--space-2) var(--space-4) var(--space-1);
  margin-top: var(--space-2);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 9px var(--space-4);
  margin: 1px var(--space-2);
  border-radius: var(--radius-md);
  color: var(--sidebar-text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-item:hover {
  background: var(--sidebar-bg-hover);
  color: var(--sidebar-text-active);
}

.nav-item.active {
  background: var(--sidebar-bg-active);
  color: var(--sidebar-text-active);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 65%;
  background: var(--accent-blue-light);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.nav-item .nav-icon {
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.8;
}
.nav-item.active .nav-icon,
.nav-item:hover .nav-icon { opacity: 1; }

.nav-badge {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--accent-red);
  color: white;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}

/* ── Profil selector (sidebar bas) ─────────────────────── */
.profile-section {
  border-top: 1px solid var(--sidebar-border);
  padding: var(--space-4);
}

.profile-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sidebar-text-muted);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.profile-select-wrapper {
  position: relative;
}

.profile-select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  color: var(--sidebar-text-active);
  font-size: 0.82rem;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.profile-select:focus {
  outline: none;
  border-color: var(--accent-blue-light);
}

.profile-select option {
  background: var(--sidebar-bg);
  color: var(--sidebar-text-active);
}

/* ── Header Content ─────────────────────────────────────── */
.header-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  letter-spacing: -0.01em;
}

.header-date {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.date-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-1) var(--space-3);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-family: inherit;
}

.date-input:focus { outline: none; border-color: var(--accent-violet); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ── Boutons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.83rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
  box-shadow: 0 2px 8px rgba(21,101,192,0.25);
}
.btn-primary:hover { background: var(--accent-blue-mid); box-shadow: var(--shadow-glow-blue); transform: translateY(-1px); }

.btn-success {
  background: var(--accent-green);
  color: white;
  box-shadow: 0 2px 8px rgba(46,125,50,0.25);
}
.btn-success:hover { background: var(--accent-green-mid); box-shadow: var(--shadow-glow-green); transform: translateY(-1px); }

.btn-danger {
  background: var(--accent-red-dim);
  color: var(--accent-red);
  border-color: rgba(198,40,40,0.4);
}
.btn-danger:hover { background: var(--accent-red); color: white; border-color: var(--accent-red); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-default);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-strong); }

.btn-amber {
  background: var(--accent-amber);
  color: white;
  font-weight: 700;
}
.btn-amber:hover { background: var(--accent-orange); transform: translateY(-1px); }

.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: 0.75rem;
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: 0.95rem;
}

/* ── Grille KPI Cards ───────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

/* ── Page Title ─────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.page-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 0.80rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
  font-weight: 400;
}

/* ── Grid utilitaires ───────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-4); }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.text-right { text-align: right; }

/* ── Chargement / Splash ────────────────────────────────── */
#splash-screen {
  position: fixed;
  inset: 0;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: var(--space-6);
  transition: opacity 0.6s ease;
}

#splash-screen.hide {
  opacity: 0;
  pointer-events: none;
}

.splash-logo {
  font-size: 4rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(21,101,192,0.7));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.splash-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #42A5F5, #66BB6A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.splash-loading {
  display: flex;
  gap: var(--space-2);
}

.splash-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-blue-light);
  border-radius: 50%;
  animation: bounce 1.2s ease-in-out infinite;
}
.splash-dot:nth-child(2) { animation-delay: 0.2s; }
.splash-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-12px); opacity: 1; }
}

.splash-status {
  font-size: 0.82rem;
  color: var(--sidebar-text);
}

/* ── Toast notifications ────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error   { border-left: 3px solid var(--accent-red); }
.toast.info    { border-left: 3px solid var(--accent-blue); }
.toast.warning { border-left: 3px solid var(--accent-amber); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

/* ── Role Badge ─────────────────────────────────────────── */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.role-badge.TM  { background: rgba(106,27,154,0.10);  color: #7B1FA2; border: 1px solid rgba(106,27,154,0.2); }
.role-badge.QA  { background: rgba(21,101,192,0.10);  color: #1565C0; border: 1px solid rgba(21,101,192,0.2); }
.role-badge.LS  { background: rgba(46,125,50,0.10);   color: #2E7D32; border: 1px solid rgba(46,125,50,0.2); }
.role-badge.OPS { background: rgba(198,40,40,0.10);   color: #C62828; border: 1px solid rgba(198,40,40,0.2); }

/* ── Utilitaires couleurs ───────────────────────────────── */
.text-violet  { color: var(--accent-violet); }
.text-green   { color: var(--accent-green); }
.text-amber   { color: var(--accent-amber); }
.text-red     { color: var(--accent-red); }
.text-blue    { color: var(--accent-blue); }
.text-muted   { color: var(--text-muted); }
.text-sm      { font-size: 0.82rem; }
.text-xs      { font-size: 0.72rem; }
.font-bold    { font-weight: 700; }
.font-semibold{ font-weight: 600; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

/* ══════════════════════════════════════════════════════════
   LOGIN SCREEN — Glassmorphism Premium
   ══════════════════════════════════════════════════════════ */
#login-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#login-screen.visible  { opacity: 1; }
#login-screen.fade-out { opacity: 0; }

.login-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.login-blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.12;
  animation: lbFloat 10s ease-in-out infinite;
}
.login-blob-1 { width:600px;height:600px;background:var(--accent-violet);top:-150px;left:-150px;animation-duration:12s; }
.login-blob-2 { width:500px;height:500px;background:var(--accent-green);bottom:-100px;right:-100px;animation-duration:9s;animation-delay:-5s; }
.login-blob-3 { width:350px;height:350px;background:var(--accent-blue);top:40%;left:55%;animation-duration:11s;animation-delay:-3s; }
@keyframes lbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%  { transform: translate(40px,-40px) scale(1.06); }
  66%  { transform: translate(-30px,30px) scale(0.94); }
}

.login-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(124,58,237,0.04) 1px,transparent 1px),linear-gradient(90deg,rgba(124,58,237,0.04) 1px,transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
  pointer-events: none;
}

.login-card {
  position: relative; z-index: 1; width: 420px;
  background: rgba(13,17,23,0.78);
  backdrop-filter: blur(32px) saturate(1.4);
  -webkit-backdrop-filter: blur(32px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 48px 40px 40px;
  box-shadow: 0 0 0 1px rgba(124,58,237,0.12), 0 32px 64px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: lcAppear 0.7s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes lcAppear {
  from { opacity:0; transform:translateY(28px) scale(0.96); }
  to   { opacity:1; transform:translateY(0)    scale(1); }
}
.login-card.shake { animation: lcShake 0.5s ease; }
@keyframes lcShake {
  0%,100% { transform:translateX(0); }
  15% { transform:translateX(-10px); } 30% { transform:translateX(8px); }
  45% { transform:translateX(-6px); } 60% { transform:translateX(4px); }
  75% { transform:translateX(-2px); }
}

.login-logo {
  font-size: 2.8rem; text-align: center; margin-bottom: var(--space-3); line-height: 1;
  animation: lcPulse 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(124,58,237,0.7));
}
@keyframes lcPulse {
  0%,100% { filter:drop-shadow(0 0 18px rgba(124,58,237,0.7)); transform:scale(1); }
  50%  { filter:drop-shadow(0 0 28px rgba(124,58,237,1)); transform:scale(1.04); }
}

.login-title {
  font-size: 2rem; font-weight: 800; text-align: center;
  letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 4px;
  background: linear-gradient(135deg, #c4b5fd 0%, #6ee7b7 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.login-subtitle {
  text-align: center; font-size: 0.72rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; margin-bottom: 36px;
}

.login-field { margin-bottom: var(--space-4); }
.login-field label {
  display: block; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-muted); margin-bottom: 7px;
}
.login-field input {
  width: 100%; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: 12px 42px 12px 14px; color: var(--text-primary);
  font-size: 0.9rem; font-family: inherit; outline: none;
  transition: all var(--transition-fast); line-height: 1.4;
}
.login-field input:focus {
  border-color: var(--accent-violet); background: rgba(124,58,237,0.05);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.login-field input::placeholder { color: var(--text-muted); opacity: 0.6; }
.login-field-wrap { position: relative; }

.login-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 0.95rem;
  color: var(--text-muted); padding: 4px; opacity: 0.5; transition: opacity 0.2s; line-height: 1;
}
.login-eye:hover { opacity: 1; }

.login-error {
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-md); padding: 10px 14px; font-size: 0.79rem;
  color: var(--accent-red); margin-bottom: var(--space-3);
  display: none; align-items: center; gap: var(--space-2);
}

.login-btn {
  width: 100%; padding: 13px 20px;
  background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-violet-light) 100%);
  color: white; border: none; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 700; font-family: inherit; cursor: pointer;
  margin-top: var(--space-4); transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(124,58,237,0.38); position: relative; overflow: hidden;
  letter-spacing: 0.02em;
}
.login-btn::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,0.12),transparent); opacity:0; transition:opacity 0.2s;
}
.login-btn:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(124,58,237,0.5); }
.login-btn:hover::after { opacity:1; }
.login-btn:active { transform:translateY(0); }
.login-btn.loading { opacity:0.75; pointer-events:none; }

.login-footer {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-3); margin-top: 28px;
  font-size: 0.65rem; color: var(--text-muted); opacity: 0.6; letter-spacing: 0.04em;
}
