:root {
  --paper: #efe1c6;
  --paper-light: rgba(255, 250, 239, 0.72);
  --paper-warm: rgba(244, 231, 207, 0.62);
  --ink: #123a31;
  --ink-muted: #40564d;
  --gold: #b48643;
  --gold-deep: #8d6737;
  --line: rgba(96, 71, 43, 0.25);
  --line-soft: rgba(96, 71, 43, 0.16);
  --green: #0e332b;
  --green-deep: #06241e;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 1180px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.1), rgba(235, 209, 169, 0.08)),
    url("assets/landing/login/auth-bg-paper.png") center center / cover no-repeat,
    var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg,
img {
  display: block;
}

.auth-page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.auth-decor {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.auth-torn-paper {
  top: 0;
  left: 0;
  width: clamp(110px, 7.2vw, 198px);
  height: 100vh;
  object-fit: cover;
  object-position: left center;
  opacity: 0.62;
}

.auth-notebook {
  left: clamp(-430px, -7.2vw, -194px);
  bottom: clamp(-340px, -12.7vw, -235px);
  width: clamp(760px, 49vw, 1260px);
  opacity: 0.96;
}

.auth-leaves {
  top: clamp(-29px, -0.9vw, -8px);
  right: clamp(-54px, -8.9vw, 63px);
  width: clamp(338px, 32vw, 623px);
  opacity: 0.9;
  z-index: 6;
}

.auth-layout {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(520px, 0.95fr) clamp(610px, 37.2vw, 760px);
  column-gap: clamp(70px, 6.4vw, 170px);
  align-items: center;
  width: min(calc(100vw - clamp(150px, 9.7vw, 250px)), 1840px);
  min-height: 100vh;
  margin-inline: auto;
  padding-block: clamp(52px, 5.7vh, 92px) clamp(58px, 6vh, 100px);
}

.auth-story {
  position: relative;
  align-self: stretch;
  min-height: 760px;
}

.auth-brand {
  position: absolute;
  top: clamp(28px, 3.2vh, 56px);
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 1vw, 24px);
  width: fit-content;
}

.auth-brand img {
  width: clamp(68px, 3.75vw, 92px);
  height: clamp(68px, 3.75vw, 92px);
  object-fit: contain;
}

.auth-brand strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(40px, 2.08vw, 56px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
}

.auth-brand small {
  display: block;
  margin-top: 5px;
  color: rgba(45, 64, 57, 0.9);
  font-family: var(--serif);
  font-size: clamp(17px, 0.88vw, 23px);
  font-weight: 600;
  line-height: 1.08;
}

.auth-copy {
  position: absolute;
  top: 40%;
  left: clamp(12px, 1.2vw, 28px);
  max-width: clamp(560px, 32vw, 730px);
  transform: translateY(-40%);
}

.auth-eyebrow {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1vw, 24px);
  margin: 0 0 clamp(20px, 2vh, 32px);
  color: rgba(86, 80, 69, 0.95);
  font-size: clamp(14px, 0.74vw, 18px);
  font-weight: 700;
  letter-spacing: 0.42em;
}

.auth-eyebrow span {
  color: var(--gold);
  font-size: clamp(26px, 1.45vw, 36px);
  line-height: 1;
  letter-spacing: 0;
}

