/* Горелка — веб-дашборд. Палитра «Ночная котельная», как в приложении Android 2.0
   (AndroidApp/.../ui/theme/Theme.kt). Тема — атрибут data-theme на <html>. */

/* Onest — тот же переменный шрифт, что в приложении (res/font/onest.ttf), лежит у нас: без Google Fonts. */
@font-face {
  font-family: Onest; src: url("onest.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root, [data-theme="dark"] {
  --bg: #0F1113; --surface: #181B1F; --surface2: #21252A; --sunken: #14171A; --line: #2C3137;
  --text: #EEF0F2; --text2: #A5ADB6; --text3: #8A939D;
  --heat: #FF8A3D; --heat-text: #FF9A55; --on-heat: #1A1004; --heat-soft: rgba(255,138,61,.14);
  --water: #5AB8FF; --water-soft: rgba(90,184,255,.14); --water-fill: rgba(90,184,255,.42);
  --ok: #43D69A; --ok-soft: rgba(67,214,154,.13);
  --warn: #F5C451; --warn-soft: rgba(245,196,81,.13);
  --crit: #FF6B6B; --crit-text: #FF8A8A; --crit-soft: rgba(255,107,107,.13); --on-crit: #1A0A0A;
  --overlay: rgba(0,0,0,.55);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F4F5F7; --surface: #FFFFFF; --surface2: #ECEEF1; --sunken: #E8EAEE; --line: #DADEE3;
  --text: #14171A; --text2: #4E5661; --text3: #5D646E;
  --heat: #C2540F; --heat-text: #B04B0C; --on-heat: #FFFFFF; --heat-soft: rgba(194,84,15,.10);
  --water: #1F6FB2; --water-soft: rgba(31,111,178,.10); --water-fill: rgba(31,111,178,.30);
  --ok: #176E48; --ok-soft: rgba(23,110,72,.10);
  --warn: #8C6100; --warn-soft: rgba(140,97,0,.10);
  --crit: #C62828; --crit-text: #B71C1C; --crit-soft: rgba(198,40,40,.09); --on-crit: #FFFFFF;
  --overlay: rgba(20,23,26,.45);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.45; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--heat-text); }
a:hover { color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--heat); outline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 16px; border-radius: 12px; background: var(--heat); color: var(--on-heat); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: var(--on-heat); }
#view:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text2); }
.faint { color: var(--text3); }
.nowrap { white-space: nowrap; }

/* ── Шапка ─────────────────────────────────────────────── */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in {
  max-width: 1280px; margin: 0 auto; padding: 12px clamp(16px, 4vw, 32px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--heat-soft); color: var(--heat);
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; flex: 1 1 auto; }
.nav a {
  padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 15px;
  color: var(--text2); white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface2); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.conn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: var(--ok-soft); color: var(--ok); white-space: nowrap;
}
.conn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.conn.is-stale { background: var(--warn-soft); color: var(--warn); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent;
  color: var(--text2); display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.icon-btn:hover { color: var(--text); background: var(--surface2); }
.link-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); text-decoration: none; color: var(--text2); font-size: 14px; font-weight: 500;
}
.link-btn:hover { color: var(--text); background: var(--surface2); }
[data-theme="dark"] .only-light, [data-theme="light"] .only-dark { display: none; }

@media (max-width: 900px) {
  .topbar-in { gap: 10px; padding-bottom: 0; }
  .brand { flex: 1; }
  .nav {
    order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none;
    /* затухание справа — видно, что меню листается */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }
  .nav.at-end { -webkit-mask-image: none; mask-image: none; }
  .nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) { .conn { display: none; } }

