/* ==========================================================================
   Delta Multi-Account Copier - light trading dashboard

   THEME CONTRACT: every surface, border and text colour must come from one of
   the variables below.  A hardcoded #0a0e16 or rgba(255,255,255,.03) in a rule
   below is a bug waiting to happen - it is invisible against a dark page and
   glaring against a light one, and it does not follow the palette.  Add a
   variable instead.
   ========================================================================== */
:root {
  --bg:            #f5f7fa;
  --bg-2:          #ffffff;
  --bg-3:          #eef2f7;
  --line:          #d9e0ea;
  --line-soft:     #e7ecf3;
  --text:          #0f172a;
  --text-dim:      #475569;
  --text-faint:    #94a3b8;
  --accent:        #2563eb;
  --accent-2:      #1d4ed8;
  --long:          #16a34a;
  --long-dim:      #dcfce7;
  --short:         #dc2626;
  --short-dim:     #fee2e2;
  --warn:          #d97706;
  --purple:        #9333ea;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg:     0 25px 60px rgba(15, 23, 42, .16);
  --overlay:       rgba(15, 23, 42, .45);
  --topbar:        rgba(255, 255, 255, .88);
  --hover:         rgba(15, 23, 42, .04);
  --hover-line:    #c3cddb;
  --on-accent:     #ffffff;
  --code-bg:       #f8fafc;
  --code-text:     #334155;
  --skeleton:      #e2e8f0;
  --scroll-thumb:  #cbd5e1;
  --scroll-thumb-hover: #94a3b8;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* The `hidden` attribute is only a UA-stylesheet hint, so ANY author rule with
   a `display` value silently defeats it.  `.login-view { display: grid }` did
   exactly that and left the logon card on screen after a successful sign-in.
   This guard must stay: it is what makes `el.hidden = true` reliable. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(900px 400px at 12% -8%, rgba(37, 99, 235, .05), transparent 60%),
    radial-gradient(700px 380px at 92% -12%, rgba(147, 51, 234, .04), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
code { font-family: var(--mono); background: var(--bg-3); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.muted { color: var(--text-dim); }
.small { font-size: 12px; }
.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.grow { flex: 1; }
.pos { color: var(--long); }
.neg { color: var(--short); }

/* ------------------------------ top bar ---------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 22px;
  background: var(--topbar);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 210px; }
.logo {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--accent), var(--purple));
  font-size: 20px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(59, 130, 246, .35);
}
.brand-title { font-weight: 650; font-size: 15px; }
.brand-sub { font-size: 11px; color: var(--text-faint); }

.ticker {
  display: flex; align-items: baseline; gap: 10px;
  padding: 6px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ticker-symbol { font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.ticker-price { font-family: var(--mono); font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.ticker-meta { font-size: 11px; color: var(--text-faint); }

.status-cluster { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px; font-weight: 650; letter-spacing: .04em;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-dim);
  white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
.pill-live   { color: var(--long);  border-color: rgba(34, 197, 94, .35);  background: rgba(34, 197, 94, .10); }
.pill-live .dot { background: var(--long); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); animation: pulse 1.8s infinite; }
.pill-paused { color: var(--warn);  border-color: rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .10); }
.pill-paused .dot { background: var(--warn); }
.pill-warn  { color: var(--warn); border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .12); }
.pill-danger{ color: #fff; background: var(--short); border-color: var(--short); }
.pill-muted { color: var(--text-faint); }

/* Deployed build marker.  Static in the markup on purpose: the number is
   bumped by hand when a release is deployed, so it is read off the server
   rather than from any value the running app could overwrite. */
.build-pill {
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  cursor: default;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .35); }
  50%      { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.topbar-actions { display: flex; gap: 8px; }

/* ------------------------------ buttons ---------------------------------- */
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--text);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  transition: .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--hover); border-color: var(--hover-line); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Keyboard focus must be visible on a light background.  :focus alone is not
   enough because .btn:hover also changes the background, so a keyboard user
   following a tab could not tell where they are. */
.btn:focus-visible,
.tab:focus-visible,
.btn-icon:focus-visible,
summary:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
/* Pointer users should not see the ring, but the removal above must not leave
   a stale outline behind. */
.btn:focus:not(:focus-visible),
.tab:focus:not(:focus-visible) { outline: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-danger { background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .45); color: var(--short); }
.btn-danger:hover { background: rgba(239, 68, 68, .22); border-color: var(--short); }
.btn-sm { padding: 4px 9px; font-size: 11.5px; }
.btn-icon {
  background: none; border: none; color: var(--text-dim);
  font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.btn-icon:hover { background: var(--bg-3); color: var(--text); }
.row-gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* -------------------------------- tabs ----------------------------------- */
.tabs {
  display: flex; gap: 4px;
  padding: 14px 22px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tab {
  appearance: none; background: none; border: none;
  color: var(--text-dim);
  padding: 9px 15px;
  font-size: 13px; font-weight: 550;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.tab:hover { color: var(--text); background: var(--hover); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.badge {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 7px;
  font-size: 10.5px; font-family: var(--mono); color: var(--text-dim);
}

main { padding: 20px 22px 60px; max-width: 1560px; margin: 0 auto; }
.page { display: none; animation: fade .18s ease; }
.page.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* -------------------------------- cards ---------------------------------- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-3);
}
.card-head h2 { font-size: 13.5px; letter-spacing: .02em; text-transform: uppercase; color: var(--text-dim); }
.card-body { padding: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 18px; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 { margin-bottom: 18px; }

.tag {
  font-size: 10.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text-dim);
}
.tag-primary { color: var(--accent-2); border-color: rgba(59, 130, 246, .4); background: rgba(59, 130, 246, .1); }
.tag-long  { color: var(--long);  border-color: rgba(34, 197, 94, .4);  background: rgba(34, 197, 94, .1); }
.tag-short { color: var(--short); border-color: rgba(239, 68, 68, .4);  background: rgba(239, 68, 68, .1); }
.tag-ok    { color: var(--long);  border-color: rgba(34, 197, 94, .35); }
.tag-warn  { color: var(--warn);  border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .1); }
.tag-err   { color: var(--short); border-color: rgba(239, 68, 68, .4); background: rgba(239, 68, 68, .1); }

/* --------------------------- active trade -------------------------------- */
.active-trade {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow);
}
.active-trade.long  { border-color: rgba(34, 197, 94, .4);  box-shadow: 0 0 0 1px rgba(34, 197, 94, .12), var(--shadow); }
.active-trade.short { border-color: rgba(239, 68, 68, .4); box-shadow: 0 0 0 1px rgba(239, 68, 68, .12), var(--shadow); }
.at-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.at-side {
  font-family: var(--mono); font-weight: 700; font-size: 17px;
  padding: 6px 14px; border-radius: 10px; letter-spacing: .04em;
}
.at-side.long  { background: rgba(34, 197, 94, .16); color: var(--long); border: 1px solid rgba(34, 197, 94, .4); }
.at-side.short { background: rgba(239, 68, 68, .16); color: var(--short); border: 1px solid rgba(239, 68, 68, .4); }
.at-title { font-size: 13px; color: var(--text-dim); }
.at-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 1px;
  background: var(--line-soft);
}
.at-stat { background: var(--bg-2); padding: 13px 16px; }
.at-stat .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.at-stat .v { font-family: var(--mono); font-size: 16px; font-weight: 600; margin-top: 3px; }

