.page {
  --login-mint: #8ee1d1;
  --login-deep: #071814;
  --login-panel: #0a564c;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(480px, .96fr);
  background: var(--login-deep);
  color: #fff;
}

.story,
.auth {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.story {
  overflow: hidden;
  padding: clamp(42px, 7vw, 92px) clamp(34px, 7vw, 76px);
  background: var(--login-panel);
}

.storyContent {
  width: min(100%, 485px);
  margin: auto;
}

.story h1 {
  max-width: 445px;
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.story p {
  max-width: 430px;
  margin: 24px 0 0;
  color: #c2f3e9;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.55;
}

.chart {
  width: 100%;
  height: auto;
  margin-top: clamp(42px, 8vh, 78px);
  overflow: visible;
}

.gridLine {
  stroke: rgba(207, 244, 236, .17);
  stroke-width: 1;
}

.area {
  fill: rgba(157, 217, 206, .17);
}

.line {
  fill: none;
  stroke: #e6a12b;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pointHalo {
  fill: rgba(230, 161, 43, .15);
  stroke: rgba(230, 161, 43, .45);
}

.point {
  fill: #e6a12b;
}

.auth {
  padding: 48px clamp(42px, 8vw, 92px);
  background: var(--login-deep);
}

.card {
  width: min(100%, 510px);
  margin: auto;
}

.card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 3vw, 43px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.intro {
  max-width: 440px;
  margin: 12px 0 32px;
  color: #83bcb1;
  font-size: 16px;
  line-height: 1.5;
}

.form {
  display: grid;
  gap: 19px;
}

.fieldLabel {
  display: grid;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.input,
.passwordField {
  width: 100%;
  height: 54px;
  color: #edf8f5;
  background: #11251f;
  border: 1px solid #233e36;
  border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input {
  padding: 0 16px;
  font: 400 15px/1 var(--font-sans);
}

.input::placeholder { color: #72827d; }

.input:focus,
.passwordField:focus-within {
  border-color: #58ad9d;
  box-shadow: 0 0 0 3px rgba(88, 173, 157, .14);
  outline: none;
}

.passwordField {
  display: flex;
  align-items: center;
}

.passwordField .input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.reveal {
  height: 100%;
  padding: 0 17px;
  color: #8bbeb5;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: 600 13px/1 var(--font-sans);
}

.options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 1px 4px 4px;
  color: #9bc8c0;
  font-size: 13px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0f7669;
}

.forgot {
  color: var(--login-mint);
  font-weight: 700;
  text-decoration: none;
}

.forgot:hover { text-decoration: underline; }

.error {
  margin: -3px 0 0;
  padding: 10px 12px;
  color: #ffb9ae;
  background: rgba(176, 58, 46, .18);
  border-left: 3px solid #d66b5e;
  font-size: 13px;
}

.submit {
  height: 55px;
  margin-top: 2px;
  color: #fff;
  background: #0c6156;
  border: 1px solid #0c6156;
  border-radius: 10px;
  cursor: pointer;
  font: 700 15px/1 var(--font-sans);
  transition: background .2s ease, transform .2s ease;
}

.submit:hover:not(:disabled) {
  background: #117568;
  transform: translateY(-1px);
}

.submit:disabled { cursor: wait; opacity: .65; }

.note {
  margin: 0;
  color: #82aaa3;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 820px) {
  .page { grid-template-columns: 1fr; }
  .story { min-height: auto; padding: 44px 28px 36px; }
  .storyContent { width: 100%; }
  .story h1 { max-width: 560px; font-size: clamp(34px, 8vw, 48px); }
  .story p { margin-top: 18px; }
  .chart { max-width: 560px; margin-top: 34px; }
  .auth { min-height: auto; padding: 56px 28px 64px; }
  .card { width: min(100%, 560px); }
}

@media (max-width: 480px) {
  .story { padding: 36px 20px 30px; }
  .story h1 { font-size: 35px; }
  .story p { font-size: 15px; }
  .chart { margin-top: 28px; }
  .auth { padding: 44px 20px 52px; }
  .card h2 { font-size: 32px; }
  .intro { margin-bottom: 28px; }
  .options { align-items: flex-start; flex-direction: column; gap: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .input, .passwordField, .submit { transition: none; }
}
