/* Sign-in page (owner: WP5). The brand moment, then one action (UX 3.1). A Super Blue brand panel
   with the blueprint drawing, the site marks and a pink splatter; a white panel with the Microsoft
   button. Reference: docs/design/mockups/shots/login-1440.png and login-390.png. Tokens only. */

.ts-login-page { background: var(--ts-white); }

.ts-login {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

/* Brand panel ------------------------------------------------------------------ */
.ts-login__brand {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--ts-space-12);
  padding: var(--ts-space-12) 56px 56px;
  color: var(--ts-white);
  background:
    linear-gradient(100deg,
      color-mix(in srgb, var(--ts-blue-900) 94%, transparent) 0%,
      color-mix(in srgb, var(--ts-blue-900) 72%, transparent) 48%,
      color-mix(in srgb, var(--ts-blue-900) 20%, transparent) 100%),
    url("../../images/blueprint-vcFAyba.svg") 70% 50% / cover no-repeat,
    var(--ts-blue-900);
}
.ts-login__lockup { align-self: flex-start; }
.ts-login__splat { position: absolute; z-index: -1; right: -390px; bottom: -210px; width: 600px; height: auto; pointer-events: none; user-select: none; }

.ts-login__pitch { max-width: 520px; }
.ts-login__headline { margin: 0; color: var(--ts-white); font-size: 48px; line-height: 52px; font-weight: 700; letter-spacing: -1.6px; }
.ts-login__sub { margin: 18px 0 0; max-width: 44ch; color: var(--ts-text-inverse-2); font-size: 17px; line-height: 26px; }

/* The site marks, each in the colour of what the site sells (the mark only, DS 3.7) */
.ts-login__sites { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ts-space-2); }
.ts-login__sites li {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: var(--ts-radius-sm);
  background: var(--_c); color: var(--ts-white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ts-white) 16%, transparent);
}
.ts-login__sites li > span[aria-hidden] { font-size: 18px; line-height: 18px; font-weight: 700; letter-spacing: -0.3px; }
/* Building Superstore is Super Blue: on this panel its mark turns white so it still shows */
.ts-login__sites li[data-site="bss"] { background: var(--ts-white); color: var(--ts-blue-900); box-shadow: none; }

.ts-login__foot { display: flex; align-items: center; gap: var(--ts-space-3); margin: 0; color: var(--ts-text-inverse-3); font-size: var(--ts-fs-small); line-height: var(--ts-lh-small); }
.ts-login__foot img { display: block; width: auto; height: 30px; }

/* Sign-in panel: the page's one main (it keeps .ts-bare, the signed-out layout class) ---------- */
.ts-login__panel.ts-bare {
  min-height: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: var(--ts-space-6);
  padding: var(--ts-space-12) var(--ts-space-8);
  background: var(--ts-white);
}
.ts-login__card { width: 100%; max-width: 400px; }
.ts-login__title { margin: 0; font-size: var(--ts-fs-title); line-height: var(--ts-lh-title); font-weight: 700; letter-spacing: var(--ts-ls-title); }
.ts-login__lede { margin: var(--ts-space-2) 0 28px; color: var(--ts-text-secondary); font-size: 15px; line-height: 22px; }
.ts-login__card .ts-flashes { margin-bottom: var(--ts-space-5); }
.ts-login__error { margin-bottom: var(--ts-space-5); }
.ts-login__error-detail { display: block; margin-top: 6px; color: var(--ts-text-muted); font-size: var(--ts-fs-small); line-height: var(--ts-lh-small); overflow-wrap: anywhere; }

.ts-login__microsoft { min-height: 56px; }
.ts-ms-logo { width: 28px; height: 28px; flex: none; display: inline-grid; place-items: center; margin-left: -8px; border-radius: 4px; background: var(--ts-white); }
.ts-ms-logo svg { display: block; }

/* Development sign-in: visibly separate, and only ever rendered in APP_ENV=dev */
.ts-login__dev {
  margin-top: 28px; padding: var(--ts-space-4);
  border: 1px dashed var(--ts-sand-400); border-radius: var(--ts-radius-md);
  background: var(--ts-surface-muted);
}
.ts-login__dev-title { display: flex; align-items: center; gap: var(--ts-space-2); margin: 0 0 10px; color: var(--ts-sand-700); font-size: var(--ts-fs-small); line-height: var(--ts-lh-small); font-weight: 600; }
.ts-login__dev .form-label { font-size: var(--ts-fs-small); line-height: var(--ts-lh-small); font-weight: 500; color: var(--ts-text-secondary); }
.ts-login__dev-row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ts-login__dev-row .form-select { width: 100%; }

.ts-login__help { margin: 0; max-width: 460px; color: var(--ts-text-muted); font-size: var(--ts-fs-small); line-height: var(--ts-lh-small); text-align: center; }

/* Below 992px the blue panel becomes a band above the sign-in panel ------------------------- */
@media (max-width: 991.98px) {
  .ts-login { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .ts-login__brand { gap: 28px; padding: var(--ts-space-6) var(--ts-space-5) 28px; }
  .ts-login__lockup.ts-lockup--xl { gap: var(--ts-space-3); }
  .ts-login__lockup .ts-lockup__mark { width: 48px; height: 48px; }
  .ts-login__lockup .ts-lockup__word { font-size: 18px; line-height: 18px; gap: 3px; }
  .ts-login__headline { font-size: 30px; line-height: 34px; letter-spacing: -1px; text-wrap: balance; }
  .ts-login__sub { margin-top: 10px; font-size: 15px; line-height: 22px; }
  .ts-login__sites { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: var(--ts-space-1); max-width: 520px; margin-top: var(--ts-space-5); }
  .ts-login__sites li { width: auto; height: 34px; }
  .ts-login__sites li > span[aria-hidden] { font-size: 13px; line-height: 13px; }
  .ts-login__splat { width: 300px; right: -190px; bottom: -110px; }
  .ts-login__foot { display: none; }
  .ts-login__panel.ts-bare { justify-content: flex-start; padding: 28px var(--ts-space-5) var(--ts-space-10); }
}
