/* The Flow sign-in page (login.js), in the style of a corporate single sign-on page: a soft background,
   a coloured panel with the logo, and a white card overlapping it. Every colour and word can be the
   organisation's own (Flow Admin > Org settings > Sign-in page): --sso-panel, --sso-button. */
body { margin: 0; background: #ececec; }
.site-foot { display: none; }
.sso {
  --sso-panel: #0f2b38; --sso-button: #0f6cbd;
  min-height: 100vh; display: grid; grid-template-rows: 1fr auto;
  background-color: #ececec; background-size: cover; background-position: center;
  font-family: "Segoe UI Variable Text", "Segoe UI", "Aptos", ui-sans-serif, system-ui, -apple-system, sans-serif;
}
.sso__stage { display: grid; place-items: center; padding: 48px 20px; }
.sso__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; width: min(1100px, 100%); }
.sso__panel {
  background: var(--sso-panel); color: #fff; min-height: 330px; padding: 48px 40px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 18px; box-shadow: 0 2px 14px rgb(0 0 0 / 0.08);
}
.sso__panel img { max-width: 200px; max-height: 110px; object-fit: contain; }
.sso__panel .sso__mark { width: 92px; height: 92px; border-radius: 22px; }
.sso__panel h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: #fff; text-transform: none; font-stretch: normal; }
.sso__panel hr { width: 70%; border: 0; border-top: 1.5px solid currentColor; opacity: 0.45; margin: 4px 0 0; }
.sso__card {
  background: #fff; min-height: 400px; padding: 56px 64px 34px; box-shadow: 0 4px 24px rgb(0 0 0 / 0.12);
  display: flex; flex-direction: column; justify-content: center; margin-left: -1px;
}
.sso__card form { display: grid; gap: 22px; width: 100%; max-width: 420px; margin: 0 auto; }
.sso__card h2 { margin: 0 0 14px; text-align: center; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 400; color: #5f6670; letter-spacing: -0.01em; }
.sso__card p { margin: 0; }
.sso__card .hint { color: #6b7280; font-size: 0.92rem; text-align: center; }
.sso__card .error { color: #c50f1f; font-size: 0.9rem; min-height: 0; text-align: center; }
.sso__card .error:empty { display: none; }
/* Underlined fields with an icon, like the reference. */
.sso-field { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #d3d6da; padding: 6px 2px; }
.sso-field:focus-within { border-bottom-color: var(--sso-button); box-shadow: 0 1px 0 var(--sso-button); }
.sso-field svg { flex: none; width: 26px; height: 26px; color: #6b7280; }
.sso-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.2rem; color: #1f2328; padding: 6px 0; }
.sso-field input::placeholder { color: #7c838c; }
.sso-field button { border: 0; background: none; padding: 4px; cursor: pointer; color: #1f2328; display: grid; }
.sso-field button svg { color: inherit; width: 24px; height: 24px; }
.sso__card .field > span { font-size: 0.85rem; color: #5f6670; }
.sso__card .field .input { border: 0; border-bottom: 1px solid #d3d6da; border-radius: 0; padding-inline: 2px; box-shadow: none; font-size: 1.05rem; }
.sso__card .field .input:focus { border-bottom-color: var(--sso-button); box-shadow: 0 1px 0 var(--sso-button); }
.sso-btn {
  display: block; width: 100%; min-height: 56px; border-radius: 999px; border: 1px solid color-mix(in oklch, var(--sso-button) 80%, black);
  background: var(--sso-button); color: #fff; font: inherit; font-size: 1.35rem; cursor: pointer; margin-top: 18px;
}
.sso-btn:hover { background: color-mix(in oklch, var(--sso-button) 88%, black); }
.sso-btn:disabled { opacity: 0.6; cursor: progress; }
.sso-btn--ghost { background: #fff; color: #1f2328; border-color: #d3d6da; font-size: 1.05rem; min-height: 50px; margin-top: 0; text-align: left; padding: 8px 22px; }
.sso-btn--ghost:hover { background: #f5f5f5; }
.sso__links { display: flex; justify-content: space-between; gap: 12px; font-size: 1.02rem; margin-top: 6px; }
.sso__links a, .sso__card a { color: var(--sso-button); text-decoration: none; }
.sso__links a:hover, .sso__card a:hover { text-decoration: underline; }
.sso__links .push { margin-left: auto; }
.sso__by { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 26px; color: #8a9099; font-size: 0.82rem; }
.sso__by img { height: 26px; width: auto; border-radius: 6px; }
.sso__card .check { justify-content: flex-start; }
.sso__foot { background: #fff; text-align: center; padding: 16px 20px; font-size: 0.95rem; color: #1f2328; }
.sso__foot a { color: var(--sso-button); text-decoration: none; }
@media (max-width: 820px) {
  .sso__pair { grid-template-columns: 1fr; }
  .sso__panel { min-height: 0; padding: 30px 24px; }
  .sso__panel h1 { font-size: 1.5rem; }
  .sso__card { min-height: 0; padding: 34px 24px 28px; margin: 0; }
}
