/* ============================================================
   MAESTRO IA — Project Platform Design System
   Stack: Vanilla CSS | Custom Properties | Modern UI
   ============================================================ */

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

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --c-primary:       #4F46E5;
  --c-primary-dark:  #3730A3;
  --c-primary-light: #EEF2FF;
  --c-accent:        #06B6D4;
  --c-accent-light:  #ECFEFF;
  --c-success:       #10B981;
  --c-success-light: #D1FAE5;
  --c-warning:       #F59E0B;
  --c-warning-light: #FEF3C7;
  --c-danger:        #EF4444;
  --c-danger-light:  #FEE2E2;
  --c-purple:        #8B5CF6;

  --c-bg:            #F1F5F9;
  --c-surface:       #FFFFFF;
  --c-surface-2:     #F8FAFC;
  --c-border:        #E2E8F0;
  --c-border-2:      #CBD5E1;
  --c-text:          #0F172A;
  --c-text-2:        #334155;
  --c-text-muted:    #64748B;
  --c-text-light:    #94A3B8;

  /* Sidebar */
  --sidebar-w:       260px;
  --sidebar-bg:      #1E1B4B;
  --sidebar-border:  #312E81;
  --sidebar-text:    #C7D2FE;
  --sidebar-active:  rgba(99,102,241,.25);
  --sidebar-hover:   rgba(255,255,255,.06);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.18);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast: .15s ease;
  --t-base: .25s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── App Layout ───────────────────────────────────────────── */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Top Header ───────────────────────────────────────────── */
.topbar {
  height: 72px;
  background: linear-gradient(90deg, #1E1B4B 0%, #312E81 100%);
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 40px;
  position: sticky;
  top: 0; z-index: 50;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-logo {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(79,70,229,0.4);
}
.topbar-brand-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.5px;
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.topnav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--r-full);
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 600;
  transition: all var(--t-fast);
}
.topnav-item:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.topnav-item.active {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-user .btn-ghost {
  color: rgba(255,255,255,.8);
  font-weight: 600;
}
.topbar-user .btn-ghost:hover {
  color: #fff;
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.5);
}

