
:root {
  --paper: #f7f5f0;
  --white: #fffefa;
  --ink: #24231f;
  --muted: #77736b;
  --line: #dedbd2;
  --red: #a53b32;
  --red-dark: #842d26;
  --soft-red: #f4e8e4;
  --green: #356c4b;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.topbar {
  min-height: 76px;
  padding: 0 6.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.7px;
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-light {
  color: var(--red);
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 12px;
}

.signup-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.signup-link:hover,
.forgot-link:hover,
.mobile-signup a:hover {
  color: var(--red);
}

.page {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
}

.editorial {
  min-height: 700px;
  padding: 32px 8% 25px 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.editorial-top,
.editorial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--red);
}

.edition {
  color: #969187;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-align: right;
}

.editorial-copy {
  max-width: 590px;
  width: 100%;
  margin: 54px auto 40px;
}

.overline {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.editorial h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(46px, 5.2vw, 76px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -2.5px;
}

.editorial h1 em {
  color: var(--red);
  font-weight: 500;
}

.intro {
  max-width: 390px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.editorial-art {
  width: 100%;
  max-width: 470px;
}

.art-image {
  display: block;
  width: 100%;
  max-height: 230px;
  aspect-ratio: 1.9 / 1;
  object-fit: cover;
  background: #e8e3d9;
}

.art-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.art-caption span:first-child {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.6px;
}

.editorial-footer {
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #969187;
  font-size: 9px;
  letter-spacing: 0.5px;
}

.login-side {
  min-width: 0;
  padding: 38px 9% 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
}

.login-panel {
  width: 100%;
  max-width: 390px;
  margin: auto;
  padding: 22px 0;
}

.mobile-heading {
  display: none;
}

.section-number {
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.form-heading h2 {
  margin: 12px 0 8px;
  font-family: "Playfair Display", serif;
  font-size: 39px;
  font-weight: 600;
  letter-spacing: -1.2px;
}

.form-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.google-button {
  width: 100%;
  min-height: 49px;
  margin-top: 27px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #cfcbc1;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.google-button:hover {
  border-color: #9e998e;
  background: #fff;
}

.google-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.google-button i {
  font-size: 15px;
}

.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 23px 0;
}

.separator span {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.separator p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.field {
  margin-bottom: 18px;
}

.field label,
.label-row label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 700;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.label-row label {
  margin-bottom: 9px;
}

.forgot-link {
  margin-bottom: 9px;
  color: var(--red);
  font-size: 11px;
  text-decoration: none;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  z-index: 1;
  color: #8a857b;
  font-size: 13px;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 12px 43px;
  border: 1px solid #cfcbc1;
  border-radius: 0;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-wrap input::placeholder {
  color: #aaa59b;
}

.input-wrap input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(165, 59, 50, 0.08);
}

.input-wrap input.invalid {
  border-color: var(--red);
}

.toggle-password {
  position: absolute;
  right: 5px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #77736b;
  cursor: pointer;
}

.toggle-password:hover {
  color: var(--red);
}

.field-error {
  display: block;
  margin-top: 5px;
  color: var(--red);
  font-size: 11px;
  line-height: 1.5;
}

.field-error:empty {
  display: none;
}

.agreements {
  margin: 3px 0 17px;
}

.agreement-intro {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  color: #5f5b54;
  font-size: 11px;
  line-height: 1.65;
  cursor: pointer;
}

.check-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-check {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 1px solid #c9c4b9;
  background: var(--white);
  color: transparent;
  font-size: 9px;
  transition: background 140ms ease, border-color 140ms ease;
}

.check-row input:checked + .custom-check {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.check-row input:focus-visible + .custom-check {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.check-row a {
  color: var(--red);
  text-underline-offset: 3px;
}

.agreement-error {
  margin-left: 26px;
}

.form-message {
  margin: 12px 0;
  padding: 12px 13px;
  border: 1px solid #e6c6c0;
  background: #fbf0ed;
  color: var(--red-dark);
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.form-message.success {
  color: var(--green);
  border-color: #c8ddce;
  background: #eff6f0;
}

.submit-button {
  width: 100%;
  min-height: 51px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--red);
  border-radius: 0;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.submit-button:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.submit-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.mobile-signup {
  display: none;
}

.side-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #969187;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
}

.side-bottom i {
  margin-left: 4px;
}

@media (max-width: 1050px) {
  .page {
    grid-template-columns: minmax(0, 0.9fr) minmax(370px, 1.1fr);
  }

  .editorial {
    padding-left: 8%;
    padding-right: 7%;
  }

  .editorial h1 {
    font-size: clamp(43px, 5.4vw, 65px);
  }

  .login-side {
    padding-left: 7%;
    padding-right: 7%;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 68px;
    padding: 0 20px;
  }

  .brand {
    font-size: 15px;
    gap: 7px;
  }

  .brand-logo {
    width: 27px;
    height: 27px;
  }

  .topbar-right > span {
    display: none;
  }

  .page {
    min-height: calc(100vh - 68px);
    display: block;
  }

  .editorial {
    display: none;
  }

  .login-side {
    min-height: calc(100vh - 68px);
    padding: 25px 22px 20px;
  }

  .login-panel {
    max-width: 430px;
    padding: 8px 0 30px;
  }

  .mobile-heading {
    display: block;
    margin-bottom: 25px;
  }

  .form-heading h2 {
    font-size: 36px;
  }

  .google-button {
    margin-top: 24px;
  }

  .mobile-signup {
    display: block;
    margin-top: 25px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
  }

  .mobile-signup a {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
  }

  .side-bottom {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
    font-size: 8px;
  }
}

@media (max-width: 360px) {
  .topbar {
    padding: 0 13px;
  }

  .brand {
    font-size: 13px;
  }

  .signup-link {
    font-size: 11px;
  }

  .login-side {
    padding-left: 17px;
    padding-right: 17px;
  }

  .form-heading h2 {
    font-size: 32px;
  }

  .side-bottom {
    letter-spacing: 0.5px;
  }
}

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