/* toSend auth page — warm stone palette, deep plum accent (matches website/) */

:root {
  --paper: #FAFAF9;
  --paper-soft: #F5F5F4;
  --paper-deep: #E7E5E4;
  --surface: #FFFFFF;
  --ink: #1C1917;
  --ink-soft: #44403C;
  --ink-mute: #57534E;
  --line: #E7E5E4;
  --line-soft: #F5F5F4;
  --accent: #4D2243;
  --accent-ink: #FFFFFF;
  --accent-soft: #EDDAE5;
  --ok: #166534;
  --warn: #92400E;
  --err: #991B1B;
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 0 rgba(24,24,27,0.04), 0 1px 2px rgba(24,24,27,0.06);
  --shadow-md: 0 2px 0 rgba(24,24,27,0.03), 0 8px 24px -12px rgba(24,24,27,0.16);
  --shadow-lg: 0 2px 0 rgba(24,24,27,0.04), 0 24px 60px -24px rgba(24,24,27,0.24);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* ------- Page shell ------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(130%) blur(8px);
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.auth-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-nav a.auth-nav__back {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  transition: color .15s ease, background .15s ease;
}
.auth-nav a.auth-nav__back:hover {
  color: var(--ink);
  background: color-mix(in oklab, var(--ink) 5%, transparent);
}

/* Logo (matches website) */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.logo__mark {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
}
.logo__word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.logo__word span { color: var(--accent); }

/* ------- Split layout ------- */
.auth-shell {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 32px 64px;
  gap: 64px;
  align-items: center;
}

/* ------- Marketing pitch (register page aside) ------- */
.auth-aside--pitch {
  align-items: flex-start;
  justify-content: center;
}
.auth-pitch {
  max-width: 480px;
  padding: 8px 0;
}
.auth-pitch .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.auth-pitch .eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--ink-mute);
}
.auth-pitch__h1 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.auth-pitch__h1 em {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.005em;
}
.auth-pitch__sub {
  margin: 22px 0 0;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 44ch;
  text-wrap: pretty;
}
.auth-pitch__assurances {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.auth-pitch__assurances li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.auth-pitch__assurances li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

/* ------- Dashboard mock with live log feed ------- */
.auth-aside {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--body);
  position: relative;
}
.dash__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-soft);
}
.dash__bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line);
}
.dash__bar .dot.r { background: #D69A9A; }
.dash__bar .dot.y { background: #D6B77A; }
.dash__bar .dot.g { background: #9BBFA3; }
.dash__bar .addr {
  margin-left: 10px;
  flex: 1;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: 4px 10px;
  border-radius: 6px;
}

.dash__main { padding: 18px 22px 22px; }
.dash__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.dash__title-h {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.dash__title .sub {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-top: 2px;
}

/* Live pill with pulsing dot */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent) 22%, var(--line));
  background: color-mix(in oklab, var(--accent) 5%, var(--surface));
  font-size: 11.5px;
  color: color-mix(in oklab, var(--accent) 80%, var(--ink));
  font-family: var(--mono);
  letter-spacing: 0.01em;
  font-weight: 500;
  white-space: nowrap;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
  animation: auth-live-pulse 1.6s ease-out infinite;
}
@keyframes auth-live-pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
  50%      { box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 8%, transparent); }
}

/* Logs table */
.ltable {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11.5px;
}
.ltable__row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 70px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.ltable__row:first-child { border-top: none; }
.ltable__row .s {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}
.ltable__row .s.ok {
  color: var(--ok);
  border-color: color-mix(in oklab, var(--ok) 30%, var(--line));
  background: color-mix(in oklab, var(--ok) 7%, var(--paper-soft));
}
.ltable__row .s.bounce {
  color: var(--err);
  border-color: color-mix(in oklab, var(--err) 30%, var(--line));
  background: color-mix(in oklab, var(--err) 7%, var(--paper-soft));
}
.ltable__row .s.warn {
  color: var(--warn);
  border-color: color-mix(in oklab, var(--warn) 30%, var(--line));
  background: color-mix(in oklab, var(--warn) 7%, var(--paper-soft));
}
.ltable__row .email {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.ltable__row .t { color: var(--ink-mute); text-align: right; }

@keyframes auth-slide-in {
  from { transform: translateY(-8px); opacity: 0; background: color-mix(in oklab, var(--accent) 10%, transparent); }
  to   { transform: translateY(0);    opacity: 1; background: transparent; }
}
.ltable__row.new { animation: auth-slide-in .55s ease; }

@media (prefers-reduced-motion: reduce) {
  .pill .dot { animation: none; }
  .ltable__row.new { animation: none; }
}

/* ------- Auth card ------- */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 36px 32px;
  width: 100%;
  max-width: 460px;
  justify-self: end;
}
.auth-card__head { margin-bottom: 24px; }
.auth-card__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.auth-card__sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-mute);
}
.auth-card__sub a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  padding-bottom: 1px;
  transition: border-color .15s ease;
}
.auth-card__sub a:hover { border-bottom-color: var(--accent); }

