/* ============================================================
   Amar Hisab — আমার হিসাব | Global Stylesheet
   ============================================================ */

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

:root {
  --primary:        #6c63ff;
  --secondary:      #a855f7;
  --bg:             #0f0c29;
  --surface:        rgba(255,255,255,0.04);
  --surface-hover:  rgba(255,255,255,0.08);
  --border:         rgba(255,255,255,0.08);
  --text:           #ffffff;
  --text-muted:     rgba(255,255,255,0.60);
  --text-faint:     rgba(255,255,255,0.30);
  --danger:         #ef4444;
  --success:        #22c55e;
  --sidebar-w:      240px;
  --radius:         12px;
  --radius-lg:      16px;
  --radius-xl:      20px;
}

html, body { height: 100%; }

body {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }

/* ─── Utility ───────────────────────────────────────────────── */
.hidden { display: none !important; }
.w-full { width: 100%; }
.mt-4   { margin-top: 16px; }
.mt-3   { margin-top: 12px; }
.mt-2   { margin-top: 8px; }
.text-center { text-align: center; }

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeIn  { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideIn { from { opacity:0; transform:translateX(-8px); } to { opacity:1; transform:translateX(0); } }
@keyframes pulse   { 0%,100% { opacity:.5; } 50% { opacity:.2; } }

.fade-in  { animation: fadeIn  .35s ease both; }
.slide-in { animation: slideIn .30s ease both; }

/* ─── App Background ────────────────────────────────────────── */
.app-body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 0%,  rgba(108,99,255,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%,rgba(168,85,247,.12) 0%, transparent 60%);
  min-height: 100vh;
}

/* ─── App Layout ────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
  padding-bottom: 70px;
}
@media (min-width:1024px) { .app-layout { padding-bottom: 0; } }

/* ─── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  flex-direction: column;
  background: rgba(255,255,255,.04);
  border-right: 1px solid var(--border);
  height: 100vh;
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
}
.admin-sidebar { background: rgba(255,255,255,.05); }

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
}
.nav-item:hover  { background: var(--surface-hover); color: var(--text); }
.nav-item.active {
  background: linear-gradient(135deg,rgba(108,99,255,.25),rgba(168,85,247,.15));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(108,99,255,.3);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.user-avatar.sm    { width: 30px; height: 30px; font-size: 12px; }
.user-avatar.admin { background: linear-gradient(135deg,#f59e0b,#ef4444); }

/* ─── Logo Icon ─────────────────────────────────────────────── */
.app-logo-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-logo-icon.admin { background: linear-gradient(135deg,#f59e0b,#ef4444); }

/* ─── SVG Icons ─────────────────────────────────────────────── */
svg.icon-xs   { width:14px; height:14px; }
svg.icon-sm   { width:18px; height:18px; }
svg.icon-md   { width:22px; height:22px; }
svg.icon-lg   { width:28px; height:28px; }
svg.icon-xl   { width:40px; height:40px; }
svg.input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--text-faint);
  pointer-events: none;
}

/* ─── Mobile Header ─────────────────────────────────────────── */
.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15,12,41,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(15,12,41,.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  padding: 6px 0;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  font-size: 11px;
  color: var(--text-faint);
  text-decoration: none;
  transition: color .2s;
}
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item:hover  { color: var(--text-muted); }

/* ─── Main Content ──────────────────────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  min-height: 100vh;
}

/* ─── Page Container ────────────────────────────────────────── */
.page-container {
  padding: 24px 20px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width:640px) { .page-container { padding: 16px 14px; } }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.page-title    { font-size: 22px; font-weight: 700; color: var(--text); }
.page-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 26px 0 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ─── Stats Grid ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
  margin-bottom: 8px;
}
@media (min-width:900px) { .stats-grid { grid-template-columns: repeat(4,1fr); } }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform .2s, border-color .2s;
}
.stat-card:hover { transform: translateY(-2px); border-color: rgba(108,99,255,.25); }

