/* Identity's own few rules, for the sign-in pages; everything else is the design system's (Vision.Design), the
   administration pages' rows, forms and cards included. Colours only through tokens. */

.form-stack {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.demo-accounts {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}


/* Continue with Microsoft: a real secondary button with Microsoft's mark. The four squares are Microsoft's own
   colours, which its brand rules ask to keep; declared as custom properties here, the one place they are named. */
.btn-microsoft {
  --ms-red: #f25022;
  --ms-green: #7fba00;
  --ms-blue: #00a4ef;
  --ms-yellow: #ffb900;
  gap: var(--space-2);
  min-height: 40px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.btn-microsoft svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-microsoft .ms-red { fill: var(--ms-red); }
.btn-microsoft .ms-green { fill: var(--ms-green); }
.btn-microsoft .ms-blue { fill: var(--ms-blue); }
.btn-microsoft .ms-yellow { fill: var(--ms-yellow); }

/* "or" between the password and a passkey */
.or {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.or::before,
.or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}






.totp-qr {
  display: block;
  margin: 0 auto var(--space-3);
  border-radius: var(--radius-md); /* the image brings its own light quiet zone, dark mode too */
}

.totp-key,
.recovery-codes code {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

.recovery-codes {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

/* A tick box with its sentence (the terms at sign-up) */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.check input {
  margin-top: 0.2em;
}

/* A list of rows with their action on the right (the organisation chooser, help, passkeys) */
.security-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3);
  display: grid;
  gap: var(--space-2);
}

.security-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
