:root {
  --ink: #1d3039;
  --muted: #667177;
  --red: #a51c30;
  --paper: #f5f1e8;
  --line: #dcd7cd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 100vh;
}
.journal-story {
  padding: 44px clamp(32px, 5vw, 88px) 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 5% 5%, #fffdf4 0, transparent 65%),
    linear-gradient(135deg, #eeeadd, #f6f2e9);
  border-right: 1px solid var(--line);
}
.masthead {
  display: flex;
  align-items: center;
  gap: 20px;
  font:
    13px "Trebuchet MS",
    sans-serif;
  letter-spacing: 1.8px;
}
.monogram {
  font-size: 42px;
  font-weight: bold;
  letter-spacing: -4px;
  font-family: Georgia, serif;
}
.monogram span {
  color: var(--red);
}
.masthead small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 7px;
  color: var(--muted);
}
.story-copy {
  margin-top: clamp(65px, 10vh, 130px);
  z-index: 1;
  animation: arrive 0.8s both;
}
.kicker {
  font:
    9px "Trebuchet MS",
    sans-serif;
  letter-spacing: 2px;
  color: var(--red);
}
h1 {
  font-size: clamp(36px, 3.6vw, 61px);
  font-weight: normal;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin: 24px 0;
}
h1 em {
  font-weight: normal;
  color: #74736d;
}
.story-copy p {
  max-width: 400px;
  font:
    14px/1.8 "Trebuchet MS",
    sans-serif;
  color: var(--muted);
}
.economic-art {
  margin: 40px -12px 20px;
  max-width: 660px;
  animation: arrive 1.1s both;
}
.economic-art svg {
  width: 100%;
  display: block;
  overflow: visible;
}
.art-caption {
  display: flex;
  justify-content: space-between;
  padding: 0 17px;
  font:
    8px "Trebuchet MS",
    sans-serif;
  letter-spacing: 1.5px;
  color: #797d78;
}
.economic-art small {
  font:
    8px "Trebuchet MS",
    sans-serif;
  color: #868880;
  padding-left: 18px;
}
.main-curve {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw 3.5s 0.4s ease forwards;
}
.second-curve {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw 4s 1s ease forwards;
}
.dot {
  opacity: 0;
  animation: pulse 4s infinite;
}
.d1 {
  animation-delay: 1s;
}
.d2 {
  animation-delay: 1.7s;
}
.d3 {
  animation-delay: 2.3s;
}
.d4 {
  animation-delay: 3s;
}
.story-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-top: auto;
  padding-top: 35px;
  font:
    8px/1.7 "Trebuchet MS",
    sans-serif;
  letter-spacing: 1px;
  color: #7a807d;
}
.login-side {
  background: #fffdf8;
  padding: 65px 7vw 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-card {
  max-width: 410px;
  width: 100%;
  margin: 20px auto;
  animation: arrive 0.8s 0.15s both;
}
.section-number {
  font-size: 21px;
  color: var(--red);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-number span {
  font:
    9px "Trebuchet MS",
    sans-serif;
  color: var(--muted);
  letter-spacing: 1.4px;
  margin-left: 10px;
}
h2 {
  font-size: 43px;
  font-weight: normal;
  letter-spacing: -1px;
  margin: 35px 0 14px;
}
.login-intro {
  font:
    14px/1.8 "Trebuchet MS",
    sans-serif;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 355px;
}
label {
  display: block;
  font:
    12px "Trebuchet MS",
    sans-serif;
  margin: 23px 0 10px;
}
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fdfbf6;
  padding: 15px 16px;
  font:
    14px "Trebuchet MS",
    sans-serif;
  color: var(--ink);
  height: 51px;
  transition: border-color 0.2s;
}
input:focus {
  outline: 2px solid #a51c3020;
  border-color: var(--red);
}
input::placeholder {
  color: #9b9d96;
  font-size: 12px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 78px;
}
.password-wrap button {
  position: absolute;
  right: 13px;
  top: 0;
  height: 51px;
  border: 0;
  background: none;
  font:
    11px "Trebuchet MS",
    sans-serif;
  color: var(--muted);
  cursor: pointer;
}
.form-note {
  font:
    10px/1.6 "Trebuchet MS",
    sans-serif;
  color: var(--muted);
  margin: 17px 0 25px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.lock {
  font-size: 18px;
  color: var(--red);
}
.submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--red);
  color: white;
  border: 0;
  width: 100%;
  padding: 16px 19px;
  font:
    13px "Trebuchet MS",
    sans-serif;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s;
}
.submit:hover {
  background: #801626;
}
.submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
.submit span:last-child {
  font-size: 20px;
}
#login-error {
  min-height: 20px;
  font:
    12px/1.6 "Trebuchet MS",
    sans-serif;
  color: #a51c30;
}
.help {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
  font:
    11px/1.7 "Trebuchet MS",
    sans-serif;
}
.help strong {
  font-weight: normal;
  color: var(--ink);
}
.help p {
  color: var(--muted);
  max-width: 325px;
  margin: 8px 0;
}
.back-link {
  font:
    11px "Trebuchet MS",
    sans-serif;
  color: var(--muted);
  text-decoration: none;
  margin: 48px auto 0;
  max-width: 410px;
  width: 100%;
}
.back-link span {
  margin-left: 8px;
  color: var(--red);
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.25;
    r: 3;
  }
  40% {
    opacity: 1;
    r: 5;
  }
}
@media (min-height: 950px) {
  .economic-art {
    margin-top: 65px;
  }
}
@media (max-width: 1000px) {
  .login-side {
    padding: 45px 5vw;
  }
  .journal-story {
    padding: 35px 35px 25px;
  }
  .masthead {
    font-size: 10px;
    gap: 14px;
  }
  .story-footer {
    font-size: 7px;
  }
  h1 {
    font-size: 41px;
  }
}
@media (max-width: 720px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
  .journal-story {
    padding: 24px 25px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .masthead {
    font-size: 10px;
  }
  .monogram {
    font-size: 33px;
  }
  .story-copy {
    margin-top: 30px;
  }
  .kicker {
    font-size: 8px;
  }
  h1 {
    font-size: 34px;
    letter-spacing: -0.8px;
    margin: 16px 0;
  }
  h1 br:last-child {
    display: none;
  }
  .story-copy p {
    font-size: 12px;
    margin-bottom: 0;
  }
  .economic-art {
    position: absolute;
    bottom: -12px;
    right: -120px;
    width: 380px;
    opacity: 0.22;
    margin: 0;
    pointer-events: none;
  }
  .art-caption,
  .economic-art small,
  .story-footer {
    display: none;
  }
  .login-side {
    padding: 30px 25px;
  }
  .login-card {
    margin: 0 auto;
  }
  h2 {
    font-size: 35px;
    margin-top: 25px;
  }
  .login-intro {
    font-size: 12px;
    margin-bottom: 22px;
  }
  .section-number {
    padding-bottom: 15px;
  }
  .help {
    margin-top: 20px;
  }
  .back-link {
    margin-top: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .main-curve,
  .second-curve {
    stroke-dashoffset: 0;
  }
  .dot {
    opacity: 1;
  }
}