.stat-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-info  { flex: 1; min-width: 0; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.stat-value { font-size: 17px; font-weight: 700; }

.loading-pulse { animation: pulse 1.5s ease infinite; pointer-events: none; }

/* ─── Category Cards ────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width:640px) { .category-grid { grid-template-columns: repeat(3,1fr); } }

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform .2s;
}
.category-card:hover { transform: translateY(-2px); }

.low-card    { border-color: rgba(52,211,153,.2); }
.medium-card { border-color: rgba(167,139,250,.2); }
.high-card   { border-color: rgba(251,146,60,.2); }

.low-card    .category-icon { color: #34d399; }
.medium-card .category-icon { color: #a78bfa; }
.high-card   .category-icon { color: #fb923c; }

.category-icon   { flex-shrink: 0; }
.category-info   { flex: 1; min-width: 0; }
.category-name   { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.category-amount { font-size: 17px; font-weight: 700; }
.category-count  { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

.low-card    .category-amount { color: #34d399; }
.medium-card .category-amount { color: #a78bfa; }
.high-card   .category-amount { color: #fb923c; }

.category-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  transition: width .8s cubic-bezier(.34,1.56,.64,1);
}
.low-card    .category-progress { background: #34d399; }
.medium-card .category-progress { background: #a78bfa; }
.high-card   .category-progress { background: #fb923c; }

/* ─── Expense List ──────────────────────────────────────────── */
.expense-list { display: flex; flex-direction: column; gap: 8px; }

.expense-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .2s, transform .15s;
}
.expense-item:hover { border-color: rgba(108,99,255,.2); transform: translateX(2px); }