.auth-copy h1 {
  max-width: 680px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(78px, 4.6vw, 122px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
}

.auth-copy-divider {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 18px minmax(120px, 1fr);
  align-items: center;
  width: min(420px, 80%);
  margin: clamp(28px, 3vh, 42px) 0 clamp(20px, 2.1vh, 32px);
  color: var(--gold);
}

.auth-copy-divider span,
.auth-card-header div span,
.auth-separator span {
  display: block;
  height: 1px;
  background: rgba(149, 111, 63, 0.42);
}

.auth-copy-divider i,
.auth-card-header div i {
  display: block;
  width: 8px;
  height: 8px;
  margin-inline: auto;
  background: currentColor;
  transform: rotate(45deg);
}

.auth-copy p:not(.auth-eyebrow) {
  max-width: 640px;
  margin: 0;
  color: rgba(23, 49, 42, 0.98);
  font-family: var(--serif);
  font-size: clamp(25px, 1.45vw, 36px);
  font-weight: 600;
  line-height: 1.45;
}

.auth-card {
  position: relative;
  width: 100%;
  min-height: clamp(680px, 68vh, 800px);
  padding: clamp(38px, 3.6vh, 56px) clamp(54px, 3.4vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.36), transparent 34%),
    linear-gradient(180deg, var(--paper-light), var(--paper-warm));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -18px 34px rgba(115, 82, 41, 0.035),
    0 18px 48px rgba(62, 43, 22, 0.12);
  backdrop-filter: blur(4px);
  transform: translate(clamp(-108px, -4.8vw, -88px), -28px);
}

.auth-card-header {
  margin-bottom: clamp(30px, 3vh, 42px);
  text-align: center;
}

.auth-card-header p {
  margin: 0;
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: clamp(16px, 0.86vw, 21px);
  font-weight: 700;
  letter-spacing: 0.28em;
}

.auth-card-header div {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 18px minmax(72px, 1fr);
  align-items: center;
  width: min(300px, 62%);
  margin: 17px auto 0;
  color: var(--gold);
}

.auth-form {
  display: grid;
  gap: clamp(14px, 1.35vh, 20px);
}

.auth-form-note {
  margin: -4px 0 6px;
  color: rgba(43, 62, 55, 0.86);
  font-family: var(--serif);
  font-size: clamp(19px, 0.98vw, 24px);
  font-weight: 600;
  line-height: 1.42;
  text-align: center;
}

.auth-field {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(20px, 1.05vw, 26px);
  font-weight: 700;
}

.auth-field label {
  line-height: 1.1;
}

.auth-input-wrap {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  min-height: clamp(58px, 5.35vh, 68px);
  padding: 0 clamp(18px, 1.2vw, 24px);
  border: 1px solid rgba(82, 67, 50, 0.25);
  border-radius: 6px;
  background: rgba(255, 251, 243, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 12px rgba(61, 42, 20, 0.025);
}

.auth-input-wrap:focus-within {
  border-color: rgba(169, 130, 72, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 0 0 3px rgba(178, 137, 73, 0.12);
}

.auth-input-wrap svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: rgba(26, 60, 51, 0.82);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 0.85vw, 20px);
  font-weight: 500;
}

.auth-input-wrap input::placeholder {
  color: rgba(58, 62, 57, 0.43);
}

.auth-icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: rgba(37, 55, 49, 0.78);
}

.auth-icon-button svg {
  width: 24px;
  height: 24px;
}

.auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
  color: #8a6135;
  font-family: var(--serif);
  font-size: clamp(17px, 0.9vw, 22px);
  font-weight: 700;
}

.auth-forgot-row a:hover,
.auth-forgot-row a:focus-visible,
.auth-signup a:hover,
.auth-signup a:focus-visible {
  color: var(--gold);
}

.auth-options {
  display: flex;
  align-items: center;
  min-height: 30px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(29, 55, 48, 0.96);
  font-family: var(--serif);
  font-size: clamp(18px, 0.94vw, 23px);
  font-weight: 700;
}

.auth-remember input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.auth-remember span {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: var(--green);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 10px rgba(36, 27, 15, 0.08);
}

.auth-remember span::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 7px;
  height: 12px;
  border: solid #f0dca5;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-remember input:not(:checked) + span {
  background: rgba(255, 251, 243, 0.34);
  border: 1px solid rgba(82, 67, 50, 0.28);
}

.auth-remember input:not(:checked) + span::after {
  opacity: 0;
}

.auth-remember input:focus-visible + span {
  outline: 3px solid rgba(178, 137, 73, 0.24);
  outline-offset: 4px;
}