/* ------- fluent_auth shortcode overrides ------- */
.fls_auth_wrapper { font-family: var(--body); }

.fls_auth_wrapper .fls_login_wrapper,
.fls_auth_wrapper .fls_registration_wrapper,
.fls_auth_wrapper .fls_reset_pass_wrapper {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  max-width: 100%;
  width: 100%;
}

.fls_auth_wrapper .hide { display: none; }

/* Field groups */
.fls_auth_wrapper .fls_field_group {
  margin-bottom: 16px;
}
.fls_auth_wrapper .fls_field_label {
  margin-bottom: 6px;
}
.fls_auth_wrapper .fls_field_label label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.fls_auth_wrapper .fls_field_label.is-required label::after {
  content: " *";
  color: var(--accent);
}

/* Inputs */
.fls_auth_wrapper input.input,
.fls_auth_wrapper input[type="text"],
.fls_auth_wrapper input[type="email"],
.fls_auth_wrapper input[type="password"],
.fls_auth_wrapper input[type="tel"],
.fls_auth_wrapper input[type="url"] {
  width: 100%;
  display: block;
  padding: 10px 12px;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.fls_auth_wrapper input.input:hover,
.fls_auth_wrapper input[type="text"]:hover,
.fls_auth_wrapper input[type="email"]:hover,
.fls_auth_wrapper input[type="password"]:hover {
  border-color: color-mix(in oklab, var(--ink) 18%, var(--line));
}
.fls_auth_wrapper input.input:focus,
.fls_auth_wrapper input[type="text"]:focus,
.fls_auth_wrapper input[type="email"]:focus,
.fls_auth_wrapper input[type="password"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}

.fls_auth_wrapper .fs_input_wrap { width: 100%; }

/* Remember me row */
.fls_auth_wrapper .login-remember {
  margin: 4px 0 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.fls_auth_wrapper .login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.fls_auth_wrapper .login-remember input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  margin: 0;
}

/* Submit buttons */
.fls_auth_wrapper .login-submit,
.fls_auth_wrapper .submit { margin-top: 20px; }

.fls_auth_wrapper .button.button-primary,
.fls_auth_wrapper input[type="submit"].button-primary,
.fls_auth_wrapper #fls_submit,
.fls_auth_wrapper #fls_verification_submit,
.fls_auth_wrapper #fls_magic_submit,
.fls_auth_wrapper button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--r-md);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  -webkit-appearance: none;
  appearance: none;
}
.fls_auth_wrapper .button.button-primary:hover,
.fls_auth_wrapper input[type="submit"].button-primary:hover,
.fls_auth_wrapper #fls_submit:hover,
.fls_auth_wrapper button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 -1px rgba(0,0,0,0.25);
  background: color-mix(in oklab, var(--accent) 92%, #000);
}
.fls_auth_wrapper .button.button-primary:active,
.fls_auth_wrapper input[type="submit"].button-primary:active,
.fls_auth_wrapper #fls_submit:active,
.fls_auth_wrapper button[type="submit"]:active {
  transform: translateY(0);
  scale: 0.98;
}

.fls_auth_wrapper .fls_loading_svg { width: 20px; height: 14px; }

/* Toggle links (Login / Signup / Reset) */
.fls_auth_wrapper p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 14px 0 0;
}
.fls_auth_wrapper p a,
.fls_auth_wrapper #fls_show_signup,
.fls_auth_wrapper #fls_show_login,
.fls_auth_wrapper #fls_show_reset_password {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  padding-bottom: 1px;
  transition: border-color .15s ease;
}
.fls_auth_wrapper p a:hover,
.fls_auth_wrapper #fls_show_signup:hover,
.fls_auth_wrapper #fls_show_login:hover,
.fls_auth_wrapper #fls_show_reset_password:hover {
  border-bottom-color: var(--accent);
}

