/* ============================================================
   SHRIMAT — Auth Forms + Dashboard Layouts
   ============================================================ */

/* ---------- Auth pages (login/register) ---------- */
.auth-wrap {
  min-height: calc(100vh - var(--header-h) - 1px);
  display: grid;
  grid-template-columns: 1fr 0.92fr;
}
.auth-panel {
  background: var(--purple-deep);
  color: var(--white);
  padding: 64px 56px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-panel::before {
  content: ""; position: absolute; bottom: -80px; left: -80px;
  width: 240px; height: 240px; border-radius: 50%; background: var(--orange); opacity: 0.15;
}
.auth-panel .accent-tag {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  background: rgba(255,255,255,0.12); padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px;
}
.auth-panel h2 { color: var(--white); font-size: 27px; margin-bottom: 14px; }
.auth-panel p { color: rgba(255,255,255,0.78); font-size: 15px; }
.auth-feature-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-feature-list li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: rgba(255,255,255,0.92); }
.auth-feature-list .ico {
  width: 32px; height: 32px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center;
}
.auth-feature-list svg { width: 17px; height: 17px; color: var(--gold); }

.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-form-card { width: 100%; max-width: 420px; }
.auth-form-card .brand { margin-bottom: 28px; }
.auth-form-card h1 { font-size: 25px; margin-bottom: 8px; }
.auth-form-card > p.lead { font-size: 14.5px; margin-bottom: 30px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  color: var(--text-dark); margin-bottom: 7px;
}
.form-group .req { color: var(--orange); }
.form-control {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: var(--font-body);
  border: 1.5px solid var(--border-light); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text-dark);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus { border-color: var(--purple-primary); outline: none; box-shadow: 0 0 0 3px var(--purple-primary-10); }
.form-control::placeholder { color: #b3aab3; }
.form-hint { font-size: 12.5px; color: var(--text-secondary); margin-top: 6px; }
.form-error { font-size: 12.5px; color: #c0392b; margin-top: 6px; display: none; }
.form-group.invalid .form-control { border-color: #c0392b; }
.form-group.invalid .form-error { display: block; }
.form-group.valid .form-control { border-color: var(--green); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.form-check input { width: 16px; height: 16px; accent-color: var(--purple-deep); }

.form-meta-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.form-meta-row a { font-size: 13.5px; font-weight: 600; }

.form-footer-note { text-align: center; margin-top: 22px; font-size: 14.5px; color: var(--text-secondary); }

.form-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--text-secondary); font-size: 12.5px; }
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-light); }

.form-success-banner, .form-error-banner {
  display: none; font-size: 13.5px; font-weight: 500; padding: 12px 16px;
  border-radius: var(--radius-sm); margin-bottom: 20px;
}
.form-success-banner.show { display: block; background: var(--green-10); color: #3f7a2a; border: 1px solid var(--green); }
.form-error-banner.show { display: block; background: #fbeae8; color: #c0392b; border: 1px solid #e0a8a0; }

/* Registration multi-section form */
.reg-shell { max-width: 820px; margin: 0 auto; }
.reg-section {
  background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 32px; margin-bottom: 22px;
}
.reg-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.reg-section-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--purple-primary-10); color: var(--purple-deep);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.reg-section-head h3 { font-size: 18px; margin: 0; }
.reg-progress { display: flex; gap: 8px; margin-bottom: 32px; }
.reg-progress .step { flex: 1; height: 4px; border-radius: 2px; background: var(--border-light); }
.reg-progress .step.done { background: var(--purple-deep); }

/* ---------- Dashboard shell ---------- */
.dash-body { background: var(--bg-light); }
.dash-shell { display: flex; min-height: 100vh; }

.dash-sidebar {
  width: 260px; flex-shrink: 0; background: var(--purple-deep); color: var(--white);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease;
}
.dash-sidebar .brand { padding: 22px 24px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.dash-sidebar .brand img { filter: brightness(0) invert(1); height: 30px; }
.dash-nav { padding: 16px 12px; flex-grow: 1; }
.dash-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 3px;
  color: rgba(255,255,255,0.78); font-size: 14.5px; font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.dash-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.dash-nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.dash-nav a.active { background: rgba(255,255,255,0.14); color: var(--white); font-weight: 600; border-left: 3px solid var(--gold); padding-left: 11px; }
.dash-nav .nav-label { padding: 16px 14px 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.dash-sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,0.12); }

.dash-main { flex-grow: 1; min-width: 0; }
.dash-topbar {
  height: 72px; background: var(--white); border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  position: sticky; top: 0; z-index: 50;
}
.dash-topbar .page-title h1 { font-size: 20px; margin: 0; }
.dash-topbar .page-title p { margin: 0; font-size: 13px; }
.dash-topbar-actions { display: flex; align-items: center; gap: 16px; }
.dash-sidebar-toggle { display: none; background: none; border: none; padding: 8px; }
.dash-sidebar-toggle svg { width: 22px; height: 22px; color: var(--text-dark); }

.user-chip { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--purple-primary-10); color: var(--purple-deep);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.user-chip .name { font-size: 13.5px; font-weight: 600; margin: 0; }
.user-chip .role { font-size: 12px; color: var(--text-secondary); margin: 0; }

.dash-content { padding: 28px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-card .stat-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--purple-primary-10); color: var(--purple-deep);
}
.stat-card .stat-icon svg { width: 19px; height: 19px; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text-dark); }
.stat-card .stat-label { font-size: 13px; color: var(--text-secondary); margin: 0; }
.stat-card .stat-trend { font-size: 12px; font-weight: 600; }
.stat-trend.up { color: var(--green); }
.stat-trend.down { color: #c0392b; }

.dash-grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 24px; }

.panel {
  background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md);
  padding: 24px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-head h3 { font-size: 16.5px; margin: 0; }
.panel-head a { font-size: 13px; font-weight: 600; }

.action-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border-light); }
.action-item:last-child { border-bottom: none; }
.action-item .ico { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.action-item .ico svg { width: 18px; height: 18px; }
.action-item .body { flex-grow: 1; min-width: 0; }
.action-item .body p { margin: 0; font-size: 14px; color: var(--text-dark); font-weight: 500; }
.action-item .body span { font-size: 12.5px; color: var(--text-secondary); }

.quick-link { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-light); margin-bottom: 10px; }
.quick-link:last-child { margin-bottom: 0; }
.quick-link:hover { background: var(--bg-light); }
.quick-link .ico { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--purple-primary-10); color: var(--purple-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-link .ico svg { width: 17px; height: 17px; }
.quick-link span { font-size: 14px; font-weight: 500; color: var(--text-dark); }

/* Tables */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.data-table th {
  text-align: left; font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-secondary);
  padding: 12px 16px; border-bottom: 1.5px solid var(--border-light); white-space: nowrap;
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); font-size: 14px; color: var(--text-dark); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-light); }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.table-search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); padding: 8px 14px; max-width: 280px; }
.table-search svg { width: 16px; height: 16px; color: var(--text-secondary); flex-shrink: 0; }
.table-search input { border: none; outline: none; font-size: 14px; width: 100%; }
.icon-btn { width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--border-light); background: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg { width: 16px; height: 16px; color: var(--text-secondary); }
.icon-btn:hover { background: var(--bg-light); }

/* Table -> cards on mobile handled in responsive.css */
