:root {
  --flow-ink: #102b29;
  --flow-deep: #0e3532;
  --flow-acid: #c8ff58;
  --flow-mint: #eaf7f3;
  --flow-line: #dfe9e6;
  --flow-muted: #6c7e7b;
}

.saas-auth-shell,
.saas-register-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.1fr);
  background: #f7faf9;
  color: var(--flow-ink);
}

.saas-auth-story,
.saas-register-value {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(32px, 5vw, 72px);
  background:
    radial-gradient(circle at 88% 15%, rgba(200,255,88,.14), transparent 27%),
    var(--flow-deep);
  color: #fff;
}

.saas-auth-brand .brand-lockup,
.saas-auth-brand .brand-word,
.saas-auth-brand .brand-sub {
  color: #fff;
}

.saas-auth-copy,
.saas-register-value > div:nth-child(2) {
  max-width: 600px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: #6a817d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.saas-auth-story .eyebrow,
.saas-register-value .eyebrow {
  color: var(--flow-acid);
}

.saas-auth-copy h1,
.saas-register-value h1 {
  max-width: 720px;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}

.saas-auth-copy > p,
.saas-register-value > div > p {
  max-width: 580px;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.65;
}

.saas-auth-copy ul {
  display: grid;
  gap: 18px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.saas-auth-copy li,
.saas-feature-list > div {
  display: grid;
  gap: 3px;
}

.saas-auth-copy li strong,
.saas-feature-list strong {
  color: #fff;
  font-size: 14px;
}

.saas-auth-copy li span,
.saas-feature-list span {
  color: rgba(255,255,255,.58);
  font-size: 13px;
  line-height: 1.45;
}

.saas-auth-story > small,
.saas-register-value > small {
  color: rgba(255,255,255,.48);
}

.saas-auth-panel,
.saas-register-panel {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(28px, 6vw, 84px);
}

.saas-auth-form-card {
  width: min(100%, 470px);
}

.saas-register-card {
  width: min(100%, 680px);
}

.saas-auth-form-card h2,
.saas-register-card h2,
.onboarding-card h1 {
  margin: 0 0 10px;
  color: var(--flow-ink);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.saas-auth-form-card > p,
.saas-register-card > p,
.onboarding-card > p {
  margin: 0 0 30px;
  color: var(--flow-muted);
  line-height: 1.55;
}

.saas-auth-form-card .auth-form,
.company-register-form,
.onboarding-form {
  display: grid;
  gap: 16px;
}

.saas-auth-form-card label,
.company-register-form label,
.onboarding-form label {
  display: grid;
  gap: 7px;
  color: var(--flow-ink);
  font-size: 12px;
  font-weight: 700;
}

.company-register-form input,
.company-register-form select,
.onboarding-form input,
.onboarding-form select,
.saas-auth-form-card input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--flow-line);
  border-radius: 10px;
  background: #fff;
  color: var(--flow-ink);
  padding: 0 13px;
  font: inherit;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.company-register-form input:focus,
.company-register-form select:focus,
.onboarding-form input:focus,
.onboarding-form select:focus,
.saas-auth-form-card input:focus {
  border-color: #5ca69a;
  box-shadow: 0 0 0 3px rgba(16,117,101,.08);
}

.form-grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.language-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--flow-ink);
  font-size: 12px;
  font-weight: 700;
}

.language-multi-select {
  position: relative;
  min-width: 0;
}

.language-multi-select summary {
  min-height: 46px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--flow-line);
  border-radius: 10px;
  background: #fff;
  color: #78857f;
  padding: 0 13px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.language-multi-select summary::-webkit-details-marker {
  display: none;
}

.language-multi-select summary.has-value {
  color: var(--flow-ink);
}

.language-multi-select summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-multi-select summary i {
  flex: 0 0 auto;
  color: #697871;
  font-size: 16px;
  font-style: normal;
  transition: transform .16s ease;
}

.language-multi-select[open] summary {
  border-color: #5ca69a;
  box-shadow: 0 0 0 3px rgba(16,117,101,.08);
}

.language-multi-select[open] summary i {
  transform: rotate(180deg);
}

.language-multi-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--flow-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(24, 33, 47, .14);
}

.company-register-form .language-multi-option {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

.company-register-form .language-multi-option:hover {
  background: #f4f7f6;
}

.company-register-form .language-multi-option input {
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: #5d43eb;
}

.company-register-form .language-multi-option span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #53615c;
  font-size: 12px;
  white-space: nowrap;
}

.company-register-form .language-multi-option strong {
  min-width: 30px;
  color: var(--flow-ink);
  font-size: 11px;
  letter-spacing: .02em;
}

.saas-auth-submit,
.saas-auth-secondary {
  width: 100%;
  min-height: 46px;
  justify-content: center;
}

.saas-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 14px;
  color: #94a39f;
  font-size: 11px;
}

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

.saas-auth-secondary {
  border-color: var(--flow-line);
  background: #fff;
  color: var(--flow-ink);
  text-decoration: none;
}

.saas-auth-switch {
  margin: 24px 0 0 !important;
  text-align: center;
  font-size: 13px;
}

.saas-auth-switch a {
  color: #087b6d;
  font-weight: 700;
}

.saas-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  margin-top: 42px;
}

.company-terms {
  grid-template-columns: 18px 1fr !important;
  align-items: start;
  font-weight: 500 !important;
  line-height: 1.5;
}

.company-terms input {
  min-height: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.saas-success-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--flow-acid);
  color: var(--flow-deep);
  font-size: 24px;
  font-weight: 900;
}

.onboarding-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(circle at 50% -10%, rgba(200,255,88,.16), transparent 30%),
    #f5f9f7;
}

.onboarding-card {
  width: min(100%, 620px);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--flow-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(11,52,47,.08);
}

.onboarding-card .auth-brand {
  margin-bottom: 40px;
}

.onboarding-rule {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #d7ebe6;
  border-radius: 10px;
  background: var(--flow-mint);
}

.onboarding-rule strong {
  color: #0a6f63;
  font-size: 12px;
}

.onboarding-rule span {
  color: #5c726d;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .saas-auth-shell,
  .saas-register-shell {
    grid-template-columns: 1fr;
  }

  .saas-auth-story,
  .saas-register-value {
    min-height: auto;
    gap: 44px;
    padding: 32px 24px 42px;
  }

  .saas-auth-copy h1,
  .saas-register-value h1 {
    font-size: clamp(40px, 11vw, 62px);
  }

  .saas-auth-panel,
  .saas-register-panel {
    min-height: auto;
    padding: 44px 22px 64px;
  }
}

@media (max-width: 560px) {
  .form-grid.two,
  .saas-feature-list {
    grid-template-columns: 1fr;
  }

  .language-multi-options {
    grid-template-columns: 1fr;
  }

  .saas-auth-copy h1,
  .saas-register-value h1 {
    font-size: 42px;
  }
}
