.auth-page > .auth-card[hidden] {
  display: none !important;
}

.sso-overlay-card {
  width: 410px;
}

.sso-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 28px;
  padding: 4px;
  background: #eef2f7;
  border-radius: 11px;
}

.sso-tabs button {
  height: 38px;
  padding: 0 8px;
  color: #778296;
  font-size: 11px;
  font-weight: 800;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.sso-tabs button.active {
  color: #285fcf;
  background: #fff;
  box-shadow: 0 3px 11px #1f396e18;
}

.sso-method {
  display: flex;
  flex-direction: column;
}

.sso-method[hidden] {
  display: none;
}

.sso-method > p {
  margin: 0 0 23px;
  color: #7b8597;
  font-size: 12px;
  line-height: 1.7;
}

.sso-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #2e6ce8;
  font-size: 18px;
  font-weight: 900;
  background: #eaf1ff;
  border-radius: 13px;
}

.sso-icon.legacy {
  color: #56647a;
  background: #eef1f5;
}

.sso-primary {
  width: 100%;
}

.sso-primary:disabled {
  cursor: not-allowed;
  opacity: .58;
  box-shadow: none;
}

.sso-message {
  padding: 10px 11px;
  margin-bottom: 12px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.55;
}

.sso-message.warning {
  color: #866021;
  background: #fff8e9;
  border: 1px solid #f0dfba;
}

.sso-message.success {
  color: #25744f;
  background: #edf9f3;
  border: 1px solid #d4efdf;
}

.sso-message.error {
  color: #bd4942;
  background: #fff0ef;
}

.sso-spinner {
  width: 42px;
  height: 42px;
  margin: 5px auto 18px;
  border: 3px solid #dfe8f8;
  border-top-color: #2f6ce4;
  border-radius: 50%;
  animation: sso-spin .8s linear infinite;
}

@keyframes sso-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .sso-overlay-card {
    width: min(390px, calc(100vw - 40px));
  }
}