.progress-wrap { padding: 16px 20px 20px; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-faint); margin-bottom: 7px;
  font-family: var(--mono);
}
.progress {
  position: relative; height: 9px; border-radius: 999px;
  background: var(--bg-3); overflow: hidden;
  border: 1px solid var(--line);
}
.progress-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; transition: width .4s ease; }
.progress-fill.long  { background: linear-gradient(90deg, rgba(34,197,94,.35), var(--long)); }
.progress-fill.short { background: linear-gradient(90deg, var(--short), rgba(239,68,68,.35)); }
.progress-mark {
  position: absolute; top: -3px; width: 2px; height: 15px;
  background: var(--text-dim); border-radius: 2px;
}

/* ---------------------------- account grid -------------------------------- */
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.acct {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  padding: 14px;
  position: relative;
  transition: .15s;
}
.acct:hover { border-color: var(--hover-line); }
.acct.has-pos { border-color: rgba(59, 130, 246, .35); }
.acct.error { border-color: rgba(239, 68, 68, .45); }
.acct.disabled { opacity: .55; }
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.acct-name { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.acct-rows { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12.5px; }
.acct-rows .k { color: var(--text-faint); }
.acct-rows .v { font-family: var(--mono); text-align: right; }
.acct-foot { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); flex: none; }
.led.on  { background: var(--long); box-shadow: 0 0 8px rgba(34, 197, 94, .7); }
.led.off { background: var(--text-faint); }
.led.err { background: var(--short); box-shadow: 0 0 8px rgba(239, 68, 68, .7); }

/* ------------------------- per-symbol position lines ---------------------- */
/* An account can hold several markets at once, so each one gets its own block
   instead of being flattened into a single set of rows. */
.pos-line {
  margin-top: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-3);
}
.pos-line-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; font-size: 13px;
}
.pos-line-head strong { font-family: var(--mono); letter-spacing: .02em; }
.pos-line .acct-rows { font-size: 12px; }

