.formatted-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 80px);
}

.auth-card {
  width: min(440px, 100%);
  border-radius: 24px;
}

.auth-link {
  align-self: flex-start;
  padding: 0;
}

.field-error {
  border-color: #c62828 !important;
  box-shadow: 0 0 0 1px #c62828;
}

.field-message {
  display: block;
  margin: 5px 0 0;
  color: #b32828;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.password-field {
  display: block;
  position: relative;
  margin-top: 6px;
}

.password-field input {
  margin-top: 0;
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 1px;
  display: grid;
  place-items: center;
  width: 40px;
  height: calc(100% - 2px);
  padding: 0;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: transparent;
  color: #172033;
  transform: translateY(-50%);
  -webkit-tap-highlight-color: transparent;
}

.password-toggle:hover,
.password-toggle:active,
.password-toggle:focus,
.password-toggle:focus-visible {
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.password-toggle .ui-icon {
  width: 19px;
  height: 19px;
}

.auth-switch {
  margin: 0;
  text-align: center;
  font-weight: 400;
}

.auth-switch a {
  color: #3157d5;
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  color: #2445b5;
}

.choice-error {
  color: #b32828;
}

.consent-link {
  color: #3157d5;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-link:hover {
  color: #2445b5;
}

.account-logout {
  margin-top: 0;
  color: #c62828;
  border-color: #cdd4e1;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.account-heading {
  display: flex;
  align-items: flex-start;
}

.account-heading > .account-logout {
  margin-left: auto;
}

.account-logout .ui-icon {
  width: 24px;
  height: 24px;
}

header {
  background: #334155;
}

.account-username,
.user-account-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-heading h1 + p {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-heading h1 + p::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-color: currentColor;
  -webkit-mask: var(--user-icon) no-repeat center / 100% 100%;
  mask: var(--user-icon) no-repeat center / 100% 100%;
}

.account-username .ui-icon,
.user-account-button .ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.account-add-menu {
  position: relative;
}

.account-add-menu summary {
  list-style: none;
  user-select: none;
}

.account-add-menu summary::-webkit-details-marker {
  display: none;
}

.account-add-dropdown {
  right: 0;
  left: auto;
  padding: 8px;
  border: 1px solid #dce1ea;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 30px #17203322;
}

.account-add-dropdown a {
  display: block;
  padding: 8px 10px;
  color: #172033;
  text-decoration: none;
  white-space: nowrap;
}

.account-add-dropdown a:hover {
  background: #edf0f5;
}

.account-grid {
  margin-top: 0;
}

.account-grid .list-item strong {
  font-weight: 400;
}

.account-panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.account-panel-heading h2 {
  min-width: 0;
  margin: 0;
}

.account-section-add {
  flex: 0 0 32px;
  margin-left: auto;
  color: #3157d5;
}

.account-contact-details span {
  display: block;
  color: #172033;
  font-size: 16px;
  font-weight: 400;
}

.account-grid .list-item.managed {
  flex-direction: row;
  align-items: center;
}

.account-grid .list-item.managed > :first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-grid .list-item.managed > .row-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  margin-left: auto;
}
