﻿:root {
  --bg: #f6f8fc;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --brand: #0f766e;
  --brand-2: #0ea5e9;
  --danger: #dc2626;
  --ok: #16a34a;
  --border: #e5e7eb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top left, #e0f2fe, #f6f8fc 45%);
  color: var(--ink);
}
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.auth-card {
  width: min(980px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}
.auth-showcase {
  padding: 40px;
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  color: #fff;
}
.auth-showcase h1 { margin: 0 0 10px; }
.auth-form {
  padding: 28px;
}
.input, .select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 8px;
  margin-bottom: 14px;
  background: #fff;
}
.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-secondary { background: #e2e8f0; color: #111827; }
.btn-danger { background: var(--danger); color: #fff; }
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #dbeafe;
  color: #1d4ed8;
}
.layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #0b1324;
  color: #d1d5db;
  padding: 18px;
}
.sidebar a {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
}
.sidebar a:hover, .sidebar a.active {
  background: #12213d;
  color: #fff;
}
.main {
  padding: 18px;
}
.topbar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.grid {
  display: grid;
  gap: 12px;
}
.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.kpi {
  font-size: 24px;
  font-weight: 700;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th, td {
  border-bottom: 1px solid var(--border);
  padding: 10px;
  text-align: left;
  font-size: 13px;
}
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #111827;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(8px);
  transition: all .2s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.alert {
  border-radius: 10px;
  padding: 10px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.wish-hero {
  border: 1px solid #bae6fd;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(120deg, #0f766e, #0ea5e9 55%, #67e8f9);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.wish-hero::after {
  content: "";
  position: absolute;
  inset: -120% auto auto -40%;
  width: 60%;
  height: 320%;
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(24deg);
  animation: shimmer 4.5s linear infinite;
}
.wish-hero h2 {
  margin: 0 0 6px;
}
.wish-hero p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
}
.wish-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wish-pill {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  backdrop-filter: blur(2px);
}
.reveal-up {
  animation: revealUp .45s ease both;
}
.stat-pop {
  animation: cardPop .35s ease both;
}
.timeline-list {
  display: grid;
  gap: 8px;
}
.timeline-item {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  align-items: center;
}
.timeline-item small {
  grid-column: 1 / -1;
  color: #64748b;
}
@keyframes shimmer {
  0% { transform: translateX(0) rotate(24deg); }
  100% { transform: translateX(260%) rotate(24deg); }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cardPop {
  from { opacity: 0; transform: scale(.98); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-up, .stat-pop, .wish-hero::after {
    animation: none !important;
  }
}
@media (max-width: 900px) {
  .auth-card { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .wish-hero { flex-direction: column; align-items: flex-start; }
}