.expense-type-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.type-low    { background: rgba(52,211,153,.12);  color: #34d399; }
.type-medium { background: rgba(167,139,250,.12); color: #a78bfa; }
.type-high   { background: rgba(251,146,60,.12);  color: #fb923c; }

.expense-info    { flex: 1; min-width: 0; }
.expense-desc    { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.expense-meta    { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.expense-date    { font-size: 12px; color: var(--text-faint); display: flex; align-items: center; gap: 3px; }
.expense-right   { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.expense-amount  { font-size: 15px; font-weight: 700; }
.expense-actions { display: flex; gap: 4px; }

/* ─── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-low    { background: rgba(52,211,153,.15);  color: #34d399; }
.badge-medium { background: rgba(167,139,250,.15); color: #a78bfa; }
.badge-high   { background: rgba(251,146,60,.15);  color: #fb923c; }
.badge-count  { background: rgba(108,99,255,.15);  color: var(--primary); border-radius: 20px; font-size: 12px; font-weight: 600; padding: 2px 10px; }
.stat-badge   { background: rgba(108,99,255,.15);  color: var(--primary); padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.btn-primary:hover    { opacity: .9; transform: translateY(-1px); }
.btn-primary:active   { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,.2); color: var(--text); background: var(--surface); }
.btn-sm           { padding: 6px 12px; font-size: 13px; }

.btn-icon-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-icon-ghost:hover { background: var(--surface-hover); color: var(--text); }

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  transition: all .2s;
}
.edit-btn   { color: #60a5fa; }
.edit-btn:hover   { background: rgba(96,165,250,.12); border-color: rgba(96,165,250,.3); }
.delete-btn { color: #f87171; }
.delete-btn:hover { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.3); }

/* ─── Forms ─────────────────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  max-width: 560px;
}
@media (max-width:480px) { .form-card { padding: 20px 16px; } }

.form-group   { margin-bottom: 18px; }
.form-label   { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.required     { color: #f87171; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }

.input-wrapper { position: relative; }

.form-input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  padding: 11px 14px 11px 42px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
.form-input::placeholder  { color: rgba(255,255,255,.25); }
.form-input:focus         { border-color: rgba(108,99,255,.5); background: rgba(108,99,255,.06); }
.form-input.no-icon       { padding-left: 14px; }

.form-select {
  padding-left: 42px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ─── Type Selector ─────────────────────────────────────────── */
.type-selector {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
}
.type-option input[type=radio] { display: none; }

.type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
}
.type-btn:hover { background: var(--surface-hover); }
.type-btn small { font-size: 11px; color: var(--text-faint); }

.type-btn.selected.low    { border-color: #34d399; background: rgba(52,211,153,.10);  color: #34d399; }
.type-btn.selected.medium { border-color: #a78bfa; background: rgba(167,139,250,.10); color: #a78bfa; }
.type-btn.selected.high   { border-color: #fb923c; background: rgba(251,146,60,.10);  color: #fb923c; }

/* ─── Filter Card ───────────────────────────────────────────── */
.filter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (min-width:560px) { .filter-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:860px) { .filter-grid { grid-template-columns: repeat(4,1fr); } }
.filter-grid .form-group { margin-bottom: 0; }

.filter-actions  { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.quick-filters   { display: flex; gap: 6px; flex-wrap: wrap; }

.quick-filter-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.quick-filter-btn:hover  { border-color: rgba(255,255,255,.2); color: var(--text); }
.quick-filter-btn.active { background: rgba(108,99,255,.2); border-color: var(--primary); color: #fff; }

/* ─── Results Header ────────────────────────────────────────── */
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; min-height: 24px; }

/* ─── Pagination ────────────────────────────────────────────── */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 34px; height: 34px;
  padding: 0 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.page-btn:hover    { border-color: rgba(255,255,255,.2); color: var(--text); }
.page-btn.active   { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: .3; cursor: not-allowed; }

/* ─── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #16122e;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title { font-size: 17px; font-weight: 700; }

/* ─── Alert ─────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  animation: fadeIn .3s ease;
}
.alert-success { background: rgba(34,197,94,.12);  border: 1px solid rgba(34,197,94,.25);  color: #4ade80; }
.alert-error   { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.25);  color: #f87171; }
.alert-info    { background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.25); color: #60a5fa; }

/* ─── States ────────────────────────────────────────────────── */
.loading-state, .empty-state, .error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--text-faint);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.error-state { color: #f87171; }

/* ─── Table ─────────────────────────────────────────────────── */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 500px;
}
.data-table thead tr { border-bottom: 1px solid var(--border); }
.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--text);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(255,255,255,.02); }

.user-cell { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ip-badge  { background: rgba(108,99,255,.1); color: var(--primary); padding: 2px 8px; border-radius: 6px; font-size: 12px; font-family: monospace; }
.ua-cell   { max-width: 220px; }

/* ─── Quick Links ───────────────────────────────────────────── */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
}
@media (min-width:560px) { .quick-links-grid { grid-template-columns: repeat(3,1fr); } }

.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: all .2s;
}
.quick-link-card:hover { background: var(--surface-hover); border-color: rgba(108,99,255,.25); color: var(--text); transform: translateY(-2px); }

/* ─── Settings Grid ─────────────────────────────────────────── */
.settings-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.settings-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width:640px) { .settings-grid { grid-template-columns: repeat(2,1fr); } }

.color-row   { display: flex; align-items: center; gap: 10px; }
.color-row .form-input { flex: 1; }
input[type=color] {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 3px;
  background: var(--surface);
  flex-shrink: 0;
}

/* ─── Auth Pages ────────────────────────────────────────────── */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.auth-container { width: 100%; max-width: 420px; margin: auto; }

.auth-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  backdrop-filter: blur(12px);
}
@media (max-width:480px) { .auth-card { padding: 28px 20px; } }

.auth-logo        { text-align: center; margin-bottom: 28px; }
.auth-logo-icon   { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg,var(--primary),var(--secondary)); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.auth-logo-icon.admin { background: linear-gradient(135deg,#f59e0b,#ef4444); }
.auth-app-name    { font-size: 22px; font-weight: 700; margin-bottom: 5px; }
.auth-tagline     { font-size: 14px; color: var(--text-muted); }
.auth-form        { margin-top: 4px; }
.auth-footer      { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.auth-link        { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-link:hover  { text-decoration: underline; }
.auth-link-muted        { color: var(--text-faint); text-decoration: none; font-size: 12px; }
.auth-link-muted:hover  { color: var(--text-muted); }

/* ─── Misc ──────────────────────────────────────────────────── */
code { font-family: monospace; }
