:root {
  --surface: #fffef9;
  --ink: #17312d;
  --ink-strong: #102722;
  --muted: #68736f;
  --muted-light: #8b948f;
  --line: #dcded6;
  --primary: #286e64;
  --primary-hover: #1f5e55;
  --primary-soft: #dcece7;
  --primary-faint: #edf6f3;
  --red: #b8564c;
  --font-sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

p,
h1,
h2 {
  margin: 0;
}

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

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgb(71 143 131 / 0.32);
  outline-offset: 2px;
}

.login-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(390px, 1fr) minmax(450px, 0.82fr);
  background: var(--surface);
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: 34px clamp(38px, 6vw, 88px);
  color: #edf4f0;
  background:
    radial-gradient(circle at 78% 18%, rgb(255 255 255 / 0.09), transparent 26%),
    linear-gradient(145deg, #102e29 0%, #1f5048 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 9px;
  background: rgb(255 255 255 / 0.07);
}

.brand-mark i {
  width: 2px;
  border-radius: 4px;
  background: currentColor;
}

.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 12px; }
.brand-mark i:nth-child(4) { height: 20px; }

.brand-copy {
  display: grid;
  line-height: 1.14;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 650;
}

.brand-copy small {
  margin-top: 4px;
  color: #b7c7c0;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.login-story-copy {
  z-index: 1;
  max-width: 590px;
  margin: auto 0;
}

.login-story-copy .eyebrow { color: #9fc9bb; }

.login-story-copy h1 {
  margin-top: 15px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.login-story-copy > p:not(.eyebrow) {
  max-width: 510px;
  margin-top: 21px;
  color: #bfd1cb;
  font-size: 14px;
}

.login-story-copy ul {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.login-story-copy li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d7e3df;
  font-size: 12px;
}

.login-story-copy li b { color: #93c9b6; }

.login-motif {
  position: absolute;
  right: -55px;
  bottom: -66px;
  display: flex;
  width: 310px;
  height: 260px;
  align-items: flex-end;
  gap: 14px;
  padding: 50px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.login-motif i {
  width: 8px;
  border-radius: 9px;
  background: rgb(160 204 189 / 0.2);
}

.login-motif i:nth-child(1) { height: 50px; }
.login-motif i:nth-child(2) { height: 110px; }
.login-motif i:nth-child(3) { height: 78px; }
.login-motif i:nth-child(4) { height: 150px; }
.login-motif i:nth-child(5) { height: 91px; }

.login-form-side {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 44px;
}

.login-form {
  width: min(100%, 370px);
}

.login-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 20px;
  color: var(--primary);
  border-radius: 14px;
  background: var(--primary-soft);
  font-size: 27px;
  font-weight: 700;
  transform: rotate(-28deg);
}

.login-form h2 {
  margin-top: 4px;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.login-intro {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
}

.preview-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0 4px;
  padding: 11px 12px;
  border: 1px solid rgb(48 124 109 / 0.2);
  border-radius: 10px;
  background: var(--primary-faint);
}

.preview-callout > span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.preview-callout p {
  display: grid;
  color: var(--muted);
  font-size: 9.5px;
}

.preview-callout strong {
  color: var(--ink);
  font-size: 10.5px;
}

.login-form > label {
  display: grid;
  gap: 6px;
  margin-top: 15px;
}

.login-form label > span {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.input-wrap {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.input-wrap:focus-within {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(48 124 109 / 0.1);
}

.input-wrap b {
  width: 17px;
  font-size: 12px;
  text-align: center;
}

.input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.button {
  display: flex;
  width: 100%;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  margin-top: 22px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  box-shadow: 0 7px 16px rgb(31 94 85 / 0.16);
  font-size: 13.5px;
  font-weight: 680;
  cursor: pointer;
}

.button:hover { background: var(--primary-hover); }

.login-footnote {
  margin-top: 14px;
  color: var(--muted-light);
  font-size: 9.5px;
  text-align: center;
}

.form-error {
  margin-top: 10px;
  color: var(--red);
  font-size: 10px;
}

@media (max-width: 1100px) {
  .login-page {
    grid-template-columns: minmax(350px, 0.86fr) minmax(420px, 1fr);
  }
}

@media (max-width: 820px) {
  .login-page { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-form-side {
    min-height: 100vh;
    padding: 31px 23px;
  }
}
