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

:root {
  --bg: #f3f4f6;
  --bg-soft: #f9fafb;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text-main: #111827;
  --text-muted: #6b7280;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --green: #16a34a;
  --red: #dc2626;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-meta{
  display:flex;
  align-items:center;
  gap:.75rem;
}

.btn{
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  padding:8px 12px;
  color:var(--text-main);
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:.4rem;
}

.btn:hover{
  background: var(--bg-soft);
}

.btn.danger{
  background:#fee2e2;
  border-color:#fecaca;
}

.btn.danger:hover{
  background:#fecaca;
}


.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.tag {
  font-size: 0.8rem;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.top-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 2rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.nav-link {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-muted);
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.nav-link:hover {
  background: var(--bg-soft);
  color: var(--text-main);
}

.nav-link.active {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: var(--blue);
}

.page {
  flex: 1;
  padding: 1rem 2rem 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.summary-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

.summary-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.summary-amount {
  font-size: 1.35rem;
  font-weight: 700;
}

.summary-card.income .summary-amount {
  color: var(--green);
}

.summary-card.expense .summary-amount {
  color: var(--red);
}

/*
 * Jaarfilter styling.  De jaarfilter staat direct onder de samenvatting en
 * laat de gebruiker een specifiek jaar of 'Alle jaren' kiezen.  Door de
 * select te stylen past deze mooi in de lay-out zonder op te vallen.
 */
.year-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.year-filter label {
  color: var(--text-muted);
}

.year-filter select {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: #ffffff;
  font-size: 0.85rem;
  color: var(--text-main);
}

/*
 * Layout edit mode styles.  When layout editing is enabled via the settings,
 * navigation links and panels become draggable.  These styles provide a
 * dashed border and move cursor to indicate their draggable state.  The
 * .layout-edit-actions container is hidden by default and becomes visible
 * during edit mode.
 */
.layout-edit-mode .top-nav .nav-link,
.layout-edit-mode .content-grid > .panel {
  cursor: move;
  border: 1px dashed var(--border-strong);
}

.layout-edit-actions.hidden {
  display: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .page {
    padding: 1rem;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.panel-header {
  margin-bottom: 0.75rem;
}

.panel-header h2 {
  margin: 0;
  font-size: 1rem;
}

.panel-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tx-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.field label {
  color: var(--text-muted);
}

input,
select,
textarea {
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-strong);
  font-size: 0.9rem;
}


/* Checkbox reset (global input styles would otherwise make checkboxes look like empty pills) */
input[type="checkbox"]{
  padding: 0;
  border-radius: 4px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-strong);
  background: #fff;
  appearance: auto;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  margin-top: 0.25rem;
}

button {
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--blue);
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.message {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  min-height: 1.1rem;
}

.message.ok {
  color: var(--green);
}

.message.error {
  color: var(--red);
}

.table-wrapper {
  max-height: 450px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

thead {
  background: var(--bg-soft);
}

th,
td {
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid var(--border);
}

th {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
}

.amount-col {
  text-align: right;
}

.action-col {
  width: 1%;
  white-space: nowrap;
}

.tx-type-income {
  color: var(--green);
}

.tx-type-expense {
  color: var(--red);
}

.app-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 0.6rem 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.footer-right {
  text-align: right;
}

@media (max-width: 700px) {
  .app-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


.sheet-content {
  margin-top: 0.75rem;
}

.sheet-title {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.sheet-wrapper {
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #ffffff;
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.sheet-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.25rem 0.35rem;
  white-space: nowrap;
}


/* Layout toggle: single panel vs transacties-layout */
.content-grid.single-panel {
  grid-template-columns: minmax(0, 1fr);
}

.content-grid.single-panel .panel:first-child {
  display: none;
}

.content-grid.single-panel .panel:last-child {
  grid-column: 1 / -1;
}

/* Hide summary row when not needed */
.summary-row.hidden {
  display: none;
}

/* Sheet toolbar */
.sheet-toolbar {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.sheet-toolbar button {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
}

.sheet-toolbar button:hover {
  filter: brightness(0.95);
}

.sheet-message {
  color: var(--text-muted);
}
.sheet-message.ok {
  color: #16a34a;
}
.sheet-message.error {
  color: #dc2626;
}

/* Editable cells highlight on focus */
.sheet-table td[contenteditable="true"]:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--border-strong);
}


/* Vereenvoudigde sheet-UI met knoppen i.p.v. grote Excel-tabellen */
.sheet-section {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.sheet-section + .sheet-section {
  margin-top: 1rem;
}

.sheet-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.sheet-actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-chip {
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border: 1px solid rgba(37, 99, 235, 0.25);
  cursor: pointer;
}

.nav-chip:hover {
  background: #dbeafe;
}

.sheet-list {
  padding-left: 1.1rem;
  margin: 0.25rem 0 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sheet-list li + li {
  margin-top: 0.25rem;
}

/* Generic helper */
.hidden {
  display: none !important;
}

/* --- Icon buttons in table actions --- */
.icon-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 0.28rem 0.45rem;
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1;
}

.icon-btn:hover {
  background: var(--bg-soft);
}

.icon-btn.attached {
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.25);
}

.action-stack {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* --- Modal (popup) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  /* Moet boven de drawer (z-index: 2000) liggen */
  z-index: 3000;
}

.modal {
  width: min(620px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  padding: 1rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.modal-close {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--bg-soft);
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

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

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Backwards compatible grid helpers used in markup */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

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

.btn-secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg-soft);
}


/* ---- Drawer (Jortt-achtige) ---- */
.drawer-overlay{
  position:fixed; inset:0;
  background:rgba(15,23,42,.35);
  display:flex; justify-content:flex-end;
  z-index:2000;
}
.drawer{
  width:min(720px, 96vw);
  height:100%;
  background:#fff;
  box-shadow:-20px 0 60px rgba(0,0,0,.18);
  display:flex; flex-direction:column;
}
.drawer-header{
  display:flex; align-items:flex-start; justify-content:space-between;
  padding:16px 18px;
  border-bottom:1px solid var(--border);
}
.drawer-title h3{ margin:0; font-size:22px; }
.drawer-subtitle{ color:var(--text-muted); margin-top:4px; }
.drawer-actions{
  display:flex; gap:8px; padding:10px 18px;
  border-bottom:1px solid var(--border);
}
.icon-btn.danger{ background:#fee2e2; border-color:#fecaca; }
.drawer-body{
  padding:16px 18px;
  overflow:auto;
}
.drawer-card{
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  background:#f8fafc;
  margin-bottom:14px;
}
.drawer-split{
  display:grid;
  grid-template-columns:1.2fr .9fr;
  gap:14px;
}
@media (max-width: 860px){
  .drawer{ width:100vw; }
  .drawer-split{ grid-template-columns:1fr; }
}
.card-title{ font-weight:700; margin-bottom:10px; }
.kv{
  display:grid;
  grid-template-columns:140px 1fr;
  row-gap:8px; column-gap:12px;
}
.kv .k{ color:var(--text-muted); }
.kv .v{ font-weight:600; }
.totals .total-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:6px 0;
}
.totals .total-row.big{
  border-top:1px solid var(--border);
  margin-top:8px; padding-top:10px;
  font-size:18px;
}
.attachment-preview img{
  max-width:100%;
  border-radius:10px;
  border:1px solid var(--border);
}
.dropzone{
  border:2px dashed #22c55e;
  border-radius:12px;
  padding:14px;
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  background:#f0fdf4;
}
.dropzone.dragover{
  background:#dcfce7;
}
.btn-secondary{
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  padding:8px 12px;
}
.btn-primary{
  background:#111827;
  color:#fff;
  border:1px solid #111827;
  border-radius:10px;
  padding:10px 14px;
}
.drawer-footer{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
}
.drawer-footer-actions{ display:flex; gap:10px; }

.tx-row-click{cursor:pointer;}


/* Attachment modal */
.modal.modal-wide { width: min(920px, 100%); }

.att-empty { margin-top: .75rem; }
.att-empty-title { font-weight: 700; margin-bottom: .5rem; }

.att-dropzone {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  border: 2px dashed #22c55e;
  border-radius: 12px;
  background: rgba(34, 197, 94, .07);
}

.att-dropzone.dragover {
  background: rgba(34, 197, 94, .12);
  border-color: #16a34a;
}

.att-preview-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: .75rem 0;
}

.att-preview-frame {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  min-height: 420px;
}

.att-preview-frame iframe,
.att-preview-frame img {
  width: 100%;
  height: 520px;
  display: block;
  border: 0;
  object-fit: contain;
}


/* Dropdown in sheet cells */
.sheet-table td .cell-select{width:100%; border:1px solid #d7dde6; border-radius:10px; padding:8px 10px; font: inherit; background:#fff;}

/* Bulk type actions for categories */
.bulk-type-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fff;
  margin:10px 0 12px;
}
.bulk-hint{
  color:#6b7280;
  font-size:13px;
}
.bulk-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.bulk-label{
  font-size:13px;
  color:#374151;
}
.bulk-select{
  border:1px solid #d1d5db;
  border-radius:8px;
  padding:6px 10px;
  background:#fff;
}
.select-all{
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:600;
}
.row-actions{
  white-space:nowrap;
}
.row-select-wrap{
  display:inline-flex;
  align-items:center;
  margin-right:8px;
}
.row-select{
  width:16px;
  height:16px;
}
.sheet-message.warning{ color:#b45309; }
.sheet-message.success{ color:#15803d; }


/* Categorieën: tabel direct zonder extra witruimte */
.sheet-section--flush {
  margin-top: 0;
}


/* Categorieën: geen extra ruimte boven de tabel */
.sheet-content--flush {
  margin-top: 0;
}

/* ------------------------------
   Jortt-achtige rapporten (W/V + Balans)
   ------------------------------ */
.jortt-report{max-width:980px;margin:0 auto;padding:6px 2px 14px 2px}
.jortt-report-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--text-muted)}
.jortt-report-brand{color:var(--text-main)}
.jortt-report-title{margin:10px 0 12px 0;font-size:22px;font-weight:700;color:var(--text-main)}
.jortt-report-sub{padding:10px 0 12px 0;border-top:2px solid var(--blue)}
.jortt-report-company{font-weight:700;color:var(--text-main)}
.jortt-report-period{margin-top:4px;font-size:12px;color:var(--text-main)}

.jortt-section{margin-top:14px}
.jortt-section-bar{display:flex;justify-content:space-between;align-items:center;border-top:2px solid var(--blue);border-bottom:2px solid var(--blue);padding:10px 0;font-weight:700;color:var(--text-main)}
.jortt-section-total{white-space:nowrap}

.jortt-rows{padding-top:6px}
.jortt-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--border)}
.jortt-row:last-child{border-bottom:0}
.jortt-row .name{color:var(--text-main)}
.jortt-row .value{white-space:nowrap}

.jortt-row.group{font-weight:700;border-bottom:1px solid var(--border-strong)}
.jortt-row.sub{padding-left:22px;color:var(--text-main)}
.jortt-row.sub .name::before{content:"↳ ";color:var(--text-muted)}

.jortt-report-result{display:flex;justify-content:flex-end;gap:18px;margin-top:18px;font-weight:700;color:var(--text-main)}
.jortt-report-result-value{white-space:nowrap}

.jortt-balance-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin-top:8px}
.jortt-balance-col .jortt-section-bar{margin-bottom:6px}
.jortt-balance-subtitle{margin-top:12px;font-weight:700;color:var(--text-main)}
.jortt-balance-note{margin-top:12px;font-size:13px;color:var(--text-muted)}

