/* The sign-in page, shared by the team's page (sent by the server) and the
   guest portal (in the app): FID's night on one side with the cube, the
   form on the other. Everything is scoped under .si. */
.si {
  --si-frame: #f2f1f6;
  --si-night: #1b1433;
  --si-night-2: #2b2058;
  --si-ink: #1b1433;
  --si-muted: #655f80;
  --si-faint: #9c97b2;
  --si-line: #e7e5ef;
  --si-line-2: #d5d2e1;
  --si-hover: #efeef5;
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--si-frame);
  color: var(--si-ink);
  text-align: left;
  transition: opacity 0.42s ease;
}
/* signed in: the page fades into the app's own background, then the app
   opens, so nothing flashes between the two */
.si.leaving {
  opacity: 0;
}
.si *,
.si *::before,
.si *::after {
  box-sizing: border-box;
}

/* the night side: the product, and the FID cube */
.si-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 36px 40px 40px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #fff;
  background:
    radial-gradient(55% 45% at 50% 47%, var(--si-night-2) 0%, transparent 100%),
    var(--si-night);
}
.si-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.si-brand img {
  width: 26px;
  height: auto;
}
.si-cube {
  display: grid;
  place-items: center;
  min-height: 300px;
}
.si-tag {
  margin: 0;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 750;
  max-width: 16ch;
}
.si-tag-sub {
  margin: 12px 0 0;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.66);
}

/* the form side */
.si-panel {
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--si-line);
  padding: 20px 24px 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.si-lang {
  justify-self: end;
  field-sizing: content;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 6px 26px 6px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--si-muted);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23655f80' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E")
    no-repeat right 8px center;
  cursor: pointer;
}
.si-lang:hover {
  background-color: var(--si-hover);
}
.si-body {
  align-self: center;
  justify-self: center;
  width: min(100%, 360px);
  display: grid;
  gap: 10px;
}
.si-out {
  margin: 0 0 6px;
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--si-hover);
  font-size: 13px;
  font-weight: 500;
}
.si-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.si-sub {
  margin: 0 0 14px;
  color: var(--si-muted);
}
.si-field {
  display: grid;
  gap: 6px;
}
.si-field label {
  font-size: 13px;
  font-weight: 600;
}
.si-in {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--si-line-2);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: inherit;
  outline: none;
}
.si-in:focus {
  border-color: var(--si-ink);
  box-shadow: 0 0 0 3px rgba(27, 20, 51, 0.1);
}
.si-in:focus-visible {
  outline: none;
}
.si-in[readonly] {
  background: #f7f6fa;
  color: var(--si-muted);
}
.si-help {
  font-size: 12.5px;
  color: var(--si-muted);
}
.si-err {
  margin: 0;
  color: #c8243f;
  font-size: 13.5px;
}
.si-go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background: var(--si-ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.si-go:hover:not(:disabled) {
  background: #2b2350;
}
.si-go:disabled {
  opacity: 0.75;
  cursor: default;
}
.si-go svg {
  flex: none;
}
.si-go:focus-visible,
.si-lang:focus-visible {
  outline: 2px solid var(--si-ink);
  outline-offset: 2px;
}
.si-note {
  margin: 8px 0 0;
  color: var(--si-muted);
  font-size: 13.5px;
}
.si-foot {
  margin: 0;
  text-align: center;
  color: var(--si-faint);
  font-size: 12.5px;
}
.si [hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .si {
    transition: none;
  }
}
@media (max-width: 860px) {
  .si {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: start;
  }
  .si-hero {
    padding: 24px 24px 28px;
  }
  .si-cube {
    min-height: 200px;
  }
  .si-tag {
    font-size: 30px;
  }
  .si-panel {
    min-height: 460px;
  }
}
