/* Livira Portal - phase 4: auth pages, account area, flash banner.
   Mockups: Mockups/2026-11-11-login.html and 2026-11-11-account.html. Only consumes tokens.css / components.css.
   Class prefixes: au-* (auth), acc-* (account shell), fc-* (favourite card), srch-* (saved search). */

/* ---------- shared form bits ---------- */
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 14px; }
.fld .in { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; }
.fld .in:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,58,55,.1); }
.fld.err .in { border-color: var(--red); }
.fld input { border: 0; outline: 0; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); width: 100%; min-width: 0; padding: 12px 0; background: none; }
.fld .ico { color: var(--ink-soft); }
.fld .eye { border: 0; background: none; font-size: 12.5px; font-weight: 700; color: var(--green); text-decoration: underline; cursor: pointer; flex: none; }
.fld .msg { font-size: 12.5px; font-weight: 500; color: var(--red); display: none; }
.fld.err .msg { display: block; }
.fld .hint { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.meter { display: flex; gap: 4px; margin-top: 2px; }
.meter i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.meter i.on1 { background: var(--red); } .meter i.on2 { background: #E2A63A; } .meter i.on3 { background: #1D6B34; }
.chk { display: flex; gap: 9px; font-size: 13px; color: var(--ink-soft); align-items: flex-start; margin-bottom: 10px; line-height: 1.4; cursor: pointer; }
.chk input { margin-top: 3px; flex: none; }
.chk a { text-decoration: underline; color: var(--green); }
.chk-msg { font-size: 12.5px; font-weight: 500; color: var(--red); margin: -4px 0 10px; display: none; }
.chk-msg.show { display: block; }

.acc-alert { background: #FBE8E4; border: 1px solid #E8B4A8; color: #8A3B27; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; }
.acc-alert.ok { background: #E6F4EA; border-color: #B7DCC0; color: #1D6B34; }
.acc-ok { text-align: center; background: #E6F4EA; border: 1px solid #B7DCC0; border-radius: 14px; padding: 22px; color: #1D6B34; margin: 0 0 16px; }
.acc-ok .ico { width: 36px; height: 36px; }
.acc-ok h3 { margin: 6px 0; font-family: var(--font-serif); font-size: 20px; }
.au-fine { font-size: 12.5px; color: var(--ink-soft); margin-top: 16px; text-align: center; }
.au-fine a, .au-link { text-decoration: underline; font-weight: 600; color: var(--green); }

/* ---------- auth: split layout (shared shell templates/auth/_shell.html) ---------- */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 62px - 70px); }
.au-side { background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #fff; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.au-side::after { content: ""; position: absolute; right: -100px; bottom: -100px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(201,166,107,.3), transparent 65%); }
.au-side > * { position: relative; z-index: 1; }
.au-eyebrow { letter-spacing: 3px; font-size: 12px; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; font-weight: 600; }
.au-side h2 { font-family: var(--font-serif); font-weight: 600; font-size: 32px; line-height: 1.2; margin: 0 0 14px; max-width: 420px; }
.au-side ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; max-width: 420px; }
.au-side li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; opacity: .92; }
.au-side li .ico { color: var(--gold); width: 22px; height: 22px; margin-top: 1px; }
.au-main { display: grid; place-items: center; padding: 34px 20px; }
.au-card { width: 100%; max-width: 420px; }
.au-tabs { display: flex; background: var(--sand); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.au-tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 9px; font-weight: 700; font-size: 14px; }
.au-tabs a.on { background: #fff; box-shadow: var(--shadow); }
.au-card h1 { font-size: 28px; margin: 0 0 6px; }
.au-card .sub { color: var(--ink-soft); margin: 0 0 20px; font-size: 14.5px; }
.au-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px; font-weight: 600; font-size: 14.5px; }
.au-google:hover { border-color: var(--green); }
.au-div { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); margin: 18px 0; display: flex; align-items: center; gap: 12px; }
.au-div::before, .au-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.au-row { display: flex; justify-content: flex-end; margin: -4px 0 16px; font-size: 13.5px; }
.au-row a { text-decoration: underline; font-weight: 600; }
.btn-lg { padding: 13px 18px; font-size: 15px; }

@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; min-height: 0; }
  .au-side { display: none; }
  .au-card h1 { font-size: 24px; }
}