@media (max-width: 860px){
  .jortt-balance-grid{grid-template-columns:1fr}
}


/* BTW Jortt-style form */
.btw-header{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-top:6px}
.btw-controls{display:flex;gap:8px;align-items:center}
.btw-select{padding:8px 10px;border:1px solid #ddd;border-radius:10px;background:#fff;font-size:13px}
.btw-section{margin-top:16px}
.btw-section-title{font-weight:700;margin-bottom:6px}
.btw-divider{height:2px;background:#3e78a5;margin:8px 0 6px 0}
.btw-row{display:grid;grid-template-columns:34px 1fr 140px 140px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #eee}
.btw-row:last-child{border-bottom:0}
.btw-code{font-weight:700;color:#111}
.btw-desc{font-size:13px;color:#111}
.btw-box{width:100%;padding:8px 10px;border:1px solid #d9d9d9;border-radius:10px;background:#fff;text-align:right}
.btw-box[readonly]{background:#fafafa}
.btw-box--ghost{border:0;background:transparent}
.btw-disabled .sheet-note{margin-top:10px}
.btw-footnote{margin-top:12px;font-size:13px;color:#444}

@media (max-width: 860px){
  .btw-row{grid-template-columns:34px 1fr 1fr;grid-template-areas:
    "code desc desc"
    "base base vat";
  }
  .btw-row .btw-code{grid-area:code}
  .btw-row .btw-desc{grid-area:desc}
  .btw-row input:nth-of-type(1){grid-area:base}
  .btw-row input:nth-of-type(2){grid-area:vat}
}


.btw-export{margin-left:8px;}


@media print{
  /* Print only the active report */
  body.print-report{
    background:#fff !important;
  }
  body.print-report .app-header,
  body.print-report .top-nav,
  body.print-report .summary-row,
  body.print-report .year-filter,
  body.print-report .panel[data-panel-id="form"],
  body.print-report #sheetToolbar{
    display:none !important;
  }
  body.print-report .content-grid{
    display:block !important;
    padding:0 !important;
    margin:0 !important;
  }
  body.print-report .panel[data-panel-id="table"]{
    border:0 !important;
    box-shadow:none !important;
    padding:0 !important;
    margin:0 !important;
  }
  body.print-report .panel-header{
    display:none !important;
  }
  body.print-report .sheet-content{
    padding:0 !important;
  }
  body.print-report .btw-controls,
  body.print-report #btwExportPdf,
  body.print-report .btw-footnote{
    display:none !important;
  }
  body.print-report .report{
    max-width:none !important;
    padding:0 !important;
    margin:0 !important;
  }
}


/* --- Auth pages (login/register) --- */
.auth-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}

.auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(22, 163, 74, 0.14), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg));
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

.auth-brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1rem;
}

.auth-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.auth-brand h1 {
  margin: 0;
  font-size: 1.1rem;
}

.auth-brand p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.auth-label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.auth-form input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-main);
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-link {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.9rem;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-link[data-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.auth-message {
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-message.error {
  color: #b91c1c;
}

.auth-message.success {
  color: var(--green);
}

.nav-spacer {
  flex: 1 1 auto;
}

.input-like {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

