/* ═══════════════════════════════════════════════════════════════
   Swagger UI  —  Professional Design System
   Inspired by: Linear, Stripe, Postman, Vercel
   ═══════════════════════════════════════════════════════════════ */

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

/* ── Design Tokens ── */
:root {
  /* Colors */
  --bg:          #f8fafc;
  --surface:     #ffffff;
  --surface-2:   #f1f5f9;
  --border:      #e2e8f0;
  --border-2:    #cbd5e1;

  /* Text */
  --text-1:      #0f172a;
  --text-2:      #475569;
  --text-3:      #94a3b8;

  /* Brand */
  --brand:       #e94560;
  --brand-dark:  #c73652;
  --brand-light: #fff1f4;
  --brand-muted: rgba(233,69,96,.1);

  /* Semantic */
  --green:       #16a34a;
  --green-bg:    #f0fdf4;
  --green-border:#bbf7d0;
  --blue:        #1d6fb8;
  --blue-bg:     #eff6ff;
  --blue-border: #bfdbfe;
  --amber:       #b45309;
  --amber-bg:    #fffbeb;
  --amber-border:#fde68a;
  --purple:      #7c3aed;
  --purple-bg:   #f5f3ff;
  --purple-border:#ddd6fe;
  --red:         #dc2626;
  --red-bg:      #fef2f2;
  --red-border:  #fecaca;
  --orange:      #ea580c;
  --orange-bg:   #fff7ed;
  --orange-border:#fed7aa;

  /* Sidebar */
  --sb-bg:       #0f172a;
  --sb-hover:    rgba(255,255,255,.05);
  --sb-active:   rgba(233,69,96,.15);
  --sb-text:     #94a3b8;
  --sb-text-act: #f8fafc;
  --sb-border:   rgba(255,255,255,.06);
  --sb-head:     #334155;

  /* Topbar */
  --top-bg:      #0f172a;
  --top-border:  rgba(255,255,255,.06);

  /* Radius */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-full:9999px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.06);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 4px 6px rgba(15,23,42,.07), 0 2px 4px rgba(15,23,42,.06);
  --shadow-lg: 0 10px 15px rgba(15,23,42,.08), 0 4px 6px rgba(15,23,42,.05);
  --shadow-xl: 0 20px 40px rgba(15,23,42,.12), 0 8px 16px rgba(15,23,42,.08);

  /* Topbar height */
  --topbar-h: 56px;
  --sidebar-w: 240px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

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

/* ── Base ── */
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  line-height: 1.5;
}

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

/* ════════════════════════════════════════════════════════════════
   TOPBAR
   ════════════════════════════════════════════════════════════════ */
.topbar {
  height: var(--topbar-h);
  background: var(--top-bg);
  border-bottom: 1px solid var(--top-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--top-border);
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.topbar-icon {
  width: 28px;
  height: 28px;
  background: var(--brand);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.topbar h1 {
  font-size: .9rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.2px;
}

.topbar .sub {
  font-size: .72rem;
  color: var(--sb-text);
  font-weight: 400;
  padding-left: 2px;
}

.topbar-divider {
  width: 1px;
  height: 20px;
  background: var(--top-border);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-md);
  font-size: .78rem;
  font-weight: 500;
  color: var(--sb-text);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.topbar-link:hover { background: var(--sb-hover); color: #f8fafc; }
.topbar-link.danger { color: #fca5a5; }
.topbar-link.danger:hover { background: rgba(220,38,38,.15); color: #fca5a5; }

/* ════════════════════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════════════════════ */
.layout {
  display: flex;
  min-height: calc(100vh - var(--topbar-h));
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sb-bg);
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
}

.sidebar-section {
  padding: 20px 12px 6px;
}

.sidebar-head {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--sb-head);
  padding: 0 8px 8px;
}

.sb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--sb-text);
  font-size: .82rem;
  font-weight: 500;
  transition: background .12s, color .12s;
  gap: 8px;
  margin-bottom: 1px;
}

.sb-item:hover {
  background: var(--sb-hover);
  color: #e2e8f0;
}

.sb-item.active {
  background: var(--sb-active);
  color: var(--sb-text-act);
  font-weight: 600;
}

.sb-item-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sb-head);
  flex-shrink: 0;
  transition: background .12s;
}
.sb-item.active .sb-dot { background: var(--brand); }
.sb-item:hover .sb-dot  { background: #64748b; }

.sb-item-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-count {
  background: rgba(255,255,255,.08);
  color: var(--sb-text);
  font-size: .68rem;
  padding: 1px 6px;
  border-radius: var(--r-full);
  font-weight: 600;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.sb-item.active .sb-count {
  background: var(--brand);
  color: #fff;
}

.sb-divider {
  border: none;
  border-top: 1px solid var(--sb-border);
  margin: 8px 12px;
}

.sb-footer {
  margin-top: auto;
  padding: 12px;
}

.sb-export-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--sb-text);
  font-size: .78rem;
  font-weight: 500;
  border: 1px solid var(--sb-border);
  transition: background .12s, color .12s, border-color .12s;
}
.sb-export-btn:hover {
  background: var(--sb-hover);
  color: #e2e8f0;
  border-color: rgba(255,255,255,.12);
}

