:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --sidebar: #0f172a;
  --sidebar-soft: #172033;
  --text: #111827;
  --muted: #667085;
  --border: #e5e7eb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --purple: #7c3aed;
  --shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 22px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 18rem),
    var(--sidebar);
  color: #e5e7eb;
}

.sidebar-brand {
  margin-bottom: 34px;
}

.sidebar-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.sidebar-brand h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.sidebar-brand p {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.4;
}

.sidebar-section-label {
  margin: 22px 12px 10px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border-radius: 14px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  transition: 0.18s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 14px;
}

.sidebar-footer {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.logout-btn {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(203, 213, 225, 0.45);
  border-radius: 12px;
  background: transparent;
  color: #e2e8f0;
  cursor: pointer;
  font-weight: 800;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.main {
  min-width: 0;
  padding: 30px 34px 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.page-eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.page-subtitle {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  transition: 0.18s ease;
}

.btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.btn-small {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 26px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), transparent 22rem),
    linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: var(--shadow);
}

.dashboard-hero h2 {
  margin: 0;
  max-width: 900px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.dashboard-hero p {
  margin: 10px 0 0;
  max-width: 900px;
  color: var(--muted);
  line-height: 1.6;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.13);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 130px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.055);
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric-value {
  display: block;
  margin-top: 12px;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.metric-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.045);
}

.panel + .panel {
  margin-top: 22px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.panel-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.engine-path {
  display: inline-flex;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdf2f8;
  color: #be185d;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
}

.log-box {
  height: 420px;
  overflow: auto;
  padding: 16px;
  border: 1px solid #1f2937;
  border-radius: 18px;
  background: #0b1120;
  color: #d1fae5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.empty-state {
  padding: 28px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.empty-state p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.results-table-wrap {
  max-height: 680px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-soft);
  color: #475467;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-muted {
  background: #f1f5f9;
  color: #475569;
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-danger {
  color: var(--danger);
}

.alert {
  margin-bottom: 14px;
  padding: 13px 15px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.alert-warning {
  border: 1px solid rgba(217, 119, 6, 0.18);
  background: #fffbeb;
  color: #92400e;
}

.alert-success {
  border: 1px solid rgba(22, 163, 74, 0.18);
  background: #f0fdf4;
  color: #166534;
}

.alert-danger,
.alert-error {
  border: 1px solid rgba(220, 38, 38, 0.18);
  background: #fef2f2;
  color: #991b1b;
}

.alert-info,
.alert-debug {
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: #eff6ff;
  color: #1d4ed8;
}

/* Forms */

.upload-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-label {
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.input-control {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.field-help code {
  padding: 2px 6px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 12px;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* Upload */

.upload-dropzone {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 120px;
  padding: 22px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.upload-dropzone:hover {
  border-color: var(--primary);
  background: #f8fbff;
}

.upload-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 24px;
}

.upload-dropzone strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.upload-dropzone p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.setting-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fafc;
}

.setting-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.setting-item strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

/* Checklist */

.checklist {
  display: grid;
  gap: 14px;
}

.check-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.check-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 900;
}

.check-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.check-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Dashboard files */

.file-list {
  display: grid;
  gap: 10px;
}

.file-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.file-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #ecfdf5;
  color: #15803d;
  font-weight: 900;
  font-size: 11px;
}

.file-name {
  margin: 0;
  font-weight: 850;
  color: #1f2937;
  word-break: break-word;
}

.file-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* Jobs */

.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.job-name-cell {
  display: grid;
  gap: 4px;
  min-width: 220px;
}

.job-name-cell strong {
  color: #111827;
  font-size: 14px;
}

.job-name-cell span,
.muted-text {
  color: var(--muted);
  font-size: 12px;
}

.progress-cell {
  min-width: 170px;
}

.progress-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.native-progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e5e7eb;
  appearance: none;
}

.native-progress::-webkit-progress-bar {
  background: #e5e7eb;
  border-radius: 999px;
}

.native-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--primary), var(--purple));
  border-radius: 999px;
}

.native-progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--purple));
  border-radius: 999px;
}

/* Results */

.results-search {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 44px;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.company-cell {
  display: grid;
  gap: 4px;
  min-width: 180px;
}

.company-cell strong {
  color: #111827;
  font-size: 14px;
}

.company-cell span {
  color: var(--muted);
  font-size: 12px;
}

.code-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
}

.contact-link {
  color: var(--primary);
  font-weight: 750;
  word-break: break-word;
}

.contact-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 150px;
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.pagination-info {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.pagination-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Settings */

.settings-list {
  display: grid;
  gap: 14px;
}

.settings-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.settings-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 22px;
}

.settings-content strong {
  display: block;
  margin-bottom: 4px;
  color: #111827;
  font-size: 15px;
}

.settings-content p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.settings-note {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 14px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
  line-height: 1.5;
}

.settings-summary {
  display: grid;
  gap: 12px;
}

.settings-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  word-break: break-word;
}

.settings-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.settings-summary strong {
  font-size: 13px;
  text-align: right;
}

/* Job detail / single check helper */

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.detail-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-row strong {
  color: var(--text);
  font-size: 13px;
  text-align: right;
  word-break: break-word;
}

.batch-list {
  display: grid;
  gap: 10px;
}

.batch-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.batch-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.batch-item span {
  color: var(--muted);
  font-size: 12px;
}

/* Responsive */

@media (max-width: 1180px) {
  .metric-grid,
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .results-search {
    grid-template-columns: 1fr;
  }

  .pagination-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .upload-settings {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-item {
    grid-template-columns: 48px 1fr;
  }

  .settings-item > div:last-child {
    grid-column: 1 / -1;
  }

  .settings-summary > div,
  .detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .settings-summary strong,
  .detail-row strong {
    text-align: left;
  }

  .file-item {
    grid-template-columns: 42px 1fr;
  }

  .file-item .badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .sidebar-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 24px;
  }

  .main {
    padding: 22px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .metric-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 32px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================
   Login Page
========================= */

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.16), transparent 26rem),
    #f4f7fb;
}

.login-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
}

.brand-pill {
  width: max-content;
  margin-bottom: 26px;
  padding: 10px 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.login-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.login-hero > p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #475467;
  font-size: 17px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 820px;
  margin-top: 34px;
}

.feature-card {
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.055);
  backdrop-filter: blur(10px);
}

.feature-card strong {
  display: block;
  margin-bottom: 7px;
  color: #111827;
  font-size: 15px;
}

.feature-card span {
  display: block;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.login-panel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.01));
}

.login-card {
  width: 100%;
  max-width: 460px;
  padding: 34px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.login-card h2 {
  margin: 0;
  color: #111827;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.login-card .subtitle {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.login-card .form-group {
  margin-bottom: 16px;
}

.login-card .input-control {
  height: 50px;
  border-radius: 15px;
  background: #fff;
}

.login-card .btn-primary {
  width: 100%;
  height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.login-card .btn-primary:hover {
  filter: brightness(0.97);
}

.login-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Login responsive */

@media (max-width: 1050px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero {
    padding: 46px 28px 24px;
  }

  .login-panel-wrap {
    padding: 24px 28px 46px;
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 26px;
    border-radius: 22px;
  }

  .login-hero h1 {
    font-size: 40px;
  }
}
