/*
 * The sign-up pages (www/signup/index.html here, and vsp_suite_saas's /signup), in the sign-in page's
 * VSP People design. login.css supplies the split layout and the showcase; this file adds the
 * tokens, the page body and the sign-up card, which is the page's own form rather than Frappe's.
 * Like /login, the look is fixed light: it does not follow a stored theme.
 * The tokens are a copy of login.css's own block, not a selector added there: login.css is a
 * long-cached asset, and a browser holding an older copy would render this page unstyled.
 * Copyright (c) 2026 VSP AI and Robotics.
 */
body.vsp-page {
  --vl-paper: #f5f3ea;
  --vl-paper-2: #edeadd;
  --vl-surface: #fcfbf5;
  --vl-ink: #20241b;
  --vl-mut: #5d6354;
  --vl-faint: #8b907e;
  --vl-line: #dcdccd;
  --vl-line-strong: #c3c6b2;
  --vl-leather: #2b3023;
  --vl-leather-2: #1b2016;
  --vl-on: #f2f0e4;
  --vl-on-mut: #b4bba3;
  --vl-tan: #ff5a1f;
  --vl-tan-deep: #e04810;
  --vl-ease: cubic-bezier(.2, .7, .2, 1);
  --vl-spring: cubic-bezier(.34, 1.4, .5, 1);
  --vl-display: Fraunces, Georgia, "Times New Roman", serif;
  --vl-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --vl-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  margin: 0; min-width: 320px; min-height: 100svh;
  background: var(--vl-paper); color: var(--vl-ink); color-scheme: light;
  font-family: var(--vl-body); -webkit-font-smoothing: antialiased;
}
.vsp-page *, .vsp-page *::before, .vsp-page *::after { box-sizing: border-box; }
.vsp-page a:focus-visible, .vsp-page button:focus-visible, .vsp-page input:focus-visible { outline: 2px solid var(--vl-tan); outline-offset: 3px; }
.vsp-page .vsp-auth { overflow-y: auto; }
.vsp-page .vsp-mail { text-decoration: none; }

.vsp-su-card {
  width: 100%; max-width: 460px;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--vl-line); border-radius: 28px;
  background: var(--vl-surface); color: var(--vl-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 2px 4px rgba(32, 36, 27, .04), 0 30px 70px -34px rgba(32, 36, 27, .35);
  animation: vspCard .7s var(--vl-ease) .25s both;
}
.vsp-su-card h1 { margin: 0; font: 500 32px/1.1 var(--vl-display); letter-spacing: -.02em; color: var(--vl-ink); }
.vsp-su-lead { margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--vl-mut); }

.vsp-su-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.vsp-su-field { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.vsp-su-field > label, .vsp-su-field > legend { padding: 0; font: 500 13px/1.2 var(--vl-body); color: var(--vl-mut); }
.vsp-su-field input[type="text"], .vsp-su-field input[type="email"], .vsp-su-field input[type="tel"], .vsp-su-field select, .vsp-su-field textarea {
  width: 100%; height: 50px; padding: 0 16px;
  border: 1px solid var(--vl-line-strong); border-radius: 14px;
  background: #fff; color: var(--vl-ink); font: 400 15px/1.2 var(--vl-body);
  box-shadow: 0 1px 2px rgba(32, 36, 27, .04);
  transition: border-color .2s, box-shadow .25s var(--vl-ease);
}
.vsp-su-field textarea { height: auto; min-height: 92px; padding: 13px 16px; line-height: 1.5; resize: vertical; }
.vsp-su-field input::placeholder, .vsp-su-field textarea::placeholder { color: #a6aa98; }
.vsp-su-field input:hover, .vsp-su-field select:hover, .vsp-su-field textarea:hover { border-color: #aeb29c; }
.vsp-su-field input:focus, .vsp-su-field select:focus, .vsp-su-field textarea:focus { outline: none; border-color: var(--vl-tan); box-shadow: 0 0 0 4px rgba(255, 90, 31, .16); }
.vsp-su-field select { appearance: none; padding-right: 40px; cursor: pointer; background: #fff right 16px center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6354' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.vsp-su-hint { font-weight: 400; color: var(--vl-faint); }

/* product choices: pill toggles over real checkboxes */
.vsp-su-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vsp-su-chip { position: relative; }
.vsp-su-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vsp-su-chip label {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px;
  border: 1px solid var(--vl-line-strong); border-radius: 999px; background: #fff;
  font-size: 13.5px; font-weight: 500; color: var(--vl-ink); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.vsp-su-chip label::before { content: ""; width: 14px; height: 14px; flex: none; border: 1.5px solid var(--vl-line-strong); border-radius: 5px; background: #fff center / 10px no-repeat; transition: background-color .2s, border-color .2s; }
.vsp-su-chip input:hover + label { border-color: #aeb29c; }
.vsp-su-chip input:checked + label { border-color: var(--vl-leather); background: var(--vl-leather); color: var(--vl-on); }
.vsp-su-chip input:checked + label::before { border-color: var(--vl-tan); background-color: var(--vl-tan); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff6f0' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.vsp-su-chip input:focus-visible + label { outline: 2px solid var(--vl-tan); outline-offset: 3px; }

.vsp-su-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 50px; margin-top: 6px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--vl-tan); color: #fff6f0; font: 600 15px/1 var(--vl-body); cursor: pointer;
  box-shadow: 0 16px 34px -14px rgba(255, 90, 31, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: background-color .2s, transform .3s var(--vl-spring);
}
.vsp-su-submit::after { content: "\2192"; font-weight: 500; transition: transform .3s var(--vl-spring); }
.vsp-su-submit:hover { background: var(--vl-tan-deep); transform: translateY(-1px); }
.vsp-su-submit:hover::after { transform: translateX(3px); }
.vsp-su-submit:disabled { cursor: wait; opacity: .6; transform: none; }
.vsp-su-submit:disabled::after { content: none; }

.vsp-su-alt { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--vl-mut); }
.vsp-su-alt a { font-weight: 600; color: var(--vl-ink); text-decoration: underline; text-decoration-color: var(--vl-line-strong); text-underline-offset: 3px; }
.vsp-su-alt a:hover { text-decoration-color: var(--vl-tan); }

/* errors and the success state */
.vsp-page .field-error { display: none; margin: 0; font-size: 12.5px; font-weight: 500; color: #b42318; }
.vsp-page .field-error.visible { display: block; }
.vsp-page .form-error { display: none; margin: 0; padding: 11px 14px; border: 1px solid rgba(199, 56, 50, .35); border-radius: 14px; background: #fdf1ef; font-size: 13.5px; font-weight: 500; color: #b42318; }
.vsp-page .form-error.visible { display: block; animation: vspWiggle .4s ease-in-out; }
.vsp-page .honeypot-field { position: absolute; left: -9999px; }
.vsp-page .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.success-state { text-align: center; }
.success-state::before {
  content: ""; display: block; width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--vl-tan) center / 24px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff6f0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  box-shadow: 0 16px 34px -14px rgba(255, 90, 31, .75);
}
.success-state p { margin: 12px auto 0; max-width: 36ch; font-size: 15px; line-height: 1.6; color: var(--vl-mut); }

@media (max-width: 560px) {
  .vsp-su-card { padding: 24px 20px; border-radius: 22px; }
  .vsp-su-card h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .vsp-su-card { animation: none; }
}
