/* Public start page: left form rail, large right-side introduction. */
html body.auth-screen {
  --public-sidebar-width: clamp(390px, 27.2vw, 560px);
}
html body.auth-screen main.auth-page.public-start {
  position: fixed;
  top: var(--header-height, 74px);
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: var(--public-sidebar-width) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}
html body.auth-screen main.auth-page.public-start::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #fff url("smart-tkq-start.9678f3a74575.webp") center/cover no-repeat;
  opacity: 1;
  pointer-events: none;
}
html body.auth-screen main.auth-page.public-start::after { display: none; }

/* The sidebar is one continuous column, with forms aligned to the same edge. */
html body.auth-screen .public-start .public-start-forms {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  padding: clamp(20px, 2.3vw, 40px) clamp(22px, 3.1vw, 64px) 88px;
  background: rgba(225, 240, 251, .94);
  border-right: 2px solid #b8d1e4;
  z-index: 2;
}
html body.auth-screen .public-start-forms > .public-contact,
html body.auth-screen .public-start-forms > .login-box {
  position: static;
  inset: auto;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  max-height: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: #101b49;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  opacity: 1;
}
html body.auth-screen .public-start-forms > .public-contact { order: 1; padding-bottom: clamp(16px, 1.4vw, 28px); }
html body.auth-screen .public-start-forms > .login-box {
  order: 2;
  padding-top: clamp(16px, 1.25vw, 25px);
  border-top: 2px solid #b4cde0;
}
html body.auth-screen .public-start-forms :is(h1, h2) {
  margin: 0 0 8px;
  color: #101b49;
  font-size: clamp(25px, 1.75vw, 36px);
  line-height: 1.18;
  font-weight: 700;
}
html body.auth-screen .public-start-forms .login-box > p { display: block; }
html body.auth-screen .public-start-forms :is(label, p, button, a) { opacity: 1; }
html body.auth-screen .public-start-forms label {
  display: block;
  margin: 0 0 7px;
  color: #15254c;
  font-size: clamp(13px, .82vw, 17px);
  font-weight: 600;
  line-height: 1.25;
}
html body.auth-screen .public-start-forms :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 36px;
  margin: 4px 0 0;
  padding: 7px 10px;
  color: #18324b;
  background: rgba(255,255,255,.96);
  border: 1px solid #b5cde0;
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
  box-sizing: border-box;
}
html body.auth-screen .public-start-forms input[type="checkbox"] { display: inline-block; width: auto; min-height: 0; }
html body.auth-screen .public-start-forms .home-contact-layout { display: block; margin: 0; padding: 0; }
html body.auth-screen .public-start-forms .home-contact-form {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
html body.auth-screen .public-start-forms .home-contact-form > p:not(.trace) {
  display: block;
  margin: 0 0 12px;
  color: #203557;
  font-size: clamp(13px, .85vw, 17px);
  line-height: 1.35;
}
html body.auth-screen .public-start-forms .home-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}
html body.auth-screen .public-start-forms .home-contact-fields label { margin: 0; font-size: clamp(12px, .78vw, 16px); }
html body.auth-screen .public-start-forms .contact-message { grid-column: 1 / -1; }
html body.auth-screen .public-start-forms .contact-honeypot { display: none; }
html body.auth-screen .public-start-forms textarea {
  height: clamp(68px, 7.5vh, 88px);
  min-height: clamp(68px, 7.5vh, 88px);
  resize: vertical;
  font-weight: 400;
}
html body.auth-screen .public-start-forms .trace {
  margin: 7px 0;
  color: #49657c;
  font-size: clamp(10px, .68vw, 13px);
  line-height: 1.3;
}
html body.auth-screen .public-start-forms [data-contact-captcha] { max-width: 100%; overflow-wrap: anywhere; }
html body.auth-screen .public-start-forms .contact-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  font-size: clamp(12px, .75vw, 15px);
}
html body.auth-screen .public-start-forms .contact-form-actions button,
html body.auth-screen .public-start-forms button[type="submit"] {
  min-height: 42px;
  margin-top: 2px;
  padding: 8px 18px;
  color: #fff;
  background: #123856;
  border-color: #123856;
}
html body.auth-screen .public-start-forms .contact-form-actions button { width: auto; }
html body.auth-screen .public-start-forms .login-box form > p {
  margin: 8px 0;
  color: #203557;
  font-size: clamp(13px, .86vw, 17px);
  line-height: 1.35;
}
html body.auth-screen .public-start-forms .login-box [role="status"]:empty { display: none; }
html body.auth-screen .public-start-forms .login-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 10px 0 0;
}
html body.auth-screen .public-start-forms .login-links button {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 2px 0;
  color: #123c6a;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: left;
  text-decoration: underline;
  font-size: clamp(13px, .8vw, 16px);
}
html body.auth-screen .public-start-forms button:disabled { opacity: .55; }