/* -------------------------------- chips ----------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.row-dim { opacity: .5; }

/* -------------------------------- tables ---------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th {
  text-align: left; padding: 9px 12px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-faint); font-weight: 600;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--bg-2);
  position: sticky; top: 0;
}
.table th.num { text-align: right; }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.table tbody tr:hover { background: var(--hover); }
.table td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.table .empty { text-align: center; color: var(--text-faint); padding: 26px; font-style: italic; }
tr.row-primary { background: rgba(59, 130, 246, .05); }
tr.row-error td { background: rgba(239, 68, 68, .06); }

details.json { max-width: 460px; }
details.json summary { cursor: pointer; color: var(--accent-2); font-size: 11.5px; }
.code-block {
  background: var(--code-bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px; margin: 10px 0 0;
  font-family: var(--mono); font-size: 11.5px;
  max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  color: var(--code-text);
}

/* ------------------------------- kv grid ---------------------------------- */
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kv { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--bg-3); }
.kv .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); }
.kv .v { font-family: var(--mono); font-size: 13.5px; margin-top: 3px; word-break: break-word; }
.rule-note {
  margin-top: 14px; padding: 11px 13px;
  background: rgba(59, 130, 246, .07);
  border: 1px solid rgba(59, 130, 246, .22);
  border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text-dim);
}

/* --------------------- awaiting-confirmation prompt ----------------------- */
.confirm-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 14px; padding: 12px 13px;
  background: rgba(245, 158, 11, .09);
  border: 1px solid rgba(245, 158, 11, .38);
  border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text-dim);
}
.confirm-text { flex: 1 1 320px; line-height: 1.55; }
.confirm-text strong { color: var(--text); }
.confirm-actions { flex: 0 0 auto; }

/* -------------------------------- forms ----------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 13px; }
.form-grid label, .modal-body label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11.5px; color: var(--text-dim); font-weight: 550;
}
input[type="text"], input[type="number"], input[type="password"], input[type="email"], select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  outline: none;
  transition: .15s;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
select { cursor: pointer; }
.form-actions { display: flex; align-items: flex-end; gap: 8px; }
input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }

.switch-row {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}
.switch-row span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.switch-row small { font-size: 11.5px; }

.danger-zone {
  margin: 18px 0; padding: 15px;
  border: 1px solid rgba(239, 68, 68, .3);
  background: rgba(239, 68, 68, .06);
  border-radius: var(--radius-sm);
}
.danger-zone h3 { color: var(--short); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }

.steps { margin: 0; padding-left: 20px; color: var(--text-dim); font-size: 13px; }
.steps li { margin-bottom: 7px; }

/* -------------------------------- feed ------------------------------------ */
.feed { list-style: none; margin: 0; padding: 0; max-height: 620px; overflow-y: auto; }
.feed li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 8px 4px; border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
}
.feed .ts { font-family: var(--mono); font-size: 11px; color: var(--text-faint); flex: none; width: 62px; }
.feed .lvl {
  flex: none; width: 62px; font-size: 10px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase;
}
.feed .lvl.success { color: var(--long); }
.feed .lvl.info    { color: var(--accent-2); }
.feed .lvl.warning { color: var(--warn); }
.feed .lvl.error   { color: var(--short); }
.feed .msg { flex: 1; color: var(--text-dim); }
.feed .acct-name { color: var(--text-faint); font-size: 11px; }

/* -------------------------------- modal ----------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 100%; max-width: 470px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: pop .16s ease;
}
@keyframes pop { from { transform: scale(.96) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
}
.modal-head h3 { font-size: 15px; }
.modal-body { padding: 18px; display: flex; flex-direction: column; gap: 13px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* -------------------------------- toasts ---------------------------------- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  font-size: 12.5px;
  box-shadow: var(--shadow);
  max-width: 380px;
  animation: slide .2s ease;
}
.toast.success { border-left-color: var(--long); }
.toast.error   { border-left-color: var(--short); }
.toast.warning { border-left-color: var(--warn); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.skeleton {
  height: 14px; border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-3), var(--skeleton), var(--bg-3));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ------------------------------ scrollbars -------------------------------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }

@media (max-width: 860px) {
  .topbar { gap: 12px; }
  .status-cluster { margin-left: 0; }
  main { padding: 16px 12px 50px; }
  .tabs { padding: 10px 12px 0; }
}

/* ------------------------------ user chip --------------------------------- */
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 11px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
}
.user-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--long);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

/* ------------------------------ login view -------------------------------- */
.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
}

.login-card {
  width: 100%;
  max-width: 372px;
  padding: 26px 26px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-card .brand { margin-bottom: 20px; }

.login-card label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 550;
}

.login-pw { position: relative; display: block; }
.login-pw input { padding-right: 68px; }
.login-pw .btn {
  position: absolute;
  right: 5px; top: 50%;
  transform: translateY(-50%);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 10.5px;
}
.login-pw .btn:hover { transform: translateY(-50%); }

.login-submit { width: 100%; justify-content: center; padding: 10px; font-size: 13.5px; }

.login-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--short);
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .4);
  border-radius: var(--radius-sm);
}

.login-foot { margin: 16px 0 0; text-align: center; }
