@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-regular.e092f17f85b5.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-semibold.6a7880ce1bd9.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-bold.a06d959f6e5f.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif.e3050bd0cf1b.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --warm: #f2ebe3;
  --paper: #fcfcf8;
  --ink: #333333;
  --muted: #6f6f6a;
  --deep: #14343a;
  --line: rgba(20, 52, 58, 0.15);
  --yellow: #fcb823;
  --green: #4e9f5a;
  --red: #d65d48;
  --shadow: 0 24px 70px rgba(38, 33, 28, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--warm);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--warm) url("assets/cta-bg.cab0e4ee0f5a.png") right bottom / min(1100px, 78vw) auto no-repeat;
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(242, 235, 227, 0.58);
  content: "";
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  max-width: 560px;
  font-size: 58px;
}

h2 {
  font-size: 34px;
}

p {
  color: var(--muted);
}

.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(708px, calc(100% - 40px));
  height: min-content;
  padding: 12px 12px 12px 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 0.602px 0.602px -1.25px rgba(0, 0, 0, 0.18), 0 2.289px 2.289px -2.5px rgba(0, 0, 0, 0.16), 0 10px 10px -3.75px rgba(0, 0, 0, 0.06);
  transform: translateX(-50%);
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.brand {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 53px;
  padding: 10px 0 10px 10px;
}

.brand img {
  width: 24px;
  height: 33px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex: none;
  justify-content: center;
  gap: 20px;
  color: #333333;
  font-size: 14px;
}

.nav-links a {
  line-height: 1.5;
}

.nav-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--deep);
  color: #ffffff;
}

.header-cta {
  flex: none;
  width: 135px;
  padding: 0;
}

.auth-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 124px 20px 56px;
}

.auth-shell {
  display: grid;
  width: min(430px, 100%);
  margin: 0 auto;
}

.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(252, 252, 248, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.auth-card {
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(20, 52, 58, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.auth-tabs button,
.auth-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.auth-tabs button.active {
  background: var(--deep);
  color: #fff;
}

.auth-heading {
  display: grid;
  gap: 8px;
}

.intuit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(44, 160, 28, 0.3);
  border-radius: 8px;
  background: #ffffff;
  color: #1f2525;
  font-weight: 700;
}

.intuit-button span {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  height: 24px;
  border-radius: 999px;
  background: #2ca01c;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.divider span {
  height: 1px;
  background: rgba(20, 52, 58, 0.12);
}

.divider em {
  font-style: normal;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #3d4643;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(20, 52, 58, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  outline: 0;
}

.auth-form input:focus {
  border-color: rgba(20, 52, 58, 0.42);
  box-shadow: 0 0 0 3px rgba(20, 52, 58, 0.08);
}

.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.submit-button {
  width: 100%;
  margin-top: 4px;
}

.auth-note {
  text-align: center;
}

.auth-note a,
.auth-note button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--deep);
  font-weight: 700;
}

body[data-auth-mode="login"] [data-signup-only] {
  display: none;
}

@media (max-width: 900px) {
  .auth-shell {
    width: min(430px, 100%);
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
  }

  .nav-links {
    display: none;
  }

  .auth-main {
    padding-top: 118px;
  }
}

@media (max-width: 520px) {
  body::before {
    background-size: 900px auto;
  }

  .auth-main {
    padding-right: 12px;
    padding-left: 12px;
  }

  h1 {
    font-size: 38px;
  }

  .auth-card {
    padding: 20px;
    border-radius: 14px;
  }

  .name-grid {
    grid-template-columns: 1fr;
  }
}