/* Text column: deliberate large headline and open paragraph spacing. */
html body.auth-screen .public-start .auth-introduction {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: clamp(34px, 3vw, 64px) clamp(38px, 4vw, 84px) 32px;
  color: #111a4b;
  z-index: 1;
}
html body.auth-screen .public-start .auth-introduction .home-landing-copy {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: #111a4b;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
  text-shadow: none;
}
html body.auth-screen .public-start .auth-introduction .home-landing-copy > h1 { display: none; }
html body.auth-screen .public-start .home-landing-copy .home-brand { display: none !important; }
html body.auth-screen .public-start .auth-introduction .home-landing-copy > p {
  max-width: 100%;
  margin: 0 0 clamp(20px, 2.2vw, 44px);
  padding: 0;
  color: #111a4b;
  font-size: clamp(25px, 2.05vw, 43px);
  font-weight: 400;
  line-height: 1.26;
}
html body.auth-screen .public-start .auth-introduction .home-landing-copy > p:first-of-type {
  margin-bottom: clamp(30px, 3vw, 62px);
  font-size: clamp(34px, 2.9vw, 60px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.02em;
}

html body.auth-screen .public-start .auth-introduction .home-landing-copy > .home-demonstration {
  font-weight: 700;
}

/* The legal links stay active, placed at the base of the left column. */
html body.auth-screen > .copyright {
  position: fixed;
  z-index: 5;
  right: auto;
  bottom: 0;
  left: 0;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: var(--public-sidebar-width);
  min-height: 68px;
  margin: 0;
  padding: 12px clamp(22px, 3.1vw, 64px);
  color: #12345a;
  background: rgba(225, 240, 251, .98);
  border-top: 1px solid #b4cde0;
  box-shadow: none;
  font-size: clamp(12px, .72vw, 15px);
  text-align: left;
}
html body.auth-screen > .copyright .legal-links { justify-content: flex-start; gap: clamp(8px, .9vw, 18px); }
html body.auth-screen > .copyright .legal-links button {
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
  font: inherit;
  text-align: left;
  text-decoration: underline;
}

@media (min-width: 700px) and (max-height: 820px) {
  html body.auth-screen .public-start .public-start-forms { padding-top: 16px; }
  html body.auth-screen .public-start-forms > .public-contact { padding-bottom: 12px; }
  html body.auth-screen .public-start-forms > .login-box { padding-top: 12px; }
  html body.auth-screen .public-start-forms :is(h1, h2) { margin-bottom: 5px; }
  html body.auth-screen .public-start-forms .home-contact-fields { gap: 5px 12px; }
  html body.auth-screen .public-start-forms textarea { height: 58px; min-height: 58px; }
}
@media (min-width: 700px) and (max-height: 680px) {
  html body.auth-screen .public-start-forms { padding-top: 10px; }
  html body.auth-screen .public-start-forms label { margin-bottom: 3px; }
  html body.auth-screen .public-start-forms :is(input, select, textarea) { min-height: 29px; padding: 4px 7px; }
  html body.auth-screen .public-start-forms textarea { height: 44px; min-height: 44px; }
}

/* Tablet and mobile keep the forms usable in a normal vertical page flow. */
@media (max-width: 899px) {
  html body.auth-screen { --public-sidebar-width: 100%; }
  html body.auth-screen main.auth-page.public-start {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(100dvh - var(--header-height, 74px));
    overflow: visible;
  }
  html body.auth-screen .public-start .public-start-forms {
    order: 1;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 24px clamp(18px, 5vw, 40px) 90px;
    border-right: 0;
  }
  html body.auth-screen .public-start .auth-introduction {
    order: 2;
    padding: 28px clamp(22px, 5vw, 52px) 50px;
  }
  html body.auth-screen > .copyright {
    position: relative;
    width: 100%;
    min-height: auto;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  }
  html body.auth-screen > .copyright .legal-links { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  html body.auth-screen .public-start-forms .home-contact-fields { grid-template-columns: minmax(0, 1fr); }
  html body.auth-screen .public-start-forms .contact-message { grid-column: auto; }
  html body.auth-screen .public-start .auth-introduction .home-landing-copy > p:first-of-type { font-size: clamp(29px, 8.1vw, 40px); }
  html body.auth-screen .public-start .auth-introduction .home-landing-copy > p { font-size: 19px; }
}

/* Desktop: keep the introduction entirely inside the right-hand content column. */
@media (min-width: 761px) {
  html body.auth-screen main.auth-page.public-start .auth-introduction {
    position: relative !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    inset: auto !important;
    width: 100% !important;
    height: 100%;
    min-width: 0;
    max-height: 100%;
    margin: 0 !important;
    padding: clamp(34px, 3vw, 64px) clamp(32px, 4vw, 84px) 36px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
  }
  html body.auth-screen main.auth-page.public-start .auth-introduction .home-landing-copy {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow-wrap: break-word;
  }
}

/* Legal actions appear as plain text links, matching the signed-in start page. */
html body.auth-screen > .copyright .legal-links button {
  color: #155b9b;
  text-decoration: underline;
}
