/* ═══════════════════════════════════════════════════════════════
   FreteQuote — Design System
   Paleta: Navy #0F1C3F · Blue #1A56DB · Gray #F9FAFB
   ═══════════════════════════════════════════════════════════════ */

:root {
  --navy-900: #0F1C3F;
  --navy-800: #162240;
  --navy-700: #1E2D55;
  --blue-600: #1A56DB;
  --blue-500: #2563EB;
  --blue-400: #3B82F6;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;
  --green-600: #059669;
  --green-500: #10B981;
  --green-100: #D1FAE5;
  --amber-500: #F59E0B;
  --amber-100: #FEF3C7;
  --red-500:   #EF4444;
  --red-100:   #FEE2E2;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;
  --white:    #FFFFFF;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
  --shadow:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --sidebar-w:  240px;
}

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

html { font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }


/* ─── APP LAYOUT ─────────────────────────────────────────────── */

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo-icon { font-size: 1.5rem; color: var(--blue-400); }
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.3px;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.25rem;
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  font-weight: 500;
  border-radius: 0;
  transition: background .15s, color .15s;
  text-decoration: none;
  margin: .1rem .5rem;
  border-radius: var(--radius-sm);
}
.nav-item:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); text-decoration: none; }
.nav-item.active { background: var(--blue-600); color: var(--white); }
.nav-item svg { flex-shrink: 0; }

.nav-cta { color: var(--blue-400); }
.nav-cta:hover { background: rgba(59,130,246,.15); color: var(--blue-300); }
.nav-cta.active { background: var(--blue-600); color: var(--white); }

.nav-divider { height: 1px; background: rgba(255,255,255,.08); margin: .5rem 1rem; }

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { color: var(--white); font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { color: rgba(255,255,255,.4); font-size: .75rem; }

.logout-btn {
  color: rgba(255,255,255,.4);
  padding: .3rem;
  border-radius: var(--radius-sm);
  transition: color .15s;
  text-decoration: none;
}
.logout-btn:hover { color: var(--red-500); text-decoration: none; }

/* Main */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0; z-index: 50;
}

.topbar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.topbar-actions { display: flex; gap: .5rem; align-items: center; }

.content-area {
  padding: 1.75rem 2rem;
  flex: 1;
}


/* ─── BUTTONS ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  line-height: 1.4;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); }
.btn-primary:hover { background: var(--blue-500); border-color: var(--blue-500); color: var(--white); }

.btn-outline { background: var(--white); color: var(--gray-700); border-color: var(--gray-300); }
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); color: var(--gray-900); }

.btn-ghost { background: transparent; color: var(--gray-600); border-color: transparent; }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }

.btn-green { background: var(--green-600); color: var(--white); border-color: var(--green-600); }
.btn-green:hover { background: var(--green-500); color: var(--white); }

.btn-danger { color: var(--red-500); border-color: var(--red-500); }
.btn-danger:hover { background: var(--red-100); }

.btn-sm { padding: .35rem .75rem; font-size: .8rem; }
.btn-xs { padding: .2rem .55rem; font-size: .75rem; }
.btn-lg { padding: .65rem 1.4rem; font-size: .95rem; }
.btn-sm { padding: .3rem .75rem; font-size: .8rem; }
.btn-xl { padding: .9rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-success { background: var(--green-600); color: var(--white); border-color: var(--green-600); }


/* ─── FORMS ───────────────────────────────────────────────────── */

.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.form-control {
  width: 100%;
  padding: .55rem .85rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-control:disabled { background: var(--gray-100); color: var(--gray-500); cursor: not-allowed; }
.form-control::placeholder { color: var(--gray-400); }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; }

.form-lg { font-size: 1.1rem; padding: .7rem 1rem; font-weight: 600; }

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

.form-check-row { margin-bottom: 1rem; }
.form-check { display: flex; align-items: center; gap: .5rem; font-size: .875rem; cursor: pointer; }
.form-check input { cursor: pointer; }

.field-hint { font-size: .78rem; color: var(--gray-500); margin-bottom: .5rem; }
.field-hint code { background: var(--gray-100); padding: .1rem .3rem; border-radius: 3px; font-size: .8em; }

.font-mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: .85rem; }


/* ─── BADGES ──────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2px;
}
.badge-blue  { background: var(--blue-100);  color: var(--blue-600); }
.badge-green { background: var(--green-100); color: var(--green-600); }
.badge-amber { background: var(--amber-100); color: #92400e; }
.badge-gray  { background: var(--gray-200);  color: var(--gray-600); }
.badge-navy  { background: var(--navy-700);  color: var(--white); }
.ml-1 { margin-left: .3rem; }


/* ─── CARDS / SECTIONS ────────────────────────────────────────── */

.card-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
}

.card-sub { font-size: .875rem; color: var(--gray-600); margin-top: -.75rem; margin-bottom: 1.25rem; }


/* ─── TABLE ───────────────────────────────────────────────────── */

.table-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.data-table thead { background: var(--gray-50); }
.data-table th {
  padding: .75rem 1rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
}
.data-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--gray-50); }

