:root {
  --fp-paper: #f8f7f2;
  --fp-surface: #fff;
  --fp-ink: #111;
  --fp-muted: #686862;
  --fp-line: #d8d6cf;
  --fp-red: #d52b1e;
  --fp-yellow: #f2c230;
  --fp-blue: #2456a6;
  --fp-green: #2f6b4f;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; color-scheme: light; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--fp-ink);
  background: var(--fp-paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }

.public-shell {
  display: grid;
  grid-template-columns: minmax(330px, .88fr) minmax(440px, 1.12fr);
  width: min(1160px, calc(100% - 40px));
  min-height: 660px;
  margin: max(24px, 4vh) auto;
  background: var(--fp-surface);
  border-top: 10px solid var(--fp-ink);
  border-bottom: 1px solid var(--fp-ink);
}

.public-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 42px;
  overflow: hidden;
  background: var(--fp-paper);
  border-right: 1px solid var(--fp-ink);
}

.public-aside::after {
  position: absolute;
  right: -42px;
  bottom: 35px;
  width: 210px;
  height: 210px;
  content: "";
  background: var(--fp-ink);
  transform: rotate(-7deg);
}

.public-aside::before {
  position: absolute;
  right: 132px;
  bottom: 82px;
  z-index: 1;
  width: 54px;
  height: 190px;
  content: "";
  background: var(--fp-red);
  transform: rotate(9deg);
}

.public-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  color: var(--fp-ink);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .14em;
  text-decoration: none;
}

.public-brand::before {
  width: 25px;
  height: 25px;
  content: "";
  background: var(--fp-ink);
}

.public-brand::after {
  position: absolute;
  top: -7px;
  left: 17px;
  width: 9px;
  height: 35px;
  content: "";
  background: var(--fp-red);
  transform: rotate(19deg);
  transform-origin: center;
}

.public-aside-copy {
  position: relative;
  z-index: 2;
  max-width: 360px;
  margin: 68px 0 auto;
}

.public-aside-copy::after {
  position: absolute;
  top: -44px;
  left: 3px;
  width: 17px;
  height: 17px;
  content: "";
  background: var(--fp-yellow);
  border-radius: 50%;
}

.public-aside-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4.2vw, 54px);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.055em;
}

.public-aside-copy p {
  max-width: 310px;
  margin: 0;
  color: var(--fp-muted);
  font-size: 15px;
  line-height: 1.6;
}

.public-aside-meta {
  position: relative;
  z-index: 2;
  width: fit-content;
  padding-top: 9px;
  color: var(--fp-ink);
  border-top: 3px solid var(--fp-blue);
  font-family: Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.public-main {
  display: flex;
  align-items: center;
  padding: clamp(36px, 6vw, 72px);
}

.public-card { width: 100%; max-width: 510px; margin: 0 auto; }

.public-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--fp-ink);
  font-family: Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.public-kicker::before { width: 10px; height: 10px; content: ""; background: var(--fp-red); }

.public-card h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.05em;
}

.public-card .subtitle { margin: 0 0 30px; color: var(--fp-muted); line-height: 1.55; }
.form-group { margin-bottom: 17px; }

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--fp-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .025em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--fp-ink);
  background: var(--fp-surface);
  border: 1px solid var(--fp-ink);
  border-radius: 0;
  outline: none;
  transition: border-color .14s ease, background .14s ease;
}

.form-group textarea { min-height: 100px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  background: #fffdf1;
  border-color: var(--fp-red);
  outline: 3px solid var(--fp-yellow);
  outline-offset: 1px;
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.consent-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 11px; align-items: start; margin: 4px 0 18px; }
.consent-row input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; margin: 2px 0 0; padding: 0; accent-color: var(--fp-red); }
.consent-row label { color: #41413d; font-size: 13px; font-weight: 650; line-height: 1.45; cursor: pointer; }

.public-button {
  width: 100%;
  min-height: 51px;
  margin-top: 4px;
  padding: 0 18px;
  color: #fff;
  background: var(--fp-red);
  border: 1px solid var(--fp-red);
  border-radius: 0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .075em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .14s ease, background .14s ease, border-color .14s ease;
}

.public-button:hover,
.public-button:focus-visible { color: var(--fp-ink); background: var(--fp-yellow); border-color: var(--fp-ink); }

.error-msg {
  margin-bottom: 20px;
  padding: 13px 15px;
  color: var(--fp-ink);
  background: #fff0ee;
  border: 1px solid var(--fp-ink);
  border-left: 8px solid var(--fp-red);
  border-radius: 0;
  font-size: 13px;
}

.public-links { margin-top: 20px; color: var(--fp-muted); font-size: 13px; text-align: center; }
.public-links a { color: var(--fp-ink); font-weight: 800; text-decoration: underline; text-decoration-color: var(--fp-red); text-underline-offset: 4px; }
.public-links a:hover { color: var(--fp-red); }
.user-info { margin-bottom: 24px; padding: 13px 15px; color: var(--fp-muted); background: var(--fp-paper); border-left: 6px solid var(--fp-blue); font-size: 13px; }
.user-info strong { color: var(--fp-ink); }
.inline-form { display: inline; }
.link-button { padding: 0; color: var(--fp-ink); background: none; border: 0; font-weight: 800; text-decoration: underline; text-decoration-color: var(--fp-red); text-underline-offset: 4px; cursor: pointer; }
.link-button:hover { color: var(--fp-red); }
.confirm { text-align: center; }
.confirm .public-kicker { justify-content: center; }
.confirm-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 22px; color: var(--fp-ink); background: var(--fp-yellow); border: 2px solid var(--fp-ink); font-size: 31px; font-weight: 900; }
.lead-id { margin: 18px 0 24px; color: var(--fp-muted); font-family: Consolas, monospace; font-size: 12px; }
.public-button.is-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

