/* The forms of signing in: the login page, and the set-up and the sign-in of the administration portal. */

.lg {
  width: min(360px, 100%);
  padding: 24px 28px 20px;
}
.lg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.lg-home {
  display: inline-flex;
  border-radius: 8px;
  flex: none;
}
.lg h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.lg .sub {
  margin: 2px 0 0;
  color: var(--muted);
}
.lg-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lg h2 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}
.lg label {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.lg .ckl {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  margin: 8px 0 10px;
}
.lg .or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 12px;
  margin: 8px 0;
}
.lg .or::before,
.lg .or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
/* what is said under a field or a heading, in fewer words than a message */
.lg-hint {
  margin: 2px 0 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
}
/* the ways to an account under the sign-in form, where a workspace has its accounts made on this page */
.lg-more {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
/* what a step answers: why a sign-in did not go through, or what it is waiting for */
.lg-msg {
  margin: 6px 0 4px;
  color: var(--muted);
  line-height: 1.45;
}
.lg-msg.bad {
  color: var(--red);
  margin: 2px 0 0;
}
.lg-msg.wait::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border: 2px solid var(--ctl);
  border-top-color: var(--accent);
  border-radius: 50%;
  vertical-align: -1px;
  animation: lg-spin 0.8s linear infinite;
}
.lg .in.bad {
  border-color: var(--red);
}
.lg-providers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 6px;
}
.lg-providers .btn {
  justify-content: flex-start;
}
.lg .btn:disabled {
  opacity: 0.5;
  cursor: default;
}
#ssoForm .btn.pri {
  margin-top: 8px;
}
@keyframes lg-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lg-msg.wait::before {
    animation: none;
  }
}