.td-mono { font-family: monospace; color: var(--gray-500); font-size: .85rem; }
.td-muted { color: var(--gray-500); }


/* ─── FLASH MESSAGES ──────────────────────────────────────────── */

.flash-container { margin-bottom: 1.25rem; }
.flash {
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}
.flash-success { background: var(--green-100); color: #065f46; border: 1px solid #a7f3d0; }
.flash-danger  { background: var(--red-100);   color: #991b1b; border: 1px solid #fca5a5; }
.flash-warning { background: var(--amber-100); color: #92400e; border: 1px solid #fde68a; }
.flash-info    { background: var(--blue-50);   color: #1e40af; border: 1px solid var(--blue-100); }
.flash-close   { background: none; border: none; cursor: pointer; font-size: 1.1rem; opacity: .6; color: inherit; line-height: 1; }
.flash-close:hover { opacity: 1; }


/* ─── KPI GRID ────────────────────────────────────────────────── */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}
.kpi-cta { flex-direction: column; align-items: flex-start; }

.kpi-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kpi-blue  { background: var(--blue-50);  color: var(--blue-600); }
.kpi-amber { background: var(--amber-100); color: #d97706; }
.kpi-green { background: var(--green-100); color: var(--green-600); }

.kpi-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.1;
}
.kpi-label { font-size: .78rem; color: var(--gray-500); margin-top: .15rem; }


/* ─── SECTION HEADER ──────────────────────────────────────────── */

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; }
.section-link { font-size: .85rem; color: var(--blue-500); }
.status-legend { display: flex; gap: .4rem; }


/* ─── ROUTE ───────────────────────────────────────────────────── */

.route-text { font-size: .875rem; font-weight: 500; }
.route-arrow { color: var(--gray-400); margin: 0 .4rem; }
.route-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }


/* ─── EMPTY STATE ─────────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-title { font-weight: 700; font-size: 1.1rem; color: var(--gray-700); }
.empty-sub { color: var(--gray-500); font-size: .9rem; margin-top: .5rem; }


/* ─── FILTER BAR ──────────────────────────────────────────────── */

.filter-bar {
  display: flex;
  gap: .4rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  text-decoration: none;
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--blue-400); color: var(--blue-600); text-decoration: none; }
.filter-btn.active { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }


/* ─── STEPS BAR ───────────────────────────────────────────────── */

.steps-bar {
  display: flex;
  align-items: center;
  margin-bottom: 1.75rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-sm);
}
.step-item { display: flex; align-items: center; gap: .6rem; }
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  font-size: .8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.step-item.active .step-num { background: var(--blue-600); color: var(--white); }
.step-item.done .step-num { background: var(--green-600); color: var(--white); }
.step-lbl { font-size: .85rem; font-weight: 600; color: var(--gray-400); }
.step-item.active .step-lbl { color: var(--gray-900); }
.step-item.done .step-lbl { color: var(--green-600); }
.step-line { flex: 1; height: 2px; background: var(--gray-200); margin: 0 1rem; border-radius: 1px; }

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-100);
}

.sub-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-500);
  margin-bottom: .75rem;
}


/* ─── CEP ─────────────────────────────────────────────────────── */

.cep-status {
  font-size: .78rem;
  margin-top: .3rem;
  min-height: 1rem;
  color: var(--green-600);
}
.cep-status.err { color: var(--red-500); }
.cep-status.loading { color: var(--gray-400); }


/* ─── TRANSPORTADORAS (step 3) ────────────────────────────────── */

.tr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.tr-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--white);
}
.tr-card:hover { border-color: var(--blue-400); }
.tr-check { position: absolute; opacity: 0; pointer-events: none; }
.tr-card:has(.tr-check:checked) { border-color: var(--blue-600); background: var(--blue-50); }

