:root {
  --paper: #f4f1ea;
  --paper-raised: #fbf9f4;
  --ink: #232a26;
  --ink-soft: #626963;
  --ledger: #26302b;
  --ledger-soft: #aab3a8;
  --green: #7f927e;
  --line: #d7d1c5;
  --danger: #a64b3c;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    rgba(78, 86, 79, .045) 31px,
    rgba(78, 86, 79, .045) 32px
  );
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; }

.nv-topbar {
  height: 64px;
  border-bottom: 1px solid rgba(35, 42, 38, .11);
  background: var(--paper);
}

.nv-topbar__inner {
  width: min(1080px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nv-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nv-brand img {
  width: 32px;
  height: 32px;
}

.nv-brand__name {
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -.02em;
}

.nv-brand__note {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}

.nv-private {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
}

.nv-private span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(127, 146, 126, .13);
}

.nv-brand:focus-visible {
  outline: 3px solid rgba(127, 146, 126, .35);
  outline-offset: 4px;
  border-radius: 6px;
}

.nv-main {
  width: min(1040px, calc(100% - 48px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 64px 0 72px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(340px, .82fr);
  gap: 104px;
  align-items: center;
}

.ledger {
  position: relative;
  min-height: 520px;
  padding: 40px 42px 34px 58px;
  overflow: hidden;
  border: 1px solid rgba(28, 36, 31, .4);
  border-radius: 20px 6px 6px 20px;
  color: #eeece5;
  background: var(--ledger);
  box-shadow: 0 24px 50px rgba(35, 42, 38, .14);
  isolation: isolate;
}

.ledger::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 25px;
  width: 1px;
  background: rgba(238, 236, 229, .14);
  box-shadow: 7px 0 0 rgba(0, 0, 0, .08);
}

.ledger::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .32;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 47px,
    rgba(238, 236, 229, .045) 47px,
    rgba(238, 236, 229, .045) 48px
  );
}

.ledger__topline,
.ledger__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ledger-soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .14em;
}

.ledger__title {
  margin-top: 64px;
}

.ledger__title p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.ledger__title h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.ledger__title > span {
  display: block;
  margin-top: 9px;
  color: var(--ledger-soft);
  font-size: 12px;
}

.ledger__summary {
  margin-top: 68px;
  border-top: 1px solid rgba(238, 236, 229, .15);
}

.ledger__row {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(238, 236, 229, .1);
}

.ledger__row span {
  color: var(--ledger-soft);
  font-size: 11px;
}

.ledger__row strong {
  font-family: "SF Mono", "Roboto Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
}

.ledger__trend {
  width: 100%;
  height: 72px;
  margin-top: 20px;
  overflow: visible;
}

.ledger__grid {
  fill: none;
  stroke: rgba(238, 236, 229, .06);
  stroke-width: 1;
}

.ledger__line {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ledger__trend circle { fill: var(--green); }

.ledger__footer {
  position: absolute;
  right: 42px;
  bottom: 28px;
  left: 58px;
  letter-spacing: .08em;
}

.login-panel {
  width: 100%;
  max-width: 400px;
  justify-self: end;
}

.login-panel__kicker {
  margin: 0 0 12px;
  color: #667765;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

h1 {
  margin: 0;
  max-width: 12em;
  font-size: 36px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.045em;
}

.login-panel__intro {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.login-form {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.field { margin-bottom: 20px; }

label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 650;
}

input[type="password"] {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #c9c3b7;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper-raised);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input[type="password"]:hover { border-color: #a9a397; }

input[type="password"]:focus {
  border-color: #667765;
  background: #fffdfa;
  box-shadow: 0 0 0 4px rgba(127, 146, 126, .16);
}

.primary-button {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--ledger);
  border-radius: 8px;
  color: #f5f2ea;
  background: var(--ledger);
  font-weight: 650;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.primary-button:hover {
  border-color: #36423b;
  background: #36423b;
}

.primary-button:active { transform: translateY(1px); }

.primary-button:focus-visible {
  outline: 3px solid rgba(127, 146, 126, .42);
  outline-offset: 3px;
}

.message {
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid rgba(166, 75, 60, .24);
  border-radius: 8px;
  color: var(--danger);
  background: rgba(166, 75, 60, .055);
  font-size: 12px;
}

.message--success {
  border-color: rgba(90, 119, 86, .25);
  color: #4d694c;
  background: rgba(90, 119, 86, .06);
}

.login-panel__footnote {
  margin: 16px 0 0;
  color: #777d78;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 760px) {
  .nv-topbar__inner {
    width: calc(100% - 32px);
  }

  .nv-brand__note,
  .nv-private {
    display: none;
  }

  .nv-main {
    width: min(100% - 32px, 460px);
    min-height: auto;
    padding: 34px 0 56px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .ledger {
    min-height: 196px;
    padding: 24px 24px 22px 40px;
    border-radius: 15px 5px 5px 15px;
  }

  .ledger::before { left: 18px; }

  .ledger__title {
    margin-top: 28px;
  }

  .ledger__title p,
  .ledger__title > span,
  .ledger__trend,
  .ledger__footer {
    display: none;
  }

  .ledger__title h2 { font-size: 23px; }

  .ledger__summary {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-top: 0;
  }

  .ledger__row {
    min-height: auto;
    display: block;
    border: 0;
  }

  .ledger__row span,
  .ledger__row strong {
    display: block;
  }

  .ledger__row strong {
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: .01em;
  }

  .login-panel {
    max-width: none;
    justify-self: stretch;
  }

  h1 { font-size: 31px; }
  .login-form { margin-top: 26px; padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