/* ── Каркас страницы ───────────────────────────────────── */
.wrap {
  max-width: 1280px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 32px) 64px;
  display: flex; flex-direction: column; gap: 20px;
}
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.page-head h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.row { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.row > .grow { flex: 999 1 520px; min-width: 0; }
.row > .side { flex: 1 1 320px; min-width: 0; }
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.cards > * { flex: 1 1 250px; min-width: 0; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.card.pad-lg { padding: 28px; }
.card h2 { font-size: 20px; font-weight: 600; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.card-sub { font-size: 16px; font-weight: 600; color: var(--text2); }
@media (max-width: 760px) {
  .wrap { gap: 14px; padding-top: 16px; }
  .card, .card.pad-lg { padding: 18px; border-radius: 18px; }
  .page-head h1 { font-size: 26px; }
}

/* Плитки устройств на обзоре */
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 12px;
}
a.tile:hover { color: var(--text); border-color: var(--text3); }
.tile.dormant { border-style: dashed; }
.tile-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.big b { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.big span { font-size: 14px; color: var(--text3); }
.kv3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.kv3 div > div:last-child { font-weight: 600; font-size: 15px; }

/* Пилюли состояния */
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: var(--surface2); color: var(--text2); white-space: nowrap;
}
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.crit { background: var(--crit-soft); color: var(--crit-text); }
.pill.heat { background: var(--heat-soft); color: var(--heat-text); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.dot.warn { background: var(--warn); } .dot.crit { background: var(--crit); }
.dot.off { background: transparent; border: 2px solid var(--text3); }

/* Главная строка состояния */
.hero-title { display: flex; align-items: center; gap: 14px; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.hero-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; background: var(--ok); box-shadow: 0 0 0 6px var(--ok-soft); }
.hero-dot.warn { background: var(--warn); box-shadow: 0 0 0 6px var(--warn-soft); }
.hero-dot.crit { background: var(--crit); box-shadow: 0 0 0 6px var(--crit-soft); }
.hero-text { font-size: 17px; color: var(--text2); max-width: 64ch; }
.issues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.issues a { text-decoration: none; color: var(--text); display: flex; gap: 10px; align-items: center; }
.issues a:hover { color: var(--heat-text); }
@media (max-width: 760px) { .hero-title { font-size: 26px; } }

/* Кнопки */
.btn {
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface2); color: var(--text); font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn:hover { color: var(--text); border-color: var(--text3); }
.btn.primary { background: var(--heat); border-color: var(--heat); color: var(--on-heat); }
.btn.primary:hover { filter: brightness(1.06); color: var(--on-heat); }
.btn.danger { background: var(--crit); border-color: var(--crit); color: var(--on-crit); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; font-weight: 500; border-radius: 10px; }
.btn.text-danger { background: transparent; border-color: transparent; color: var(--crit-text); }
.btn:disabled, .btn.primary:disabled { background: var(--surface2); border-color: var(--line); color: var(--text3); filter: none; }
.btn.wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Сегменты периода и фильтры */
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--sunken); border-radius: 12px; }
.seg button {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent;
  color: var(--text2); font-size: 14px;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface2); color: var(--text); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text2); font-size: 13px;
}
.chips button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.custom-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.custom-range[hidden] { display: none; }

/* Поля ввода */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text2); }
.input, select.input {
  min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--sunken); color: var(--text); font-size: 15px; width: 100%;
}
.input:focus { border-color: var(--heat); outline: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

/* Метрики */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.metric { padding: 16px; border-radius: 14px; background: var(--sunken); min-width: 0; }
.metric .m-label { font-size: 14px; color: var(--text2); display: flex; align-items: center; gap: 8px; }
.metric .m-value { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.metric .m-value.sm { font-size: 20px; font-weight: 600; margin-top: 4px; }
.metric .m-note { font-size: 12px; color: var(--text3); }
.metric.room { background: var(--water-soft); }
.metric.boiler { background: var(--heat-soft); }
.metric .m-value.na { color: var(--text3); }

/* Уставка */
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stepper button {
  width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface2);
  color: var(--text); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stepper button:disabled { opacity: .4; }
.stepper output {
  flex: 1; min-width: 0; text-align: center; white-space: nowrap;
  font-size: clamp(40px, 12vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
}
.note { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; background: var(--sunken); color: var(--text2); }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.crit { background: var(--crit-soft); color: var(--crit-text); }
.note:empty { display: none; }

/* Источник тепла */
.choice { display: flex; flex-wrap: wrap; gap: 14px; }
.choice button {
  flex: 1 1 260px; text-align: left; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line);
  background: transparent; display: flex; gap: 14px; align-items: flex-start;
}
.choice button[aria-pressed="true"] { border: 2px solid var(--heat); background: var(--heat-soft); cursor: default; }
.choice button:disabled { border-style: dashed; color: var(--text2); }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--text3); flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; }
[aria-pressed="true"] > .radio { border-color: var(--heat); }
[aria-pressed="true"] > .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--heat); }
.choice-title { font-size: 17px; font-weight: 600; display: block; }
.choice-sub { font-size: 14px; color: var(--text2); display: block; }

/* Графики */
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--text2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg-line { width: 18px; height: 3px; border-radius: 2px; }
.lg-dash { width: 18px; height: 0; border-top: 2px dashed var(--text3); }
.lg-band { width: 14px; height: 14px; border-radius: 4px; background: var(--heat-soft); border: 1px solid var(--heat); }
.chart { position: relative; width: 100%; user-select: none; touch-action: pan-y; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--text3); font-size: 12px; font-family: inherit; }
.chart .plot-bg { fill: var(--sunken); }
.chart .cross { stroke: var(--text3); stroke-width: 1; }
.chart-tip {
  position: absolute; top: 4px; pointer-events: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  white-space: nowrap; z-index: 2;
}
.chart-tip b { font-weight: 600; }
.chart-empty { padding: 40px 0; text-align: center; color: var(--text3); font-size: 14px; }
.chart-label { font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--text2); border-top: 1px solid var(--line); padding-top: 14px; }
.stats b { color: var(--text); font-weight: 600; }
.timeline { position: relative; height: 48px; border-radius: 12px; background: var(--sunken); overflow: hidden; }
.timeline i { position: absolute; top: 8px; bottom: 8px; border-radius: 4px; background: var(--heat); min-width: 2px; }