.tr-info { flex: 1; min-width: 0; }
.tr-nome { font-weight: 600; font-size: .875rem; color: var(--gray-900); }
.tr-email { font-size: .78rem; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tr-mark {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gray-200);
  color: transparent;
  font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.tr-card:has(.tr-check:checked) .tr-mark {
  background: var(--blue-600);
  color: var(--white);
}

.info-box {
  padding: .9rem 1rem;
  background: var(--amber-100);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: #92400e;
  margin-bottom: 1rem;
}
.info-box a { color: #92400e; font-weight: 600; }
.info-blue { background: var(--blue-50); color: #1e40af; }
.info-blue a { color: #1e40af; }


/* ─── COTAÇÃO DETALHE ─────────────────────────────────────────── */

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.route-display { display: flex; align-items: center; gap: 1.5rem; }
.route-node { flex: 1; }
.route-cep { font-family: monospace; font-size: .8rem; color: var(--gray-400); }
.route-city { font-weight: 700; font-size: 1.1rem; color: var(--gray-900); }
.route-addr { font-size: .8rem; color: var(--gray-500); margin-top: .15rem; }
.route-arrow-big { font-size: 1.5rem; color: var(--blue-400); flex-shrink: 0; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; }
.spec-item { display: flex; flex-direction: column; }
.spec-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .4px; color: var(--gray-400); font-weight: 600; }
.spec-val { font-weight: 700; font-size: .95rem; color: var(--gray-900); margin-top: .1rem; }

.obs-box {
  margin-top: .75rem;
  padding: .75rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--gray-600);
  border-left: 3px solid var(--blue-400);
}

/* Proposals grid */
.proposals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: .5rem;
}

.proposal-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.prop-responded { border-color: var(--green-500); }
.prop-expired   { opacity: .7; }

.prop-header { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.prop-name { font-weight: 700; font-size: .95rem; color: var(--gray-900); }
.prop-email { font-size: .78rem; color: var(--gray-400); margin-top: .1rem; }

.prop-link-box {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: .75rem;
}
.prop-link-label { font-size: .73rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; margin-bottom: .4rem; }
.link-copy-row { display: flex; gap: .4rem; align-items: center; }
.link-input {
  flex: 1;
  font-family: monospace;
  font-size: .72rem;
  padding: .3rem .6rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  outline: none;
}
.prop-link-actions { margin-top: .4rem; }

.prop-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.prop-value-item {
  padding: .7rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1.5px solid transparent;
}
.pv-label { font-size: .7rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .3px; }
.pv-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin: .15rem 0; }
.pv-badge { font-size: .65rem; font-weight: 700; }

.highlight-green { border-color: var(--green-500); background: var(--green-100); }
.highlight-green .pv-num { color: var(--green-600); }
.highlight-blue  { border-color: var(--blue-400); background: var(--blue-50); }
.highlight-blue  .pv-num { color: var(--blue-600); }

.prop-obs {
  font-size: .83rem;
  color: var(--gray-600);
  background: var(--gray-50);
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gray-300);
}

.prop-contratar { margin-top: .25rem; }
.contracted-badge {
  background: var(--navy-800);
  color: var(--white);
  text-align: center;
  padding: .6rem;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .3px;
}

.prop-empty {
  text-align: center;
  color: var(--gray-400);
  font-size: .85rem;
  padding: 1rem;
}

.prop-footer {
  font-size: .72rem;
  color: var(--gray-300);
  text-align: right;
  border-top: 1px solid var(--gray-100);
  padding-top: .5rem;
  margin-top: auto;
}

.text-muted { color: var(--gray-500); }
.text-center { text-align: center; }


/* ─── CONFIGURAÇÕES ───────────────────────────────────────────── */

.config-layout { display: flex; flex-direction: column; gap: 1.25rem; }


/* ─── AUTH PAGES ──────────────────────────────────────────────── */

.auth-body {
  min-height: 100vh;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.auth-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.auth-shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.18), transparent 70%);
  animation: float 8s ease-in-out infinite;
}
.auth-shape.s1 { width: 500px; height: 500px; top: -200px; left: -150px; animation-delay: 0s; }
.auth-shape.s2 { width: 350px; height: 350px; bottom: -100px; right: -100px; animation-delay: 3s; }
.auth-shape.s3 { width: 250px; height: 250px; top: 50%; left: 60%; animation-delay: 6s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.auth-card-wide { max-width: 640px; }

.auth-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.auth-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--gray-900); margin-bottom: .35rem; }
.auth-subtitle { font-size: .875rem; color: var(--gray-500); margin-bottom: 1.75rem; }
.auth-form { display: flex; flex-direction: column; gap: 0; }
.auth-footer { text-align: center; font-size: .875rem; color: var(--gray-500); margin-top: 1.25rem; }


/* ─── PORTAL (Transportadora) ─────────────────────────────────── */

.portal-body {
  min-height: 100vh;
  background: var(--gray-50);
  padding: 2rem 1rem;
}

.portal-wrap {
  max-width: 680px;
  margin: 0 auto;
}
.portal-center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80vh; }

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.portal-timer {
  background: var(--amber-100);
  color: #92400e;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}

.portal-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.portal-card-label {
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--blue-500);
  margin-bottom: .5rem;
}

.portal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.portal-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.pspec-label { font-size: .72rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .3px; font-weight: 600; }
.pspec-val { font-weight: 700; font-size: 1rem; color: var(--gray-900); margin-top: .1rem; }

.portal-obs {
  font-size: .85rem;
  color: var(--gray-600);
  padding: .7rem 1rem;
  background: var(--amber-100);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--amber-500);
}

.portal-hint { font-size: .875rem; color: var(--gray-600); margin-bottom: 1.25rem; }

.portal-footer {
  text-align: center;
  font-size: .75rem;
  color: var(--gray-400);
  margin-top: 1.5rem;
}

/* Confirm page */
.confirm-icon { font-size: 3.5rem; margin-bottom: .75rem; }
.confirm-summary {
  background: var(--gray-50);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  margin: 1rem 0;
}
.cs-row {
  display: flex;
  justify-content: space-between;
  padding: .7rem 1rem;
  font-size: .875rem;
  border-bottom: 1px solid var(--gray-200);
}
.cs-row:last-child { border-bottom: none; }
.cs-row span { color: var(--gray-500); }