/* ════════════════════════════════════════════════════════════════
   MAIN PANEL
   ════════════════════════════════════════════════════════════════ */
.main-panel {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  overflow-y: auto;
}

/* ── Module Header ── */
.module-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.module-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
}
.module-count {
  font-size: .72rem;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: var(--r-full);
  font-weight: 600;
}
.module-desc {
  font-size: .84rem;
  color: var(--text-2);
  margin-bottom: 20px;
  line-height: 1.6;
  max-width: 640px;
}

/* ── Module Export button ── */
.btn-module-export {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-md);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: #ff6c37;
  box-shadow: var(--shadow-xs);
  transition: background .15s, box-shadow .15s;
}
.btn-module-export:hover {
  background: #e05a28;
  box-shadow: var(--shadow-sm);
}

/* ════════════════════════════════════════════════════════════════
   API CARDS (index)
   ════════════════════════════════════════════════════════════════ */
.api-cards { display: flex; flex-direction: column; gap: 4px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.card a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
}
.api-path {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--text-1);
  font-weight: 500;
  word-break: break-all;
}
.api-summary {
  font-size: .78rem;
  color: var(--text-3);
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
  padding-left: 8px;
}
.api-arrow {
  color: var(--border-2);
  font-size: .9rem;
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.card:hover .api-arrow {
  color: var(--text-3);
  transform: translateX(2px);
}

/* ════════════════════════════════════════════════════════════════
   METHOD BADGES
   ════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .6px;
  font-family: var(--mono);
  flex-shrink: 0;
  border: 1px solid transparent;
}
.GET    { background: var(--green-bg);  color: var(--green);  border-color: var(--green-border); }
.POST   { background: var(--blue-bg);   color: var(--blue);   border-color: var(--blue-border); }
.PUT    { background: var(--amber-bg);  color: var(--amber);  border-color: var(--amber-border); }
.PATCH  { background: var(--purple-bg); color: var(--purple); border-color: var(--purple-border); }
.DELETE { background: var(--red-bg);    color: var(--red);    border-color: var(--red-border); }

/* ════════════════════════════════════════════════════════════════
   FORM CARD
   ════════════════════════════════════════════════════════════════ */
.fcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.fcard-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.fcard-header .ep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.fcard-header .ep h2 {
  font-family: var(--mono);
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-1);
  word-break: break-all;
}
.fcard-header .summary {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.5;
}
.fcard-header .desc {
  font-size: .78rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-top: 6px;
  max-height: 80px;
  overflow: hidden;
}

.fcard-body { padding: 20px 24px; }

/* ── Section Labels ── */
.slabel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  margin: 22px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.slabel::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--brand);
  border-radius: 2px;
}

/* ── Field Groups ── */
.fgroup { display: flex; flex-direction: column; gap: 12px; }

.frow { display: flex; flex-direction: column; gap: 5px; }

label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 4px;
}
label .req {
  color: var(--brand);
  font-size: .7rem;
}
label .tp {
  font-weight: 400;
  color: var(--text-3);
  font-size: .72rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0 5px;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  margin-left: 2px;
}

input[type="text"],
input[type="number"],
input[type="password"],
textarea,
select {
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-size: .83rem;
  width: 100%;
  color: var(--text-1);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.5;
}
input[type="text"]:hover,
input[type="number"]:hover,
input[type="password"]:hover,
textarea:hover,
select:hover {
  border-color: var(--border-2);
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-muted);
}
input::placeholder,
textarea::placeholder {
  color: var(--text-3);
  font-weight: 400;
}
textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.6;
}
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='%2394a3b8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.fdesc {
  font-size: .72rem;
  color: var(--text-3);
  line-height: 1.5;
}

.chk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
}
.chk-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--brand);
  cursor: pointer;
  flex-shrink: 0;
}
.chk-row label {
  font-weight: 400;
  cursor: pointer;
  margin: 0;
  color: var(--text-2);
}

/* ── Actions bar ── */
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* ════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, box-shadow .15s, border-color .15s, color .15s;
  white-space: nowrap;
  line-height: 1;
}

.btn-run {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-dark);
  box-shadow: 0 1px 2px rgba(233,69,96,.25);
  padding: 9px 20px;
}
.btn-run:hover {
  background: var(--brand-dark);
  box-shadow: 0 2px 6px rgba(233,69,96,.35);
}
.btn-run:active { transform: translateY(1px); }