/* ---------- account area (templates/account/_shell.html) ---------- */
.acc-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.acc-pg { padding: 28px 0 70px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; align-items: start; }
.acc-side { position: sticky; top: 80px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.acc-who { padding: 10px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; min-width: 0; }
.acc-who b { display: block; overflow-wrap: anywhere; }
.acc-who span { font-size: 12.5px; color: var(--ink-soft); overflow-wrap: anywhere; }
.acc-side nav { display: flex; flex-direction: column; }
.acc-side nav a { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.acc-side nav a:hover { background: var(--sand); }
.acc-side nav a.on { background: var(--green); color: #fff; }
.acc-side .n { margin-left: auto; font-size: 12px; background: var(--gold); color: var(--green-deep); border-radius: 999px; padding: 1px 8px; }
.acc-main h1 { font-size: 26px; margin: 0 0 4px; }
.acc-main .sub { color: var(--ink-soft); margin: 0 0 20px; }
.acc-main .sub:empty::before { content: "\00a0"; }

/* favourites grid + card */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.fc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.fc-photo { position: relative; height: 150px; background: var(--line); }
.fc-photo > a { display: block; height: 100%; }
.fc-photo img, .fc-photo .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc .tl { position: absolute; top: 10px; left: 10px; z-index: 2; }
.fc .x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; color: var(--red); display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; }
.fc .x .ico { fill: currentColor; }
.fc .b { padding: 12px 14px; flex: 1; }
.fc .b .price { font-size: 19px; }
.fc .b .was { text-decoration: line-through; color: var(--ink-soft); font-size: 13px; margin-left: 6px; }
.fc .meta { font-size: 13px; color: var(--ink-soft); margin: 4px 0 8px; overflow-wrap: anywhere; }
.fc .note { width: 100%; border: 1px dashed var(--line); border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 13px; background: #FBFAF7; resize: none; color: var(--ink); }
.fc .note:focus { outline: 0; border-color: var(--green); background: #fff; }
.note-status { display: block; min-height: 16px; font-size: 11.5px; color: #1D6B34; margin-top: 3px; }
.fc .ft { border-top: 1px solid var(--line); padding: 9px 14px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-soft); }
.fc .ft form { margin: 0; }
.fc.gone .fc-photo img, .fc.gone .fc-photo .ph { filter: grayscale(.8); }
.fc.gone .price { color: var(--ink-soft); }

/* switch (checkbox + <i>) */
.sw { position: relative; width: 38px; height: 22px; flex: none; display: inline-block; }
.sw input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 2; margin: 0; width: 100%; height: 100%; }
.sw i { position: absolute; inset: 0; border-radius: 999px; background: #cfcac0; transition: .15s; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; }
.sw input:checked + i { background: var(--green); }
.sw input:checked + i::after { left: 19px; }
.sw input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.sw input:disabled { cursor: not-allowed; }
.sw input:disabled + i { opacity: .5; }
.lab { display: flex; align-items: center; gap: 10px; line-height: 1.25; font-size: 13px; color: var(--ink); font-weight: 600; cursor: pointer; }

/* saved searches */
.srch { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: center; margin-bottom: 12px; }
.srch h3 { margin: 0 0 6px; font: 700 16px var(--font-sans); overflow-wrap: anywhere; }
.srch .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.srch .res { font-size: 13px; color: #1D6B34; margin-top: 8px; font-weight: 600; }
.srch .res.none { color: var(--ink-soft); }
.srch .act { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.srch .act form { margin: 0; }
.freq { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13px; background: #fff; }
.freq-status { font-size: 11.5px; color: #1D6B34; min-height: 14px; text-align: right; }

/* boxes (alerts, data) */
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.box h3 { margin: 0 0 12px; font: 700 16px var(--font-sans); }
.box .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.box h3 + .row { border-top: 0; }
.box .row small { display: block; color: var(--ink-soft); font-size: 12.5px; }
.box .row form { margin: 0; }
.box .row a.go { font-weight: 700; font-size: 13px; text-decoration: underline; color: var(--green); white-space: nowrap; }
.box .fld input { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.box .fld input:disabled { background: #F3F1EA; color: var(--ink-soft); }
.box .fld .in { padding: 0; border: 0; box-shadow: none; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(.92); }
.danger summary { cursor: pointer; list-style: none; display: inline-flex; }
.danger summary::-webkit-details-marker { display: none; }
.danger-form { margin-top: 14px; }
.acc-empty { text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; color: var(--ink-soft); }
.acc-empty .ico { width: 36px; height: 36px; }
.acc-empty h3 { font-family: var(--font-serif); margin: 8px 0; }
.acc-empty[hidden] { display: none; }
.acc-narrow { max-width: 460px; margin: 60px auto; padding: 0 20px; }
.acc-narrow h1 { font-size: 26px; margin-bottom: 6px; }
.acc-narrow .sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px; }

@media (max-width: 820px) {
  .acc-pg { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 16px; }
  .acc-side, .acc-main { min-width: 0; }
  .acc-wrap { padding: 0 14px; }
  .acc-side { position: static; padding: 6px; }
  .acc-who { display: none; }
  .acc-side nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .acc-side nav a { width: calc(50% - 2px); white-space: nowrap; padding: 9px 10px; }
  .srch { grid-template-columns: 1fr; }
  .srch .act { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
  .freq-status { text-align: left; }
}

/* ---------- flash banner (inserted after <main> by main.py flash_banner) ---------- */
.flash { max-width: 1100px; margin: 16px auto 0; padding: 12px 16px; border-radius: 10px; background: var(--horizon-wash); border: 1px solid var(--horizon); color: var(--green-deep); font-size: 14px; font-weight: 600; }
@media (max-width: 1140px) { .flash { margin-left: 14px; margin-right: 14px; } }