/* Таблицы */
/* position: relative — иначе абсолютные элементы внутри (скрытые подписи) растягивают всю страницу */
.table-box { overflow-x: auto; position: relative; border-radius: 8px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--text3); font-size: 13px; font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; }
.tbl .strong { font-weight: 600; font-size: 15px; }
table.tbl.wide { min-width: 600px; }
@media (max-width: 560px) {   /* на телефоне — без второстепенных столбцов и без прокрутки вбок */
  table.tbl.wide { min-width: 0; }
  .tbl .opt { display: none; }
  .tbl th, .tbl td { padding-left: 6px; padding-right: 6px; }
}
.token { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; color: var(--text2); word-break: break-all; }

/* События */
.ev-day { font-size: 13px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; padding: 14px 0 4px; }
.ev { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 2px 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) {   /* время — под текстом, иначе текст сжимается до слова в строке */
  .ev { grid-template-columns: 36px minmax(0, 1fr); }
  .ev-time { grid-column: 2; font-size: 13px; }
}
.ev:last-child { border-bottom: 0; }
.ev-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--surface2); color: var(--text2); }
.ev-ico.warn { background: var(--warn-soft); color: var(--warn); }
.ev-ico.crit { background: var(--crit-soft); color: var(--crit-text); }
.ev-ico.ok { background: var(--ok-soft); color: var(--ok); }
.ev-body { flex: 1; min-width: 0; }
.ev-title { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ev-text { font-size: 14px; color: var(--text2); white-space: pre-line; overflow-wrap: anywhere; }
.ev-time { font-size: 14px; color: var(--text3); white-space: nowrap; }
.count { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface2); color: var(--text2); }

/* Список связи */
.links { display: flex; flex-direction: column; }
.link-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.link-row:last-child { border-bottom: 0; }
.link-row .lr-name { flex: 1; min-width: 0; }
.link-row .lr-name div:last-child { font-size: 13px; color: var(--text3); }

/* Бак */
.tank {
  position: relative; width: 150px; height: 300px; border-radius: 24px; background: var(--sunken);
  border: 2px solid var(--line); overflow: hidden; flex-shrink: 0;
}
.tank .dead { position: absolute; left: 0; right: 0; top: 0; height: 15%; border-bottom: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text3); }
.tank .fill { position: absolute; left: 0; right: 0; bottom: 0; background: var(--water-fill); border-top: 3px solid var(--water); transition: height .6s; }
.tank .mark { position: absolute; left: 0; right: 0; border-top: 2px dashed; }
.bar { position: relative; height: 10px; border-radius: 999px; background: var(--sunken); }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--water); }
.bar > s { position: absolute; top: -3px; bottom: -3px; width: 2px; }
.bar.crit > i { background: var(--crit); } .bar.warn > i { background: var(--warn); }

/* Диалог и уведомления */
.overlay { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.dialog {
  width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.dialog h2 { font-size: 22px; font-weight: 700; }
.dialog p { font-size: 15px; color: var(--text2); }
.dialog .btn-row { justify-content: flex-end; margin-top: 8px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px);
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.toast:empty { display: none; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-weight: 500; }
.banner[hidden] { display: none; }
#stale { position: sticky; top: 8px; z-index: 20; box-shadow: 0 8px 24px rgba(0,0,0,.25); background: var(--surface2); border: 1px solid var(--warn); }
/* Устройства на узком экране — карточки вместо таблицы */
.dev-list { display: flex; flex-direction: column; }
.dev-item { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dev-item:last-child { border-bottom: 0; }
.dev-item .dev-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dev-item .dev-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--text2); }
.dev-item .btn-row { gap: 6px; }
.dev-item form { background: var(--sunken); border-radius: 12px; padding: 12px; }
.skeleton { height: 120px; border-radius: 18px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.4s infinite linear; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .tank .fill { transition: none; } }

/* Вход */
.login-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; gap: 24px; }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; }
.login-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin-bottom: 6px; }
.login-head .brand-mark { width: 64px; height: 64px; border-radius: 18px; }
.login-head h1 { font-size: 28px; font-weight: 700; }
.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 56px; }
.pass-wrap button { position: absolute; right: 3px; top: 3px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--text2); display: flex; align-items: center; justify-content: center; }
