:root {
  color-scheme: light;
  --auth-ink: #182033;
  --auth-muted: #667085;
  --auth-faint: #98a2b3;
  --auth-line: #d9dee8;
  --auth-line-soft: #e9ecf2;
  --auth-panel: #ffffff;
  --auth-page: #f3f5f8;
  --auth-dark: #121927;
  --auth-dark-soft: #1a2435;
  --auth-primary: #3157c8;
  --auth-primary-hover: #2748ad;
  --auth-primary-soft: #eef2ff;
  --auth-danger: #c7372f;
  --auth-danger-soft: #fff5f4;
  --auth-focus: rgba(49, 87, 200, 0.15);
  --auth-font: "Aptos", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --auth-display: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

.public-auth-body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--auth-font);
  color: var(--auth-ink);
  background: var(--auth-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.public-auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(440px, .88fr);
  background: var(--auth-panel);
}

/* Product side: intentionally flat and content-led — no generic glow/blob. */
.public-auth-showcase {
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: var(--auth-dark);
  border-right: 1px solid #202c41;
}

.public-auth-showcase__inner {
  width: min(100%, 920px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(28px, 3.4vw, 48px) clamp(36px, 5.2vw, 74px) 24px;
  display: flex;
  flex-direction: column;
}

.public-auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.public-auth-brand__mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 7px 7px 3px 7px;
  background: var(--auth-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: -.025em;
}

.public-auth-brand__name {
  font-family: var(--auth-display);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.015em;
}

.public-auth-brand__subtitle {
  margin-top: 3px;
  color: #7d8796;
  font-size: 10.5px;
  line-height: 1.35;
  letter-spacing: .005em;
}

.public-auth-brand--light .public-auth-brand__mark {
  background: #f4f7fb;
  color: #172033;
}
.public-auth-brand--light .public-auth-brand__name { color: #fff; }
.public-auth-brand--light .public-auth-brand__subtitle { color: #8390a3; }
.public-auth-brand--mobile { display: none; }

.public-auth-showcase__copy {
  width: min(100%, 720px);
  margin-top: clamp(32px, 5.4vh, 58px);
}

.public-auth-eyebrow {
  margin: 0 0 12px;
  color: #88a2f1;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 780;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.public-auth-showcase__copy h1 {
  max-width: 700px;
  margin: 0;
  color: #f7f9fc;
  font-family: var(--auth-display);
  font-size: clamp(34px, 3.15vw, 49px);
  line-height: 1.01;
  letter-spacing: -.048em;
  font-weight: 735;
}

.public-auth-showcase__copy p:last-child {
  max-width: 650px;
  margin: 15px 0 0;
  color: #aab4c3;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -.005em;
}

.public-auth-workflow {
  width: min(100%, 720px);
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  color: #738095;
  font-size: 10px;
  font-weight: 680;
  white-space: nowrap;
}

.public-auth-workflow span { flex: 0 0 auto; }
.public-auth-workflow i {
  width: 14px;
  height: 1px;
  flex: 0 0 14px;
  background: #36445a;
}

.public-auth-real-screen {
  width: min(100%, 760px);
  margin: 20px -18px 0 auto;
  border: 1px solid #2b374b;
  border-radius: 14px 14px 4px 14px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.public-auth-real-screen__meta {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 13px;
  background: #192335;
  border-bottom: 1px solid #2a3548;
}

.public-auth-real-screen__meta > div { min-width: 0; }
.public-auth-real-screen__label,
.public-auth-real-screen__meta strong { display: block; }
.public-auth-real-screen__label {
  overflow: hidden;
  color: #9ca9ba;
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-auth-real-screen__meta strong {
  margin-top: 3px;
  color: #f6f8fb;
  font-size: 11px;
  letter-spacing: -.01em;
}
.public-auth-real-screen__badge {
  flex: 0 0 auto;
  color: #8fa9ff;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.public-auth-real-screen__viewport {
  height: clamp(190px, 31vh, 300px);
  overflow: hidden;
  background: #fff;
}
.public-auth-real-screen__viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.public-auth-showcase__foot {
  width: min(100%, 720px);
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #748196;
  font-size: 10.5px;
  line-height: 1.45;
}
.public-auth-showcase__foot svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: #8fa9ff;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Login side: intentionally top-weighted rather than perfectly centered. */
.public-auth-panel {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(54px, 8.4vh, 82px) clamp(36px, 5vw, 74px) 36px;
  background: #fff;
}

.public-auth-panel__inner {
  width: min(100%, 424px);
  margin-left: clamp(0px, 2vw, 34px);
}

.public-auth-heading { margin-bottom: 24px; }
.public-auth-heading__kicker {
  display: block;
  margin-bottom: 10px;
  color: #778195;
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: .13em;
}
.public-auth-heading h2 {
  margin: 0;
  color: #171f31;
  font-family: var(--auth-display);
  font-size: clamp(30px, 2.6vw, 36px);
  line-height: 1.05;
  letter-spacing: -.042em;
  font-weight: 735;
}
.public-auth-heading p {
  margin: 9px 0 0;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.55;
}

.public-auth-form { display: grid; gap: 14px; }
.public-auth-field { display: grid; gap: 7px; }
.public-auth-field label {
  color: #303a4d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.005em;
}

.public-auth-control {
  position: relative;
  display: flex;
  align-items: center;
}

.public-auth-control__icon {
  position: absolute;
  left: 13px;
  z-index: 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #8b95a5;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke-color 150ms ease;
}

.public-auth-control input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--auth-line);
  border-radius: 5px;
  padding: 11px 14px 11px 42px;
  outline: 0;
  background: #fff;
  color: #171f31;
  font-size: 13px;
  letter-spacing: -.004em;
  box-shadow: 0 1px 1px rgba(16, 24, 40, .02);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.public-auth-control--password input { padding-right: 48px; }
.public-auth-control input::placeholder { color: #a0a8b5; }
.public-auth-control input:hover { border-color: #b8c0cd; }
.public-auth-control:focus-within .public-auth-control__icon { stroke: var(--auth-primary); }
.public-auth-control input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px var(--auth-focus);
}
.public-auth-control input.is-invalid {
  border-color: var(--auth-danger);
  background: #fffdfd;
  box-shadow: 0 0 0 3px rgba(199, 55, 47, .09);
}
.public-auth-control:has(input.is-invalid) .public-auth-control__icon { stroke: var(--auth-danger); }

.public-auth-field-error {
  margin: 0;
  color: var(--auth-danger);
  font-size: 11px;
  line-height: 1.4;
}
.public-auth-field-error[hidden] { display: none; }

.public-auth-password-toggle {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #738095;
  cursor: pointer;
}
.public-auth-password-toggle:hover { background: #f3f5f8; color: #303a4d; }
.public-auth-password-toggle:focus-visible {
  outline: 2px solid var(--auth-primary);
  outline-offset: 1px;
}
.public-auth-eye {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.public-auth-submit,
.public-auth-google-button {
  width: 100%;
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 740;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}
.public-auth-submit {
  margin-top: 3px;
  border: 1px solid var(--auth-primary);
  border-radius: 12px 12px 5px 12px;
  background: var(--auth-primary);
  color: #fff;
  box-shadow: 0 7px 18px rgba(49, 87, 200, .17);
}
.public-auth-submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 150ms ease;
}
.public-auth-submit:hover:not(:disabled) {
  background: var(--auth-primary-hover);
  border-color: var(--auth-primary-hover);
  box-shadow: 0 9px 22px rgba(49, 87, 200, .21);
}
.public-auth-submit:hover:not(:disabled) svg { transform: translateX(2px); }
.public-auth-submit:active:not(:disabled),
.public-auth-google-button:active { transform: translateY(1px); }
.public-auth-submit:focus-visible,
.public-auth-google-button:focus-visible,
.public-auth-access a:focus-visible {
  outline: 2px solid var(--auth-primary);
  outline-offset: 3px;
}
.public-auth-submit:disabled { cursor: wait; opacity: .7; }
.public-auth-submit.is-loading svg { visibility: hidden; }

.public-auth-divider {
  margin: 17px 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #98a2b3;
  font-size: 10px;
  line-height: 1;
}
.public-auth-divider::before,
.public-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: var(--auth-line-soft);
}

.public-auth-google-form { margin: 0; }
.public-auth-google-button {
  border: 1px solid #cfd5df;
  border-radius: 6px;
  background: #fff;
  color: #303a4d;
  box-shadow: none;
}
.public-auth-google-button:hover { background: #f8f9fb; border-color: #aeb7c5; }
.public-auth-google-mark { width: 18px; height: 18px; flex: 0 0 18px; }
.public-auth-google-note {
  margin: 7px auto 0;
  max-width: 360px;
  color: #939cab;
  font-size: 10.5px;
  line-height: 1.48;
  text-align: center;
}

.public-auth-alert {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #efc5c2;
  border-left-width: 3px;
  border-radius: 4px 9px 9px 4px;
  padding: 11px 12px;
  background: var(--auth-danger-soft);
  color: #8f2621;
  font-size: 11.5px;
  line-height: 1.45;
}
.public-auth-alert svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 1px;
  fill: none;
  stroke: #bb332d;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.public-auth-alert strong,
.public-auth-alert span { display: block; }
.public-auth-alert strong { margin-bottom: 2px; font-size: 11.5px; }

.public-auth-access {
  margin-top: 19px;
  padding-top: 15px;
  border-top: 1px solid var(--auth-line-soft);
  color: #667085;
  font-size: 11px;
  line-height: 1.45;
}
.public-auth-access > span {
  display: block;
  margin-bottom: 8px;
  color: #7a8494;
}
.public-auth-access > div {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
}
.public-auth-access a {
  color: #35415a;
  font-weight: 720;
  text-decoration: none;
  border-bottom: 1px solid #c5cbd6;
  padding-bottom: 1px;
}
.public-auth-access a:hover { color: var(--auth-primary); border-color: var(--auth-primary); }
.public-auth-access a.public-auth-access__demo {
  color: var(--auth-primary);
  border-color: #a8b8ee;
}


.public-auth-language {
  position: absolute;
  top: 28px;
  right: clamp(28px, 4vw, 56px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a0a8b5;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
}
.public-auth-language a {
  color: #8d96a5;
  text-decoration: none;
  padding: 5px 2px 4px;
  border-bottom: 1px solid transparent;
}
.public-auth-language a:hover { color: #33405a; }
.public-auth-language a.is-active {
  color: var(--auth-primary);
  border-color: var(--auth-primary);
}
.public-auth-language a:focus-visible {
  outline: 2px solid var(--auth-primary);
  outline-offset: 3px;
}
.public-auth-language span { color: #d2d7df; }

@media (min-width: 901px) {
  html, body, .public-auth-body {
    height: 100%;
    overflow: hidden;
  }

  .public-auth-layout {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .public-auth-showcase,
  .public-auth-panel {
    height: 100%;
    min-height: 0;
  }

  .public-auth-showcase__inner {
    height: 100%;
    min-height: 0;
  }

  .public-auth-real-screen {
    flex: 0 1 auto;
  }

  .public-auth-panel {
    position: relative;
    overflow: hidden;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .public-auth-showcase__inner { padding-top: 24px; padding-bottom: 18px; }
  .public-auth-brand__mark { width: 32px; height: 32px; flex-basis: 32px; }
  .public-auth-brand__subtitle { font-size: 9.5px; }
  .public-auth-showcase__copy { margin-top: 24px; }
  .public-auth-eyebrow { margin-bottom: 9px; font-size: 9.5px; }
  .public-auth-showcase__copy h1 { font-size: clamp(31px, 2.8vw, 42px); }
  .public-auth-showcase__copy p:last-child { margin-top: 11px; font-size: 12px; line-height: 1.45; }
  .public-auth-workflow { margin-top: 12px; font-size: 9px; }
  .public-auth-real-screen { margin-top: 14px; }
  .public-auth-real-screen__meta { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
  .public-auth-real-screen__viewport { height: clamp(155px, 26vh, 205px); }
  .public-auth-showcase__foot { padding-top: 9px; font-size: 9.5px; }

  .public-auth-panel { padding-top: 45px; padding-bottom: 24px; }
  .public-auth-heading { margin-bottom: 18px; }
  .public-auth-heading__kicker { margin-bottom: 8px; }
  .public-auth-heading h2 { font-size: 30px; }
  .public-auth-heading p { margin-top: 7px; font-size: 12px; }
  .public-auth-form { gap: 11px; }
  .public-auth-control input,
  .public-auth-submit,
  .public-auth-google-button { min-height: 43px; }
  .public-auth-divider { margin: 13px 0 10px; }
  .public-auth-google-note { font-size: 9.5px; }
  .public-auth-access { margin-top: 14px; padding-top: 12px; }
  .public-auth-access > span { margin-bottom: 5px; }
}

@media (max-width: 1160px) {
  .public-auth-layout { grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr); }
  .public-auth-showcase__inner { padding-left: 44px; padding-right: 44px; }
  .public-auth-real-screen { margin-right: -12px; }
  .public-auth-workflow span:nth-of-type(5),
  .public-auth-workflow span:nth-of-type(6),
  .public-auth-workflow i:nth-of-type(4),
  .public-auth-workflow i:nth-of-type(5) { display: none; }
}

@media (max-width: 900px) {
  html, body, .public-auth-body { overflow: auto; }
  .public-auth-layout { display: block; min-height: 100vh; }
  .public-auth-showcase { display: none; }
  .public-auth-panel {
    position: relative;
    min-height: 100vh;
    padding: 48px 28px 42px;
    background: #fff;
  }
  .public-auth-panel__inner { width: min(100%, 450px); margin: 0 auto; }
  .public-auth-brand--mobile { display: flex; margin-bottom: clamp(62px, 12vh, 96px); }
  .public-auth-language { top: 28px; right: 28px; }
}

@media (max-width: 480px) {
  .public-auth-panel { padding: 24px 18px 30px; }
  .public-auth-language { top: 24px; right: 18px; }
  .public-auth-panel__inner { max-width: none; }
  .public-auth-brand--mobile { margin-bottom: 58px; }
  .public-auth-heading { margin-bottom: 27px; }
  .public-auth-heading h2 { font-size: 31px; }
  .public-auth-control input,
  .public-auth-submit,
  .public-auth-google-button { min-height: 50px; }
  .public-auth-access > div { gap: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