/* ── Main Content ─────────────────────────────────────────── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Page Content ─────────────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 32px 40px;
  width: 100%;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-size: .875rem;
  font-weight: 600;
  border: none;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,.3);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  box-shadow: 0 4px 12px rgba(79,70,229,.4);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--c-accent);
  color: #fff;
}
.btn-accent:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text-2);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover {
  background: var(--c-surface-2);
  border-color: var(--c-border-2);
}
.btn-danger {
  background: var(--c-danger);
  color: #fff;
}
.btn-danger:hover { filter: brightness(1.1); }
.btn-sm {
  padding: 6px 12px;
  font-size: .8rem;
}
.btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  flex: 1;
}
.card-body {
  padding: 22px;
}

/* ── Stat Cards ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon.indigo { background: var(--c-primary-light); }
.stat-icon.cyan   { background: var(--c-accent-light); }
.stat-icon.green  { background: var(--c-success-light); }
.stat-icon.amber  { background: var(--c-warning-light); }
.stat-icon.red    { background: var(--c-danger-light); }
.stat-info { flex: 1; }
.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}
.stat-label {
  font-size: .8rem;
  color: var(--c-text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ── Priority & Status Badges ────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-pendiente  { background: var(--c-warning-light); color: #92400E; }
.badge-en_proceso { background: var(--c-primary-light); color: #3730A3; }
.badge-completado { background: var(--c-success-light); color: #065F46; }
.badge-propuesta  { background: var(--c-warning-light); color: #92400E; }
.badge-aprobada   { background: var(--c-success-light); color: #065F46; }
.badge-rechazada  { background: var(--c-danger-light);  color: #991B1B; }
.badge-en_revision{ background: var(--c-accent-light);  color: #155E75; }

.prio-baja    { background: #F0FDF4; color: #166534; }
.prio-media   { background: #EFF6FF; color: #1E40AF; }
.prio-alta    { background: #FFF7ED; color: #9A3412; }
.prio-critica { background: #FFF1F2; color: #9F1239; }

/* ── Kanban Board ─────────────────────────────────────────── */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.kanban-col {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.kanban-col-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--c-border);
}
.kanban-col-title {
  font-weight: 700;
  font-size: .875rem;
  flex: 1;
}
.col-count {
  background: var(--c-border);
  color: var(--c-text-muted);
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.col-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.col-dot.pendiente  { background: var(--c-warning); }
.col-dot.en_proceso { background: var(--c-primary); }
.col-dot.completado { background: var(--c-success); }

.kanban-cards {
  padding: 12px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kanban-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px;
  cursor: grab;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.kanban-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: var(--c-primary);
}
.kanban-card.dragging {
  opacity: .5;
  cursor: grabbing;
}
.kanban-card-title {
  font-weight: 600;
  font-size: .875rem;
  color: var(--c-text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.kanban-card-desc {
  font-size: .78rem;
  color: var(--c-text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.kanban-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fase-tag {
  font-size: .68rem;
  font-weight: 600;
  color: var(--c-primary);
  background: var(--c-primary-light);
  padding: 2px 7px;
  border-radius: var(--r-full);
}
.assignee-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: .72rem;
  color: var(--c-text-muted);
}
.assignee-chip .avatar-xs {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.kanban-add-btn {
  width: 100%;
  padding: 10px;
  border: 1.5px dashed var(--c-border-2);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--c-text-muted);
  font-size: .8rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all var(--t-fast);
  margin: 0 12px 12px;
}
.kanban-add-btn:hover {
  background: var(--c-primary-light);
  border-color: var(--c-primary);
  color: var(--c-primary);
}

/* ── Document Table ───────────────────────────────────────── */
.doc-table {
  width: 100%;
  border-collapse: collapse;
}
.doc-table th {
  text-align: left;
  padding: 11px 16px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-text-muted);
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-border);
}
.doc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
  font-size: .875rem;
  vertical-align: middle;
}
.doc-table tr:last-child td { border-bottom: none; }
.doc-table tr:hover td { background: var(--c-surface-2); }
.doc-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.doc-icon.pdf  { background: #FEE2E2; }
.doc-icon.docx { background: #DBEAFE; }
.doc-icon.xlsx { background: #D1FAE5; }
.doc-icon.pptx { background: #FEF3C7; }
.doc-name { font-weight: 600; color: var(--c-text); }
.doc-desc { font-size: .78rem; color: var(--c-text-muted); }

/* ── Bocetos Gallery ──────────────────────────────────────── */
.bocetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.boceto-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
}
.boceto-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--c-primary);
}
.boceto-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--c-bg);
  cursor: pointer;
}
.boceto-img-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-accent-light));
  color: var(--c-primary);
}
.boceto-body {
  padding: 14px;
}
.boceto-title {
  font-weight: 700;
  font-size: .9rem;
  color: var(--c-text);
  margin-bottom: 4px;
}
.boceto-screen {
  font-size: .75rem;
  color: var(--c-text-muted);
  margin-bottom: 10px;
}
.boceto-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Upload Zone ──────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--c-border-2);
  border-radius: var(--r-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-base);
  background: var(--c-surface-2);
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
}
.upload-zone input[type=file] {
  display: none;
}
.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.upload-title {
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 6px;
}
.upload-sub {
  font-size: .82rem;
  color: var(--c-text-muted);
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95) translateY(10px);
  transition: transform var(--t-base);
}
.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}
.modal-header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-title {
  font-weight: 800;
  font-size: 1.05rem;
  flex: 1;
}
.modal-close {
  width: 32px; height: 32px;
  border: none;
  background: var(--c-surface-2);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-muted);
  transition: all var(--t-fast);
}
.modal-close:hover {
  background: var(--c-danger-light);
  color: var(--c-danger);
}
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--c-border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-text-2);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: .875rem;
  color: var(--c-text);
  background: var(--c-surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ── Flash Messages ───────────────────────────────────────── */
.flash {
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  animation: slideDown .3s ease;
}
.flash-success { background: var(--c-success-light); color: #065F46; border-left: 4px solid var(--c-success); }
.flash-error   { background: var(--c-danger-light);  color: #991B1B; border-left: 4px solid var(--c-danger); }

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* ── Image Lightbox ───────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  object-fit: contain;
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast);
}
.lightbox-close:hover { background: var(--c-danger); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .kanban-board { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-light); }

/* ── Utility ──────────────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-muted { color: var(--c-text-muted); }
.font-bold { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Login Page ───────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #1E1B4B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234F46E5' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.login-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.login-logo {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(79,70,229,.4);
}
.login-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 4px;
}
.login-subtitle {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  text-align: center;
  margin-bottom: 32px;
}
.login-card .form-label { color: rgba(255,255,255,.8); }
.login-card .form-control {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.login-card .form-control::placeholder { color: rgba(255,255,255,.4); }
.login-card .form-control:focus {
  border-color: var(--c-primary);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 3px rgba(99,102,241,.3);
}
.login-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--c-primary), #6366F1);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-base);
  box-shadow: 0 4px 16px rgba(79,70,229,.4);
  margin-top: 8px;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,.5);
}
.login-error {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.3);
  color: #FCA5A5;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: .85rem;
  margin-bottom: 20px;
  text-align: center;
}