/* Social login row, if enabled */
.fls_auth_wrapper .fls_social_login_wrapper,
.fls_auth_wrapper .fls_social_buttons {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fls_auth_wrapper .fls_social_login_wrapper a,
.fls_auth_wrapper .fls_social_buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.fls_auth_wrapper .fls_social_login_wrapper a:hover,
.fls_auth_wrapper .fls_social_buttons a:hover {
  background: var(--paper-soft);
  border-color: color-mix(in oklab, var(--ink) 18%, var(--line));
}

/* Notices / errors */
.fls_auth_wrapper .fls_form_notice,
.fls_auth_wrapper .fls_error,
.fls_auth_wrapper .login-error,
.fls_auth_wrapper .fls_alert {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--err);
  background: color-mix(in oklab, var(--err) 7%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--err) 30%, var(--line));
  border-radius: var(--r-sm);
}
.fls_auth_wrapper .fls_success {
  color: var(--ok);
  background: color-mix(in oklab, var(--ok) 7%, var(--surface));
  border-color: color-mix(in oklab, var(--ok) 30%, var(--line));
}

/* Footer */
.auth-foot {
  padding: 24px 32px 28px;
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
}
.auth-foot__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
}
.auth-foot__links {
  display: inline-flex;
  gap: 18px;
}
.auth-foot__links a {
  text-decoration: none;
  color: var(--ink-mute);
  transition: color .15s ease;
}
.auth-foot__links a:hover { color: var(--ink); }

/* ------- Responsive ------- */
@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 24px 56px;
  }
  .auth-card { justify-self: center; max-width: 460px; width: 100%; padding: 28px 24px; }
  .auth-aside { order: 1; }
  .auth-code { max-width: 540px; }
  .auth-nav__inner { padding: 0 20px; height: 56px; }
  .auth-foot__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 640px) {
  .auth-aside { display: none; }
  .auth-card { padding: 24px 20px; }
}

/* ------- fluent-security overrides -------
 * The plugin's CSS is bundled inside login_helper.js and webpack's style-loader
 * appends a <style> block to <head> at DOMContentLoaded — so it always lands
 * after this stylesheet AND uses ID selectors (e.g. .fls_login_wrapper input#wp-submit).
 * Higher specificity + !important here is the only reliable way to win.
 */
body .fls_auth_wrapper input#wp-submit,
body .fls_auth_wrapper input#wp-submit.button-primary,
body .fls_auth_wrapper #fls_magic_submit,
body .fls_auth_wrapper #fls_submit,
body .fls_auth_wrapper #fls_verification_submit,
body .fls_auth_wrapper #fls_reset_pass {
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  border-radius: var(--r-md) !important;
  color: var(--accent-ink) !important;
  padding: 12px 18px !important;
  font-family: var(--body) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
body .fls_auth_wrapper input#wp-submit:hover,
body .fls_auth_wrapper #fls_magic_submit:hover,
body .fls_auth_wrapper #fls_submit:hover,
body .fls_auth_wrapper #fls_verification_submit:hover,
body .fls_auth_wrapper #fls_reset_pass:hover {
  background: color-mix(in oklab, var(--accent) 92%, #000) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 -1px rgba(0, 0, 0, 0.25);
}
body .fls_auth_wrapper input#wp-submit:active,
body .fls_auth_wrapper #fls_magic_submit:active,
body .fls_auth_wrapper #fls_submit:active,
body .fls_auth_wrapper #fls_verification_submit:active,
body .fls_auth_wrapper #fls_reset_pass:active {
  transform: translateY(0);
  scale: 0.98;
}

/* Loading state — plugin sets background:rgba(2,117,255,.569) on .fls_loading */
body .fls_auth_wrapper #fls_submit.fls_loading,
body .fls_auth_wrapper #fls_verification_submit.fls_loading,
body .fls_auth_wrapper #fls_reset_pass.fls_loading {
  background: color-mix(in oklab, var(--accent) 60%, transparent) !important;
}

