:root {
  --fondo: #ffffff;
  --carta: #ffffff;
  --testo: #141519;
  --testo-2: #5d606b;
  --testo-3: #a3a6b0;
  --linea: #e9eaef;
  --traccia: #f4f5f8;
  --accento: #3f4cf0;        /* the single accent: electric indigo, on the focus ring, the ring, the check and the badge */
  --accento-scuro: #2d38c9;
  --accento-velo: #eef0ff;
  --errore: #141519;         /* no second colour: the no-SSO state stays in ink */
  --ombra: 24, 26, 48;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { font-size: clamp(12px, min(3.6vw, 3.25vh), 19px); }
body {
  background: var(--fondo);
  color: var(--testo);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.stage { min-height: 100vh; display: grid; place-items: center; padding: 1em; }

/* ---- the card ---- */
.card {
  position: relative;
  width: min(21em, 92vw);
  padding: 1.6em 1.5em 1.35em;
  background: var(--carta);
  border: 1px solid var(--linea);
  border-radius: 1.35em;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(var(--ombra), .04), 0 2px 6px -2px rgba(var(--ombra), .05), 0 26px 52px -32px rgba(var(--ombra), .38);
  isolation: isolate;
}
/* a soft light that follows the pointer across the card */
.card__light {
  position: absolute; inset: -40%;
  background: radial-gradient(closest-side, rgba(63, 76, 240, .07), transparent 70%);
  width: 60%; height: 60%;
  left: 0; top: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
}

.head { display: grid; justify-items: start; gap: .3em; margin-bottom: 1.25em; }
.app {
  display: grid; place-items: center;
  width: 2.3em; height: 2.3em;
  border-radius: .7em;
  background: var(--testo);
  color: #fff;
  margin-bottom: .55em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 6px 14px -8px rgba(var(--ombra), .6);
}
.app svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.head__title { font-size: 1.32em; font-weight: 640; letter-spacing: -.02em; line-height: 1.15; font-stretch: 104%; }
.head__sub { font-size: .86em; color: var(--testo-2); line-height: 1.35; }

/* text in a window: the old line leaves, the new one comes in */
.roll { display: inline-grid; overflow: hidden; vertical-align: top; }
.roll__line { grid-area: 1 / 1; white-space: nowrap; display: block; }

/* ---- the email field ---- */
.field { display: grid; gap: .45em; }
.field__label { font-size: .74em; font-weight: 560; color: var(--testo-2); letter-spacing: .01em; }
.field__box {
  position: relative;
  display: flex; align-items: center; gap: .6em;
  height: 2.9em;
  padding: 0 .85em;
  border: 1px solid var(--linea);
  border-radius: .8em;
  background: var(--traccia);
  transition: border-color .25s, background-color .25s, box-shadow .3s;
}
.field__box.is-focus { border-color: var(--accento); background: #fff; box-shadow: 0 0 0 4px var(--accento-velo); }
.field__box.is-ok { border-color: rgba(63, 76, 240, .45); background: #fff; }
.field__box.is-no { border-color: var(--testo); background: #fff; }
.field__icon { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: var(--testo-3); stroke-width: 1.5; stroke-linejoin: round; transition: stroke .25s; }
.field__box.is-focus .field__icon, .field__box.is-ok .field__icon { stroke: var(--accento); }
.field__input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: none;
  font: inherit; font-family: "Geist Mono Variable", ui-monospace, monospace;
  font-size: .86em; letter-spacing: -.01em;
  color: var(--testo);
  caret-color: transparent;
}
.field__input::placeholder { color: var(--testo-3); }
/* an invisible copy of the text, to know where the caret goes */
.field__mirror {
  position: absolute; visibility: hidden; white-space: pre;
  font-family: "Geist Mono Variable", ui-monospace, monospace;
  font-size: .86em; letter-spacing: -.01em;
}
.field__caret {
  position: absolute; top: 50%;
  width: 1.5px; height: 1.15em;
  margin-top: -.575em;
  background: var(--accento);
  border-radius: 1px;
  opacity: 0;
}
/* the domain part of the email gets a soft highlight once recognised */
.field__domain { position: absolute; height: 1.5em; top: 50%; margin-top: -.75em; border-radius: .35em; background: var(--accento-velo); z-index: 0; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); }
.field__input { position: relative; z-index: 1; }

/* ---- the company row ---- */
.org, .nosso { height: 0; overflow: hidden; }
.org__inner {
  display: flex; align-items: center; gap: .7em;
  margin-top: .8em;
  padding: .62em .7em;
  border: 1px solid var(--linea);
  border-radius: .85em;
  background: linear-gradient(180deg, #fff, #fafbfc);
}
.org__mark {
  flex: none; display: grid; place-items: center;
  width: 2em; height: 2em; border-radius: .55em;
  background: #f1f2f6; color: var(--testo);
  box-shadow: inset 0 0 0 1px rgba(var(--ombra), .06);
}
.org__mark svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.org__text { display: grid; flex: 1; min-width: 0; line-height: 1.2; }
.org__name { font-size: .86em; font-weight: 600; }
.org__via { font-size: .72em; color: var(--testo-2); }
.org__tag {
  flex: none; display: inline-flex; align-items: center; gap: .3em;
  padding: .3em .55em .3em .42em;
  border-radius: 999px;
  background: var(--accento-velo);
  color: var(--accento-scuro);
  font-size: .68em; font-weight: 600; letter-spacing: .01em;
}
.org__tag svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.org__tick { stroke-dasharray: 1; stroke-dashoffset: 1; }

.nosso__inner { display: flex; align-items: center; justify-content: space-between; gap: .6em; margin-top: .7em; flex-wrap: wrap; }
.nosso__text { font-size: .78em; color: var(--testo-2); }
.nosso__text span { color: var(--testo); font-family: "Geist Mono Variable", ui-monospace, monospace; font-size: .95em; }
.nosso__link { display: inline-flex; align-items: center; gap: .3em; font-size: .78em; font-weight: 600; color: var(--testo); padding: .2em 0; }
.nosso__link svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .nosso__link:hover svg { transform: translateX(2px); } }
.nosso__link svg { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }

/* ---- the pill ---- */
.pill {
  position: relative;
  display: grid; place-items: center;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  width: 100%; height: 3em;
  margin-top: 1.05em;
  border-radius: 999px;
  background: var(--testo);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 1px 2px rgba(var(--ombra), .2), 0 12px 22px -14px rgba(var(--ombra), .7);
  overflow: hidden;
  transition: background-color .35s, opacity .3s;
  margin-left: auto; margin-right: auto;
}
.pill:disabled { cursor: default; background: #d9dbe2; box-shadow: none; color: #fff; }
.pill.is-ok { background: var(--accento); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(63, 76, 240, .3), 0 14px 26px -14px rgba(63, 76, 240, .8); }
.pill.is-busy, .pill.is-done { background: var(--accento); }
.pill.is-in { background: #fff; color: var(--testo); box-shadow: inset 0 0 0 1px var(--linea), 0 10px 22px -16px rgba(var(--ombra), .5); }
.pill:focus-visible { outline: 2px solid var(--accento); outline-offset: 3px; }
.pill__face { grid-area: 1 / 1; white-space: nowrap; display: inline-flex; align-items: center; gap: .45em; font-size: .92em; font-weight: 600; font-stretch: var(--wdth, 100%); }
.pill__arrow { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ring, .check { grid-area: 1 / 1; width: 1.6em; height: 1.6em; opacity: 0; fill: none; }
.ring__track { stroke: rgba(255,255,255,.28); stroke-width: 2.4; }
.ring__arc { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .28 1; }
.check path { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.who { grid-area: 1 / 1; white-space: nowrap; display: inline-flex; align-items: center; gap: .6em; opacity: 0; }
.who__avatar {
  display: grid; place-items: center;
  width: 2.05em; height: 2.05em; border-radius: 50%;
  background: var(--accento); color: #fff;
  font-size: .78em; font-weight: 650; letter-spacing: .02em;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--accento-velo);
}
.who__text { display: grid; text-align: left; line-height: 1.12; }
.who__label { font-size: .66em; color: var(--testo-2); }
.who__name { font-size: .86em; font-weight: 600; }

/* ---- the hop to the identity provider ---- */
.hop {
  display: flex; align-items: center; justify-content: center; gap: .45em;
  height: 1.6em; margin-top: .75em;
  font-size: .74em; color: var(--testo-2);
  opacity: 0;
}
.hop__badge {
  display: grid; place-items: center;
  width: 1.6em; height: 1.6em; border-radius: .45em;
  font-size: .82em; font-weight: 700;
  background: var(--traccia); color: var(--testo);
  box-shadow: inset 0 0 0 1px var(--linea);
}
.hop__badge--b { background: var(--accento-velo); color: var(--accento-scuro); box-shadow: inset 0 0 0 1px rgba(63, 76, 240, .18); }
.hop__line { position: relative; width: 2.4em; height: 1px; background: var(--linea); overflow: hidden; }
.hop__line span { position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--accento); }
.hop__text { margin-left: .3em; white-space: nowrap; }

@media (max-width: 420px) {
  .card { padding: 1.3em 1.15em 1.1em; }
  .head { margin-bottom: 1em; }
}