@media (max-width: 780px) {
  .public-shell { grid-template-columns: 1fr; width: calc(100% - 28px); margin: 14px auto; border-top-width: 8px; }
  .public-aside { min-height: 280px; padding: 30px; border-right: 0; border-bottom: 1px solid var(--fp-ink); }
  .public-aside::after { right: -30px; bottom: 24px; width: 150px; height: 150px; }
  .public-aside::before { right: 91px; bottom: 50px; width: 38px; height: 135px; }
  .public-aside-copy { max-width: calc(100% - 150px); margin: 48px 0 0; }
  .public-aside-copy h2 { font-size: 38px; }
  .public-aside-meta { display: none; }
  .public-main { padding: 38px 26px 46px; }
}

@media (max-width: 480px) {
  .public-shell { width: calc(100% - 18px); }
  .public-aside { min-height: 168px; padding: 24px; }
  .public-aside::after { right: -37px; bottom: 18px; width: 112px; height: 112px; }
  .public-aside::before { right: 62px; bottom: 33px; width: 27px; height: 95px; }
  .public-aside-copy { margin-top: 30px; }
  .public-aside-copy h2 { margin: 0; font-size: 30px; }
  .public-aside-copy p, .public-aside-copy::after { display: none; }
  .public-main { padding: 32px 20px 40px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Elegant Suprematism: the auth flow uses the same red axis and tonal planes. */
:root {
  --fp-paper: #faf9f5;
  --fp-surface: #fffefa;
  --fp-panel: #f3f2ed;
  --fp-line: #d9d7d0;
}

body { background: var(--fp-paper); }

.public-shell {
  position: relative;
  grid-template-columns: minmax(300px, 31%) minmax(440px, 1fr);
  width: min(1220px, calc(100% - 40px));
  min-height: 680px;
  background: var(--fp-surface);
  border: 1px solid var(--fp-line);
}

.public-aside {
  padding: 44px;
  background: var(--fp-panel);
  border-right: 1px solid var(--fp-red);
}
.public-aside::before { display: none; }
.public-aside::after { top: 72px; right: -5px; bottom: auto; z-index: 3; width: 10px; height: 10px; background: var(--fp-ink); transform: none; }

.public-brand { gap: 12px; font-size: 12px; font-weight: 750; }
.public-brand::before { width: 15px; height: 15px; background: var(--fp-red); }
.public-brand::after { display: none; }
.public-aside-copy { margin-top: 74px; }
.public-aside-copy::after { display: none; }
.public-aside-copy h2 { font-size: clamp(34px, 3.7vw, 50px); font-weight: 620; line-height: 1.03; }
.public-aside-meta { border-top: 1px solid var(--fp-ink); }

.public-main { padding: clamp(38px, 6vw, 76px); }
.public-card h1 { font-size: clamp(34px, 3.6vw, 46px); font-weight: 620; line-height: 1.04; }
.public-kicker::before { width: 34px; height: 1px; background: var(--fp-ink); }

.form-group input,
.form-group textarea,
.form-group select { background: var(--fp-surface); border-color: var(--fp-line); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { background: #fff; border-color: var(--fp-red); outline: 2px solid var(--fp-red); outline-offset: 1px; }
.public-button:hover,
.public-button:focus-visible { color: #fff; background: var(--fp-ink); border-color: var(--fp-ink); }
.user-info { border-left-color: var(--fp-red); }
.confirm-icon { color: #fff; background: var(--fp-red); border: 0; }

@media (max-width: 780px) {
  .public-shell { grid-template-columns: 1fr; border-top: 1px solid var(--fp-line); }
  .public-aside { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--fp-red); }
  .public-aside::after { top: auto; right: 34px; bottom: -5px; }
  .public-aside-copy { max-width: 520px; margin-top: 42px; }
}

@media (max-width: 480px) {
  .public-aside { min-height: 160px; }
  .public-aside-copy { margin-top: 28px; }
}