/* Inputs — plugin sets padding:10px which conflicts with my 10px 12px */
body .fls_auth_wrapper input.input,
body .fls_auth_wrapper .fls_magic_input,
body .fls_auth_wrapper .fls_registration_form input[type="text"],
body .fls_auth_wrapper .fls_registration_form input[type="email"],
body .fls_auth_wrapper .fls_registration_form input[type="password"],
body .fls_auth_wrapper .fls_reset_pass_form input {
  padding: 10px 12px !important;
  border-radius: var(--r-md) !important;
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
  font-size: 15px !important;
}
body .fls_auth_wrapper input.input:focus,
body .fls_auth_wrapper .fls_magic_input:focus,
body .fls_auth_wrapper .fls_registration_form input:focus,
body .fls_auth_wrapper .fls_reset_pass_form input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent) !important;
  outline: none !important;
}

/* The plugin sets .fls_login_wrapper { max-width: 500px } — let it stretch to the card */
body .fls_auth_wrapper .fls_login_wrapper,
body .fls_auth_wrapper .fls_registration_wrapper,
body .fls_auth_wrapper .fls_reset_pass_wrapper {
  max-width: 100% !important;
}

/* ------- [tosend_invitation] form (fcom_*) — register page -------
 * fluent-mailer's auth_public_css.css uses CSS variables for theming.
 * Override them at the form root rather than fighting selector specificity.
 */
.fcom_onboard_form {
  max-width: 100%;
  --fcom-primary-button: var(--accent);
  --fcom-primary-button-text: var(--accent-ink);
  --fcom-primary-bg: var(--surface);
  --fcom-primary-border: var(--line);
  --fcom-primary-text: var(--ink);
  --fcom-active-bg: var(--paper-soft);
  --fcom-active-border: var(--line);
  --fcom-highlight-bg: color-mix(in oklab, var(--accent) 8%, var(--surface));
  --fcom-text-link: var(--accent);
}
.fcom_onboard_header { margin-bottom: 22px; }
.fcom_onboard_header_title h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.fcom_onboard_header_title p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.fcom_form-group { margin-bottom: 16px; }
.fcom_form_label {
  display: block;
  margin-bottom: 6px;
}
.fcom_form_label label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.fcom_form_input { width: 100%; }
.fcom_form_input input[type="text"],
.fcom_form_input input[type="email"],
.fcom_form_input input[type="url"],
.fcom_form_input input[type="password"],
.fcom_form_input input[type="tel"],
.fcom_form_input select,
.fcom_form_input textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.fcom_form_input select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2357534E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.fcom_form_input textarea {
  min-height: 96px;
  resize: vertical;
  font-family: var(--body);
}
.fcom_form_input input:hover,
.fcom_form_input select:hover,
.fcom_form_input textarea:hover {
  border-color: color-mix(in oklab, var(--ink) 18%, var(--line));
}
.fcom_form_input input:focus,
.fcom_form_input select:focus,
.fcom_form_input textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}

.fcom_form-group.is-error input,
.fcom_form-group.is-error select,
.fcom_form-group.is-error textarea {
  border-color: var(--err);
}
.fcom_form-group .error.text-danger {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--err);
}

/* Submit button */
.fcom_btn.fcom_btn_primary,
.fcom_btn.fcom_btn_submit,
button.fcom_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  padding: 12px 18px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--r-md);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  -webkit-appearance: none;
  appearance: none;
}
.fcom_btn.fcom_btn_primary:hover,
.fcom_btn.fcom_btn_submit:hover,
button.fcom_btn:hover {
  background: color-mix(in oklab, var(--accent) 92%, #000);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 -1px rgba(0, 0, 0, 0.25);
}
.fcom_btn.fcom_btn_primary:active,
.fcom_btn.fcom_btn_submit:active,
button.fcom_btn:active {
  transform: translateY(0);
  scale: 0.98;
}
.fcom_btn .fls_loading_svg { color: var(--accent-ink); }

/* Sign-in link footer (rendered by shortcode) */
.fcom_signin_link {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}
.fcom_signin_link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  padding-bottom: 1px;
  transition: border-color .15s ease;
}
.fcom_signin_link a:hover {
  border-bottom-color: var(--accent);
}

/* Success state */
.fcom_completed {
  text-align: center;
  padding: 24px 0;
}
.fcom_completed h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 12px;
}
.fcom_btn.fcom_btn_success {
  background: var(--ok);
  border-color: var(--ok);
}