.btn-back {
  background: var(--surface);
  color: var(--text-2);
  border-color: var(--border);
  font-size: .78rem;
  padding: 7px 14px;
}
.btn-back:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--text-1);
}

/* ── Download buttons ── */
.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--r-md);
  font-size: .76rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: filter .15s, box-shadow .15s;
  box-shadow: var(--shadow-xs);
}
.btn-dl:hover { filter: brightness(.92); box-shadow: var(--shadow-sm); }
.btn-json    { background: #16a34a; }
.btn-postman { background: #ff6c37; }

/* ════════════════════════════════════════════════════════════════
   RESULT PANEL
   ════════════════════════════════════════════════════════════════ */
.result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* Status code badges */
.sc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: .75rem;
  font-family: var(--mono);
  border: 1px solid transparent;
}
.sc::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
}
.sc-2xx { background: var(--green-bg);  color: var(--green);  border-color: var(--green-border); }
.sc-2xx::before { background: var(--green); }
.sc-4xx { background: var(--red-bg);    color: var(--red);    border-color: var(--red-border); }
.sc-4xx::before { background: var(--red); }
.sc-5xx { background: var(--orange-bg); color: var(--orange); border-color: var(--orange-border); }
.sc-5xx::before { background: var(--orange); }
.sc-err { background: var(--surface-2); color: var(--text-3); border-color: var(--border); }
.sc-err::before { background: var(--text-3); }

.export-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 8px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-title:first-child { margin-top: 0; }

/* ── JSON / Code blocks ── */
pre {
  background: #0d1117;
  color: #e6edf3;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  overflow-x: auto;
  font-size: .78rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 480px;
  overflow-y: auto;
  font-family: var(--mono);
  border: 1px solid #30363d;
}

.curl-box {
  background: #0d1117;
  color: #7ee787;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  font-family: var(--mono);
  font-size: .75rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid #30363d;
  line-height: 1.65;
}

.err-box {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-border);
  padding: 12px 16px;
  border-radius: var(--r-md);
  margin-bottom: 14px;
  font-size: .82rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

/* ── Placeholder (no response yet) ── */
.result-placeholder {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--r-xl);
  padding: 60px 32px;
  text-align: center;
  color: var(--text-3);
  font-size: .85rem;
  line-height: 1.6;
}
.result-placeholder .ph-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: .4;
}
.result-placeholder p { color: var(--text-3); font-size: .82rem; }
.result-placeholder strong { display: block; color: var(--text-2); font-size: .88rem; margin-bottom: 4px; }

/* ════════════════════════════════════════════════════════════════
   SPLIT PANEL (form + response)
   ════════════════════════════════════════════════════════════════ */
.split-panel {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  min-width: 0;
}
.split-left {
  flex: 0 0 520px;
  min-width: 300px;
}
.split-right {
  flex: 1;
  min-width: 0;
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
}
.split-left .fcard,
.split-right .fcard { max-width: none; }

/* ════════════════════════════════════════════════════════════════
   MODULE INDEX PAGE — api-info section
   ════════════════════════════════════════════════════════════════ */
.api-info { margin-bottom: 32px; }
.api-info h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.4px; }
.api-info p  { color: var(--text-2); margin-top: 6px; font-size: .87rem; line-height: 1.6; max-width: 680px; }

.tag-block { margin-bottom: 32px; }
.tag-title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tag-title::before {
  content: '';
  display: block;
  width: 3px; height: 14px;
  background: var(--brand);
  border-radius: 2px;
}
.tag-title span { font-weight: 400; font-size: .78rem; color: var(--text-3); text-transform: none; letter-spacing: 0; }

/* ════════════════════════════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════════════════════════════ */
body.login-page {
  background: radial-gradient(ellipse at top, #1e293b 0%, #0f172a 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  width: 380px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--brand);
  border-radius: var(--r-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(233,69,96,.35);
}

.login-logo h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.3px;
}
.login-logo p {
  font-size: .78rem;
  color: var(--text-3);
  margin-top: 4px;
}

/* login reuses .frow / label / input from form */
.login-card .frow { margin-bottom: 14px; }
.login-card label { font-size: .8rem; margin-bottom: 1px; }

.btn-login {
  width: 100%;
  padding: 11px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 1px 3px rgba(233,69,96,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-login:hover {
  background: var(--brand-dark);
  box-shadow: 0 4px 12px rgba(233,69,96,.4);
}
.btn-login:active { transform: translateY(1px); }

.err {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-border);
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: .8rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ════════════════════════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════════════════════════ */
.text-mono { font-family: var(--mono); }
.truncate  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
