/* ---------- Auth (unchanged from the first demo) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--primary); }
.input { height: 42px; border: 1px solid #D3DAD9; border-radius: 10px; padding: 0 12px; background: #fff; outline: none; width: 100%; font-size: 14px; color: var(--primary); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,148,136,.14); }
.input.invalid { border-color: #C8372D; }
.field-error { color: #C8372D; font-size: 12px; min-height: 16px; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 44px; }
.input-wrap .input-icon { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.icon-btn { position: relative; width: 32px; height: 32px; border-radius: 10px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--primary); }
.icon-btn:hover { background: #EEF4F3; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 11px 18px; font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-dark { background: var(--primary); color: var(--cream); }
.btn-dark:hover:not(:disabled) { background: #173230; }
.btn.block { width: 100%; }
.link { background: none; border: 0; color: var(--brand); cursor: pointer; font-weight: 500; padding: 0; font-size: 13px; }
.link:hover { text-decoration: underline; }
.stack { display: flex; flex-direction: column; gap: 18px; }
/* ---------- Auth (mirrors app/auth/auth.scss + truvera-ui LoginForm/Input/Button) ---------- */
.auth { display: flex; flex-direction: column; width: 100%; min-height: 100vh; background: #1F3B39; overflow-x: hidden; }
.auth-left { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 100vh; padding: 48px 20px; background: #1F3B39; }
.auth-right { display: none; background: #1F3B39; min-width: 0; }
.auth-card {
  background: #EDE9DC; color: #1F3B39; width: min(100%, 450px); padding: 0 30px 10px; border-radius: 24px; text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.08), 0 24px 48px rgba(31,59,57,.18);
}
.auth-inner { display: flex; flex-direction: column; align-items: center; margin-top: 32px; }
.auth-back { width: 100%; display: flex; justify-content: flex-start; margin-bottom: 8px; }
.auth-back button { background: none; border: 0; padding: 0; cursor: pointer; color: #1F3B39; display: inline-flex; }
.auth-logo { width: 160px; height: auto; }
.auth-body { width: 100%; padding-top: 32px; }
.auth-copy { font-size: 16px; }
.auth-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.auth-or { font-size: 12px; color: #838989; text-align: center; }
.auth-terms { margin-top: 16px; text-align: center; }
.auth-terms-link { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; color: #1F3B39; }
.auth-logo--lg { width: 221px; }
.auth-form { display: flex; flex-direction: column; gap: .75rem; }
.auth-fields { display: flex; flex-direction: column; row-gap: 4px; }
.ui-field { width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.ui-label { color: #363A3A; font-size: 14px; line-height: 20px; margin: 10px 0; display: flex; align-items: center; column-gap: 10px; }
.ui-wrap { position: relative; width: 100%; }
.ui-icon { position: absolute; top: 8px; left: 10px; color: #363A3A; pointer-events: none; display: inline-flex; }
.ui-input {
  width: 100%; height: 40px; min-height: 40px; border-radius: 8px; border: 1px solid #ACB0B0; padding: 6px 12px 6px 42px; background: #fff;
  font: inherit; font-size: 16px; color: #1F3B39; outline: none;
}
.ui-input.pw { padding-right: 40px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
textarea.ui-input { height: auto; min-height: 96px; padding-top: 10px; resize: vertical; }
.ui-input.err { border-color: #D00416; }
.ui-input:focus { border-color: #478581; }
select.ui-input { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; }
select.ui-input.empty { color: #838989; }
.ui-caret { position: absolute; right: 10px; top: 8px; color: #838989; pointer-events: none; display: inline-flex; }
.ui-eye { position: absolute; right: 10px; top: 14%; background: none; border: 0; padding: 0; cursor: pointer; color: #838989; display: inline-flex; }
.ui-error { font-size: 12px; text-align: left; color: #D00416; display: flex; align-items: center; column-gap: 5px; min-height: 18px; }
.ui-forgot { width: 100%; display: flex; justify-content: flex-end; margin-block: 12px; }
.ui-forgot button { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; line-height: 1; text-decoration: underline; cursor: pointer; color: #1F3B39; }
.ui-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .25rem; cursor: pointer; font: inherit; font-size: 1rem; min-width: 120px; min-height: 36px;
  padding: .75rem 1.5rem; border-radius: 100px; border: 0; background: #478581; color: #fff; transition: all .2s ease;
}
.ui-btn:hover { background: rgba(71,133,129,.8); }
.ui-btn:disabled { background: #ACB0B0; cursor: default; pointer-events: none; }
.ui-btn-outline { background: transparent; color: #1F3B39; border: 1px solid #1F3B39; }
.ui-btn-outline:hover { background: rgba(31,59,57,.08); }
.auth-choice { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 32px; }
.auth-foot { padding: 0 0 10px; }
.ls-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.ls-trigger { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; color: #1F3B39; border: 1px solid #E4DFCF; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; }
.ls-caret { display: inline-flex; }
.ls-trigger[aria-expanded="true"] .ls-caret { transform: rotate(180deg); }
.ls-panel { display: grid; grid-template-rows: 0fr; margin-top: 8px; opacity: 0; transition: grid-template-rows .25s ease, opacity .2s ease; }
.ls-panel.open { grid-template-rows: 1fr; opacity: 1; }
.ls-panel > div { overflow: hidden; min-height: 0; }
.ls-content { min-width: 260px; background: #fff; border: 1px solid #E4DFCF; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.15); padding: 12px; text-align: left; }
.ls-content input { width: 100%; padding: 8px 12px; border: 1px solid #E4DFCF; border-radius: 8px; font: inherit; font-size: 13px; margin-bottom: 8px; outline: none; }
.ls-content input:focus { border-color: #478581; }
.ls-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px; background: none; border: 0; border-radius: 8px; font: inherit; font-size: 14px; color: #1F3B39; cursor: pointer; }
.ls-opt:hover, .ls-opt.on { background: #F5F2E8; }
.ls-opt > span { display: flex; align-items: center; gap: 8px; }
.auth-demo { width: min(100%, 450px); margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: rgba(237,233,220,.7); }
.auth-demo button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid rgba(237,233,220,.35); color: #EDE9DC; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.auth-demo button:hover { background: rgba(237,233,220,.08); }
.map-panel { container-type: size; width: 90%; height: 95%; max-width: 90%; max-height: 95%; display: grid; place-items: center; }
.map-stage { position: relative; width: min(100cqw, calc(100cqh * 2)); height: min(100cqh, calc(100cqw / 2)); max-width: 100%; max-height: 100%; }
.map-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #fff 10%, #fff 90%, transparent); mask-image: linear-gradient(to bottom, transparent, #fff 10%, #fff 90%, transparent); }
.map-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: map-draw 1s ease-out forwards; }
.map-float { position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #F4FBF9;
  background: rgba(20,42,40,.78); border: 1px solid rgba(164,224,220,.35); box-shadow: 0 0 0 1px rgba(31,59,57,.35), 0 0 12px rgba(164,224,220,.28);
  transform: translate(-50%, -50%); animation: map-float ease-in-out infinite; }
@keyframes map-draw { to { stroke-dashoffset: 0; } }
@keyframes map-float { 0%, 100% { transform: translate(-50%, calc(-50% + 4px)); opacity: .85; } 50% { transform: translate(-50%, calc(-50% - 4px)); opacity: 1; } }
@media (min-width: 976px) {
  .auth { flex-direction: row; overflow: hidden; height: 100vh; }
  .auth-left { flex: 0 0 42%; max-width: 560px; align-items: flex-end; padding: 40px 28px 40px 64px; margin-left: 7%; overflow-y: auto; scrollbar-width: none; }
  .auth-left::-webkit-scrollbar { display: none; }
  .auth-right { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 5vh .1%; }
}
