@font-face { font-family: 'Sora'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('/fonts/sora-latin.woff2') format('woff2'); }

:root {
  --auth-ink: #181a17;
  --auth-muted: #666a62;
  --auth-canvas: #f4f2ec;
  --auth-surface: #fffef9;
  --auth-line: #d9dad2;
  --auth-lime: #dfff61;
  --auth-lime-deep: #b5da34;
  --auth-error: #9b352d;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { min-width: 320px; background: var(--auth-canvas); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--auth-canvas);
  color: var(--auth-ink);
  font-family: "Sora", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(181, 218, 52, 0.55);
  outline-offset: 3px;
}

.auth-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(24, 26, 23, 0.12);
}

.auth-brand {
  color: var(--auth-ink);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.auth-brand span { color: #799517; }

.auth-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-header nav a {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--auth-ink);
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
}

.auth-header nav a:last-child {
  border: 1px solid var(--auth-ink);
  background: var(--auth-lime);
  color: var(--auth-ink);
}

.auth-layout {
  width: min(1220px, calc(100% - 40px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 28px 0 46px;
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(440px, 0.82fr);
  align-items: center;
  gap: clamp(38px, 6vw, 82px);
}

.auth-context {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 620px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(102, 120, 31, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 13%, rgba(174, 139, 226, .43) 0 12%, transparent 29%),
    radial-gradient(circle at 14% 42%, rgba(255, 255, 255, .75) 0 8%, transparent 27%),
    linear-gradient(145deg, #e4f3ac 0%, #dfff61 46%, #c9e95a 100%);
  box-shadow: 0 22px 60px rgba(73, 89, 22, .12);
}

.auth-context::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -92px;
  bottom: -108px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(24, 26, 23, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255,255,255,.12), 0 0 0 76px rgba(24,26,23,.035);
}

.auth-context::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .18; background-image: radial-gradient(rgba(24,26,23,.45) .7px, transparent .7px); background-size: 17px 17px; mask-image: linear-gradient(to bottom, #000, transparent 75%); }

.auth-visual { position: absolute; top: 35px; left: 38px; right: 38px; height: 340px; }
.auth-visual-core { position: absolute; top: 87px; left: 50%; width: 174px; height: 174px; transform: translateX(-50%); display: grid; place-content: center; justify-items: center; border: 1px solid rgba(24,26,23,.15); border-radius: 50%; background: rgba(255,254,249,.92); box-shadow: 0 18px 42px rgba(64,78,19,.14); }
.auth-visual-core i { position: relative; display: block; width: 38px; height: 38px; margin-bottom: 12px; transform: rotate(45deg); }
.auth-visual-core i b { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #94b627; }
.auth-visual-core i b:nth-child(1) { top: 0; left: 0; }.auth-visual-core i b:nth-child(2) { top: 0; right: 0; }.auth-visual-core i b:nth-child(3) { bottom: 0; left: 0; }.auth-visual-core i b:nth-child(4) { right: 0; bottom: 0; }
.auth-visual-core strong { font-size: 1.25rem; letter-spacing: -.06em; }.auth-visual-core strong::first-letter { text-transform: lowercase; }
.auth-visual-core small { margin-top: 3px; color: var(--auth-muted); font-size: .66rem; }
.auth-visual-node { position: absolute; z-index: 2; min-width: 86px; padding: 10px 13px; border: 1px solid rgba(24,26,23,.16); border-radius: 999px; background: rgba(255,254,249,.86); font-size: .68rem; font-weight: 600; text-align: center; box-shadow: 0 9px 22px rgba(59,72,18,.08); }
.node-profile { top: 20px; left: 12px; }.node-articles { top: 32px; right: 0; }.node-business { bottom: 24px; left: 0; }.node-audience { right: 9px; bottom: 16px; }
.auth-visual-line { position: absolute; z-index: 1; width: 130px; height: 1px; transform-origin: left center; background: rgba(24,26,23,.28); }
.line-one { top: 76px; left: 82px; transform: rotate(22deg); }
.line-two { top: 121px; left: calc(50% + 55px); width: calc(50% - 112px); transform: rotate(-30deg); }
.line-three { bottom: 75px; left: 82px; transform: rotate(-25deg); }
.line-four { top: 218px; left: calc(50% + 58px); width: calc(50% - 116px); transform: rotate(29deg); }

.auth-kicker {
  margin: 0 0 13px;
  color: #647519;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.auth-context h1 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(2.15rem, 4.6vw, 4.15rem);
  font-weight: 450;
  letter-spacing: -0.055em;
  line-height: 1.02;
  position: relative;
  z-index: 2;
}

.auth-context > p:last-child {
  max-width: 530px;
  margin: 24px 0 0;
  color: var(--auth-muted);
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--auth-line);
  border-radius: 24px;
  background: rgba(255, 254, 249, 0.96);
  box-shadow: 0 14px 38px rgba(24, 26, 23, 0.07);
}

.auth-card-head { margin-bottom: 24px; }
.auth-card-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 650;
  letter-spacing: -0.045em;
}

.auth-card-head p,
.auth-footnote,
.auth-provider-note {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.provider-button,
.auth-submit {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.provider-button {
  border: 1px solid #c8cac1;
  background: white;
  color: var(--auth-ink);
  font-size: 0.92rem;
}

.provider-button:hover { border-color: var(--auth-ink); }
.provider-button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.55; }
.provider-button svg { width: 19px; height: 19px; flex: 0 0 auto; }

.auth-provider-note {
  min-height: 20px;
  margin-top: 8px;
  text-align: center;
}

.auth-divider {
  margin: 22px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: #85887f;
  font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after { content: ""; height: 1px; background: var(--auth-line); }

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

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-field { display: grid; gap: 7px; min-width: 0; }
.auth-field-wide { grid-column: 1 / -1; }

.auth-field > span,
.auth-field-row > span {
  color: #555a52;
  font-size: 0.8rem;
  font-weight: 500;
}

.auth-field input {
  width: 100%;
  min-width: 0;
  height: 49px;
  padding: 0 13px;
  border: 1px solid #c9cbc3;
  border-radius: 10px;
  background: #fff;
  color: var(--auth-ink);
  font-size: 1rem;
}

.auth-field input::placeholder { color: #95988f; }
.auth-field input:focus { border-color: #718b19; outline-color: rgba(181, 218, 52, 0.4); }

.password-control {
  position: relative;
  display: block;
}

.password-control input { padding-right: 50px; }

.password-control button {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5f645b;
  cursor: pointer;
}

.password-control button:hover { background: rgba(24, 26, 23, 0.06); }

.password-control button > span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 13px;
  transform: translate(-50%, -50%);
  border: 1.8px solid currentColor;
  border-radius: 55% / 70%;
}

.password-control button > span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: currentColor;
}

.password-control button[aria-label="Hide password"] > span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -3px;
  width: 24px;
  height: 2px;
  transform: rotate(-38deg);
  background: var(--auth-surface);
  box-shadow: 0 0 0 1px currentColor;
}

.subdomain-field {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #c9cbc3;
  border-radius: 10px;
  background: white;
  overflow: hidden;
}

.subdomain-field:focus-within { border-color: #718b19; outline: 3px solid rgba(181, 218, 52, 0.4); outline-offset: 3px; }
.subdomain-field input { border: 0; border-radius: 0; outline: 0 !important; }
.subdomain-field span { padding-right: 12px; color: var(--auth-muted); font-size: 0.82rem; white-space: nowrap; }

.auth-field small {
  color: var(--auth-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-field-row a { color: #777b72; font-size: 0.78rem; font-weight: 500; }

.auth-submit {
  margin-top: 4px;
  border: 1px solid var(--auth-ink);
  background: var(--auth-ink);
  color: white;
  font-size: 0.92rem;
}

.auth-submit:hover { background: #2a2d28; }
.auth-submit:disabled { cursor: wait; opacity: 0.65; }

.auth-status {
  min-height: 22px;
  margin: 0;
  color: var(--auth-error);
  font-size: 0.82rem;
  line-height: 1.5;
}

.auth-status.is-success { color: #48631e; }

.auth-footnote { margin-top: 22px; text-align: center; }
.auth-footnote a { color: var(--auth-ink); font-weight: 800; }

.auth-legal {
  margin: 17px 0 0;
  color: #777b72;
  font-size: 0.72rem;
  line-height: 1.55;
  text-align: center;
}

.auth-legal a { color: inherit; }

@media (max-width: 900px) {
  .auth-layout {
    padding-top: 42px;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 34px;
  }

  .auth-context { min-height: auto; max-width: 720px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .auth-context::before, .auth-context::after, .auth-visual { display: none; }
  .auth-context h1 { max-width: 720px; font-size: clamp(2.1rem, 7vw, 3.7rem); }
  .auth-card { max-width: 720px; justify-self: stretch; }
}

@media (max-width: 600px) {
  .auth-header { width: 100%; min-height: 62px; padding-inline: 14px; }
  .auth-header nav a:first-child { display: none; }
  .auth-header nav a { min-height: 34px; padding-inline: 11px; }
  .auth-layout { width: calc(100% - 24px); min-height: auto; padding: 30px 0 48px; gap: 26px; }
  .auth-context::before { width: 42px; height: 4px; margin-bottom: 20px; }
  .auth-context h1 { font-size: clamp(1.85rem, 9vw, 2.7rem); line-height: 1.06; }
  .auth-context > p:last-child { margin-top: 16px; font-size: 0.94rem; }
  .auth-card { padding: 22px 18px; border-radius: 18px; }
  .auth-form-grid { grid-template-columns: 1fr; }
  .auth-field-wide { grid-column: auto; }
  .subdomain-field span { font-size: 0.75rem; }
}

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