/* Visual inspirado no WhatsApp Web (tema claro) */
:root {
  --green: #00a884;
  --green-dark: #008069;
  --green-light: #d9fdd3;
  --bg: #f0f2f5;
  --panel: #ffffff;
  --head: #f0f2f5;
  --chat-bg: #efeae2;
  --line: #e9edef;
  --line-2: #d1d7db;
  --text: #111b21;
  --muted: #667781;
  --icon: #54656f;
  --hover: #f5f6f6;
  --active: #f0f2f5;
  --blue-tick: #53bdeb;
  --danger: #ea0038;
  --shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  --font: "Segoe UI", "Helvetica Neue", Helvetica, "Lucida Grande", Arial, Ubuntu, Cantarell, "Fira Sans", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: #dadbd3; color: var(--text); font-family: var(--font); font-size: 14.2px; overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.mono { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ===== Tela de conexão ===== */
#connect { height: 100%; position: relative; background: #eae6df; overflow-y: auto; }
.landing-band { position: absolute; inset: 0 0 auto; height: 222px; background: var(--green); }
.landing { position: relative; max-width: 1000px; margin: 0 auto; padding: 28px 20px 40px; }
.landing-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .02em; margin-bottom: 30px; }
.landing-brand svg circle { fill: #fff; }
.landing-brand svg path { fill: var(--green); }
.landing-card {
  background: #fff; border-radius: 3px; box-shadow: 0 17px 50px rgba(11,20,26,.19), 0 12px 15px rgba(11,20,26,.24);
  padding: 64px 60px; display: flex; justify-content: space-between; gap: 40px;
}
.landing-copy h1 { font-size: 28px; font-weight: 300; color: #41525d; margin-bottom: 36px; line-height: 1.3; }
.steps { padding-left: 24px; display: grid; gap: 18px; color: #3b4a54; font-size: 18px; line-height: 1.4; }
.steps li { padding-left: 6px; }
.steps b { font-weight: 600; }
.hint { margin-top: 48px; color: var(--green-dark); font-size: 14px; }
.qr-wrap { display: grid; gap: 12px; justify-items: center; align-content: start; }
.qr { width: 264px; height: 264px; padding: 0; background: #fff; position: relative; transition: filter .3s, opacity .3s; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr.scanned { filter: blur(4px); opacity: .5; }
.qr-status { color: var(--muted); font-size: 13px; }
.qr-status.ok { color: var(--green-dark); font-weight: 600; }
.qr-timer { width: 264px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
#qr-bar { height: 100%; background: var(--green); width: 100%; transition: width 1s linear; }
.keep { display: flex; gap: 8px; align-items: center; color: #3b4a54; font-size: 14px; margin-top: 6px; }
.keep input { accent-color: var(--green); width: 16px; height: 16px; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.e2e { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; display: flex; gap: 6px; justify-content: center; align-items: center; }

/* ===== App ===== */
#app { height: 100%; padding: 19px; background: #dadbd3; }
#app::before { content: ""; position: fixed; inset: 0 0 auto; height: 127px; background: var(--green); z-index: 0; }
.grid {
  position: relative; z-index: 1; height: 100%; max-width: 1700px; margin: 0 auto; background: var(--panel);
  display: grid; grid-template-columns: minmax(300px, 30%) 1fr 420px; box-shadow: 0 6px 18px rgba(11,20,26,.05);
}
@media (min-width: 1441px) { #app { padding: 19px 0; } }
.col { min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line-2); }
.col:last-child { border-right: 0; }

.pane-head { height: 59px; flex: none; background: var(--head); padding: 10px 16px; display: flex; align-items: center; gap: 15px; }
.me-box { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.me-name { font-size: 16px; }
.me-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icons { display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; color: var(--icon); display: grid; place-items: center; position: relative; transition: background .15s; }
.icon-btn:hover { background: rgba(11,20,26,.08); }
.speed-x { position: absolute; bottom: 2px; right: 0; font-size: 9px; font-weight: 700; }
#speed.on { color: var(--green); background: rgba(0,168,132,.1); }

.avatar {
  width: 49px; height: 49px; border-radius: 50%; flex: none; background: #dfe5e7 center / 100% no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 212 212'%3E%3Cpath fill='%23dfe5e7' d='M0 0h212v212H0z'/%3E%3Cpath fill='%23fff' d='M106 45c-20 0-36 16-36 36s16 37 36 37 36-17 36-37-16-36-36-36zm0 86c-33 0-61 18-73 44a106 106 0 0 0 146 0c-12-26-40-44-73-44z'/%3E%3C/svg%3E");
}
.pane-head .avatar { width: 40px; height: 40px; }
.avatar.sm { width: 32px; height: 32px; }

.search-bar { padding: 7px 12px; border-bottom: 1px solid var(--line); flex: none; }
.search-box { display: flex; align-items: center; gap: 22px; background: var(--bg); border-radius: 8px; padding: 0 12px 0 20px; height: 35px; color: var(--icon); }
.search-box input { flex: 1; border: 0; background: none; outline: none; font-size: 15px; color: var(--text); }
.search-box input::placeholder { color: var(--muted); }

.list { list-style: none; overflow-y: auto; flex: 1; }
.list li { display: flex; align-items: center; cursor: pointer; padding-left: 13px; height: 72px; }
.list li:hover { background: var(--hover); }
.list li.active { background: var(--active); }
.list .avatar { margin-right: 15px; }
.li-body { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); padding-right: 15px; }
.list li:first-child .li-body { border-top: 0; }
.li-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.li-name { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-time { color: var(--muted); font-size: 12px; flex: none; }
.li-last { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 3px; align-items: center; margin-top: 2px; }
.li-empty { padding: 30px; color: var(--muted); text-align: center; height: auto !important; display: block !important; }

/* Conversa */
.thread { position: relative; background: var(--chat-bg); }
.thread::before { /* textura de fundo */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(0,0,0,.035) 2px, transparent 2.5px),
    radial-gradient(circle at 60px 50px, rgba(0,0,0,.03) 3px, transparent 3.5px),
    radial-gradient(circle at 40px 80px, rgba(0,0,0,.035) 1.5px, transparent 2px);
  background-size: 90px 100px;
}
.thread > * { position: relative; }
.thread-head { border-left: 0; cursor: default; }
.thread-head .avatar { width: 40px; height: 40px; }
.thread-head .li-name { font-size: 16px; }
.thread-head .sub { font-size: 13px; color: var(--muted); }
.messages { flex: 1; overflow-y: auto; padding: 20px 7% 8px; display: flex; flex-direction: column; gap: 2px; }
.day { align-self: center; background: #fff; color: var(--muted); font-size: 12.5px; padding: 5px 12px; border-radius: 7.5px; box-shadow: var(--shadow); margin: 0 0 12px; text-transform: uppercase; }
.empty { margin: auto; color: var(--muted); background: #ffeecd; padding: 8px 14px; border-radius: 7.5px; font-size: 12.5px; box-shadow: var(--shadow); }
.msg {
  position: relative; max-width: 65%; padding: 6px 7px 8px 9px; border-radius: 7.5px; background: #fff; box-shadow: var(--shadow);
  line-height: 19px; font-size: 14.2px; white-space: pre-wrap; word-wrap: break-word; align-self: flex-start;
}
.msg.me { align-self: flex-end; background: var(--green-light); }
.msg.tail { margin-top: 10px; }
.msg.tail.them { border-top-left-radius: 0; }
.msg.tail.me { border-top-right-radius: 0; }
.msg.tail::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; }
.msg.tail.them::before { left: -8px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.msg.tail.me::before { right: -8px; background: var(--green-light); clip-path: polygon(0 0, 100% 0, 0 100%); }
.meta { float: right; margin: 6px 0 -6px 12px; display: flex; gap: 3px; align-items: center; font-size: 11px; color: var(--muted); line-height: 15px; }
.tag { font-size: 10px; background: rgba(0,128,105,.12); color: var(--green-dark); padding: 0 5px; border-radius: 4px; margin-right: 4px; }
.tick { color: var(--blue-tick); display: inline-flex; }
.reply { flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 16px; min-height: 62px; background: var(--head); }
.reply input { flex: 1; background: #fff; border: 0; border-radius: 8px; padding: 9px 12px; outline: none; font-size: 15px; }
.send { width: 42px; height: 42px; color: var(--icon); display: grid; place-items: center; }

/* ===== Painel de disparo (estilo "Dados do contato") ===== */
.dispatch { background: var(--bg); position: relative; }
.dispatch .col-head { height: 59px; flex: none; background: var(--head); padding: 0 16px 0 24px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.head-row { flex: 1; display: flex; justify-content: space-between; align-items: center; }
h2 { font-size: 16px; font-weight: 400; }
.seg { display: flex; gap: 4px; }
.seg-btn { padding: 6px 12px; border-radius: 16px; color: var(--muted); font-size: 14px; display: flex; gap: 6px; align-items: center; transition: .15s; }
.seg-btn:hover { background: rgba(11,20,26,.05); }
.seg-btn.active { background: #e7fce3; color: var(--green-dark); font-weight: 500; }
.badge { background: var(--green); color: #fff; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; border-radius: 9px; display: inline-grid; place-items: center; padding: 0 5px; }

.dispatch-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 10px; }
.step { background: #fff; padding: 16px 24px 18px; display: grid; gap: 12px; box-shadow: 0 1px 3px rgba(11,20,26,.08); }
.step header { display: flex; align-items: baseline; gap: 8px; }
.step h3 { font-size: 14px; font-weight: 400; color: var(--green-dark); }
.num { display: none; }
.step-info { margin-left: auto; color: var(--muted); font-size: 13px; }

.tabs { display: flex; gap: 8px; }
.tab { padding: 6px 14px; border-radius: 16px; background: var(--bg); color: var(--muted); font-size: 14px; transition: .15s; }
.tab:hover { background: #e9edef; }
.tab.active { background: #e7fce3; color: var(--green-dark); }
.mode { display: grid; gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; }
.search { flex: 1; background: var(--bg); border: 0; border-radius: 8px; padding: 8px 12px; outline: none; font-size: 14px; }
.picker { list-style: none; max-height: 232px; overflow-y: auto; margin: 0 -24px; }
.picker li { display: flex; align-items: center; gap: 14px; padding: 8px 24px; cursor: pointer; }
.picker li:hover { background: var(--hover); }
.picker .p-body { flex: 1; min-width: 0; display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.picker .mono { color: var(--muted); font-size: 13px; }
.check { width: 18px; height: 18px; border: 2px solid #8696a0; border-radius: 3px; flex: none; display: grid; place-items: center; transition: .1s; }
.sel .check { background: var(--green); border-color: var(--green); }
.sel .check::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

.group-picker { list-style: none; margin: 0 -24px; }
.group-picker li { display: flex; align-items: center; gap: 14px; padding: 8px 24px; cursor: pointer; }
.group-picker li:hover { background: var(--hover); }
.group-picker li.sel { background: var(--active); }
.group-picker .g-ico { width: 40px; height: 40px; border-radius: 50%; background: #dfe5e7; color: #fff; display: grid; place-items: center; flex: none; }
.group-picker .g-body { flex: 1; display: grid; font-size: 15px; }
.group-picker .mono { color: var(--muted); font-size: 13px; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #8696a0; flex: none; display: grid; place-items: center; }
.sel .radio { border-color: var(--green); }
.sel .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.note b { color: var(--text); font-weight: 500; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--bg); padding: 1px 5px; border-radius: 4px; color: var(--text); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; padding: 3px 10px; border-radius: 12px; background: var(--bg); color: #3b4a54; }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; cursor: pointer; flex-direction: row-reverse; }
.toggle input { display: none; }
.knob { width: 34px; height: 14px; border-radius: 7px; background: #b3bac0; position: relative; transition: .2s; flex: none; }
.knob::after { content: ""; position: absolute; top: -3px; left: -2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: .2s; }
.toggle input:checked + .knob { background: #7fd3c1; }
.toggle input:checked + .knob::after { left: 16px; background: var(--green); }

.variants { display: grid; gap: 8px; }
.variant { display: grid; grid-template-columns: 22px 1fr 28px; gap: 8px; align-items: start; }
.v-label { font-size: 13px; color: var(--green-dark); font-weight: 600; padding-top: 10px; text-align: center; }
.v-del { width: 28px; height: 28px; border-radius: 50%; color: var(--icon); margin-top: 6px; font-size: 13px; }
.v-del:hover { background: var(--bg); color: var(--danger); }
.v-del:disabled { visibility: hidden; }
textarea { background: var(--bg); border: 0; border-bottom: 2px solid transparent; border-radius: 8px; padding: 9px 12px; resize: vertical; line-height: 1.4; font-size: 14.5px; min-height: 58px; outline: none; }
textarea:focus { border-bottom-color: var(--green); }
.dashed { color: var(--green-dark); font-size: 14px; text-align: left; padding: 4px 0 4px 30px; }
.dashed:hover { text-decoration: underline; }
.preview { display: grid; gap: 8px; padding: 12px; border-radius: 8px; background: var(--chat-bg); }
.preview-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.preview-head b { font-weight: 500; color: #3b4a54; }
.preview-head button { color: var(--green-dark); font-size: 12px; }
.preview .msg { max-width: 92%; margin-right: 8px; border-top-right-radius: 0; }
.preview .msg::before { content: ""; position: absolute; top: 0; right: -8px; width: 8px; height: 13px; background: var(--green-light); clip-path: polygon(0 0, 100% 0, 0 100%); }

.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.presets button { padding: 6px 14px; border-radius: 16px; background: var(--bg); font-size: 14px; color: #3b4a54; display: flex; gap: 6px; align-items: baseline; transition: .15s; }
.presets button small { color: var(--muted); font-size: 12px; }
.presets button:hover { background: #e9edef; }
.presets button.active { background: #e7fce3; color: var(--green-dark); }
.presets button.active small { color: var(--green-dark); }
.range-row { display: flex; align-items: end; gap: 12px; }
.range-row label { flex: 1; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.range-row .dash { color: var(--muted); padding-bottom: 8px; }
.num-input { display: flex; align-items: center; border-bottom: 2px solid var(--line-2); transition: border-color .2s; }
.num-input:focus-within { border-color: var(--green); }
.num-input input { flex: 1; width: 100%; background: none; border: 0; outline: none; padding: 6px 0; font-size: 17px; }
.num-input span { color: var(--muted); }
.estimate { color: var(--muted); font-size: 13px; line-height: 1.6; }
.estimate b { color: var(--text); font-weight: 500; }
.estimate .warn { color: #c8650c; }

.when { display: grid; gap: 2px; margin: 0 -24px; }
.when-opt { display: block; cursor: pointer; }
.when-opt input { display: none; }
.when-opt span { display: grid; grid-template-columns: 20px 1fr; column-gap: 18px; padding: 8px 24px; }
.when-opt span::before { content: ""; grid-row: span 2; align-self: center; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; border: 2px solid #8696a0; }
.when-opt input:checked + span::before { border: 6px solid var(--green); }
.when-opt:hover span { background: var(--hover); }
.when-opt b { font-weight: 400; font-size: 15px; }
.when-opt small { color: var(--muted); font-size: 13px; }
.datetime { border: 0; border-bottom: 2px solid var(--line-2); padding: 6px 0; font-size: 15px; outline: none; background: none; }
.datetime:focus { border-color: var(--green); }

.fire-row { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: #fff; border-top: 1px solid var(--line); }
.count { display: flex; align-items: baseline; gap: 6px; color: var(--muted); }
.count b { color: var(--text); font-size: 20px; font-weight: 500; }
.fire { background: var(--green); color: #fff; font-weight: 500; font-size: 14px; padding: 10px 24px; border-radius: 24px; transition: background .15s, box-shadow .15s; }
.fire:hover:not(:disabled) { background: #06cf9c; box-shadow: 0 1px 3px rgba(11,20,26,.2); }
.fire:disabled { background: #e9edef; color: #8696a0; cursor: not-allowed; }
.ghost { padding: 7px 16px; border-radius: 18px; border: 1px solid var(--line-2); color: var(--green-dark); font-size: 14px; transition: .15s; background: #fff; }
.ghost:hover { background: var(--hover); }
.ghost.sm { padding: 5px 14px; font-size: 13px; }
.ghost.danger { color: var(--danger); }

/* ===== Fila ===== */
.queue { flex: 1; overflow-y: auto; padding: 10px 0; }
.campaigns { list-style: none; display: grid; gap: 10px; }
.camp { background: #fff; padding: 16px 24px; display: grid; gap: 10px; box-shadow: 0 1px 3px rgba(11,20,26,.08); }
.camp-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.camp-name { font-size: 16px; }
.camp-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.chip { font-size: 12px; padding: 2px 10px; border-radius: 12px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.chip.running { background: #e7fce3; color: var(--green-dark); }
.chip.scheduled, .chip.waiting { background: #e6f3fb; color: #027eb5; }
.chip.paused { background: #fff4d6; color: #a86d00; }
.chip.done { background: #e7fce3; color: var(--green-dark); }
.chip.cancelled { background: #fde8ec; color: var(--danger); }
.bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar > div { height: 100%; background: var(--green); transition: width .4s; }
.camp-stats { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; gap: 8px; flex-wrap: wrap; }
.camp-stats .ok { color: var(--green-dark); } .camp-stats .fail { color: var(--danger); }
.next { color: var(--text); font-weight: 500; }
.camp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.log { list-style: none; max-height: 200px; overflow-y: auto; background: var(--bg); border-radius: 8px; padding: 6px 0; font-size: 13px; }
.log li { padding: 4px 12px; display: flex; gap: 8px; }
.log .s-ok { color: var(--green-dark); } .log .s-fail { color: var(--danger); } .log .s-dim { color: var(--muted); margin-left: auto; }
.log .s-dim + .s-dim { margin-left: 8px; }
.empty-queue { text-align: center; color: var(--muted); padding: 60px 24px; display: grid; gap: 6px; background: #fff; }
.empty-queue b { color: var(--text); font-weight: 400; font-size: 18px; }

.toast {
  position: fixed; bottom: 24px; left: 24px; transform: translateY(20px); opacity: 0;
  background: #3b4a54; color: #fff; padding: 12px 20px; border-radius: 4px; font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: .25s; pointer-events: none; z-index: 50;
}
.toast.show { opacity: 1; transform: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: rgba(11,20,26,.2); }

@media (max-width: 1200px) { .grid { grid-template-columns: 280px 1fr 380px; } #app { padding: 0; } }

/* ===== Estados reais (carregando / erro) ===== */
.qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.qr-loading { width: 100%; height: 100%; display: grid; place-content: center; gap: 8px; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--line-2); padding: 16px; }
.qr-loading.error { color: var(--danger); }
.qr-loading small { color: var(--muted); word-break: break-word; }
.qr-loading .ghost { justify-self: center; margin-top: 6px; }
.hint b { font-family: ui-monospace, Menlo, monospace; letter-spacing: .15em; color: var(--text); }
.picker-msg { color: var(--muted); font-size: 13px; padding: 12px 24px !important; cursor: default !important; }
.picker-msg:hover { background: none !important; }
.avatar { background-size: cover !important; }
.avatar.group:not([style]) { background: #dfe5e7 center / 60% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E") !important; }
.author { font-size: 12.8px; font-weight: 500; color: #06cf9c; margin-bottom: 2px; }
.li-empty small { display: block; margin-top: 6px; font-size: 12px; }

/* ===== Login ===== */
#login { height: 100%; position: relative; background: #eae6df; overflow-y: auto; }
.login-card {
  background: #fff; border-radius: 3px; box-shadow: 0 17px 50px rgba(11,20,26,.19), 0 12px 15px rgba(11,20,26,.24);
  max-width: 440px; margin: 0 auto; padding: 48px 44px 40px; display: grid; gap: 18px;
}
.login-card h1 { font-size: 28px; font-weight: 300; color: #41525d; }
.login-sub { color: var(--muted); font-size: 14px; margin-top: -8px; }
.login-field { display: grid; gap: 4px; font-size: 13px; color: var(--green-dark); }
.login-field input { border: 0; border-bottom: 2px solid var(--line-2); padding: 8px 0; font-size: 16px; outline: none; background: none; transition: border-color .2s; }
.login-field input:focus { border-bottom-color: var(--green); }
.login-error { color: var(--danger); font-size: 13px; min-height: 18px; margin: -6px 0 -6px; }
.login-btn { justify-self: stretch; padding: 12px; font-size: 15px; }
.qr img { filter: grayscale(1) contrast(1.4); }