.auth-submit,
.auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(58px, 5.6vh, 70px);
  border-radius: 6px;
  font-family: var(--serif);
  font-size: clamp(22px, 1.16vw, 29px);
  font-weight: 700;
}

.auth-submit {
  gap: 18px;
  margin-top: 4px;
  border: 1px solid rgba(196, 153, 79, 0.36);
  background:
    radial-gradient(circle at 22% 0%, rgba(241, 221, 169, 0.17), transparent 32%),
    linear-gradient(180deg, rgba(22, 64, 54, 0.98), rgba(8, 39, 32, 1));
  color: #e7c37b;
  box-shadow:
    inset 0 1px 0 rgba(255, 237, 184, 0.18),
    inset 0 -14px 28px rgba(0, 0, 0, 0.16),
    0 15px 30px rgba(47, 31, 14, 0.18);
}

.auth-submit svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.auth-submit:hover svg,
.auth-submit:focus-visible svg {
  transform: translateX(4px);
}

.auth-separator {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: center;
  gap: 16px;
  color: rgba(52, 59, 54, 0.88);
  font-family: var(--serif);
  font-size: clamp(16px, 0.82vw, 20px);
  font-style: normal;
  text-align: center;
}

.auth-separator em {
  font-style: normal;
}

.auth-google {
  gap: 16px;
  border: 1px solid rgba(82, 67, 50, 0.25);
  background: rgba(255, 251, 243, 0.18);
  color: rgba(22, 51, 44, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.google-mark {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  background: conic-gradient(from -40deg, #4285f4 0 25%, #34a853 0 45%, #fbbc05 0 70%, #ea4335 0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-signup {
  margin: clamp(12px, 1.4vh, 22px) 0 0;
  color: rgba(29, 51, 45, 0.96);
  font-family: var(--serif);
  font-size: clamp(18px, 0.98vw, 24px);
  font-weight: 600;
  text-align: center;
}

.auth-signup a {
  margin-left: 18px;
  color: #8a6135;
  font-weight: 700;
}

.auth-submit,
.auth-google,
.auth-icon-button,
.auth-brand,
.auth-forgot-row a,
.auth-signup a {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.auth-submit:hover,
.auth-google:hover,
.auth-brand:hover,
.auth-icon-button:hover {
  transform: translateY(-1px);
}

.auth-submit:focus-visible,
.auth-google:focus-visible,
.auth-icon-button:focus-visible,
.auth-brand:focus-visible,
.auth-forgot-row a:focus-visible,
.auth-signup a:focus-visible {
  outline: 3px solid rgba(178, 137, 73, 0.24);
  outline-offset: 4px;
}

@media (min-width: 2200px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr) 800px;
    width: min(calc(100vw - 260px), 2320px);
    column-gap: 170px;
  }

  .auth-brand img {
    width: 78px;
    height: 78px;
  }

  .auth-brand strong {
    font-size: 50px;
  }

  .auth-brand small {
    font-size: 20px;
  }

  .auth-copy {
    left: 42px;
    top: 30%;
    transform: translateY(-38%);
  }

  .auth-copy h1 {
    font-size: 98px;
  }

  .auth-copy p:not(.auth-eyebrow) {
    font-size: 29px;
  }

  .auth-card {
    min-height: 760px;
    padding: 44px 64px;
    transform: translate(-300px, -28px);
  }

  .auth-notebook {
    left: -152px;
    bottom: -125px;
    width: 1132px;
  }

  .auth-leaves {
    top: -20px;
    right: -48px;
    width: 955px;
    opacity: 0.86;
  }
}

@media (max-width: 1500px) {
  .auth-layout {
    grid-template-columns: minmax(500px, 0.92fr) 610px;
    width: min(calc(100vw - 120px), 1360px);
    column-gap: 68px;
  }

  .auth-copy h1 {
    font-size: 78px;
  }

  .auth-copy p:not(.auth-eyebrow) {
    font-size: 25px;
  }

  .auth-card {
    padding-inline: 54px;
  }
}
