/* ****************************************
 * Pages of the OAuth/OIDC login flow: IdentityServer's login page and the
 * two-factor and account selection pages that follow it.
 *
 * Matches the auth embed. The values come from the embed's own stylesheets
 * (Reset.css, Widget.css and the form components), keyed off the theme classes
 * on <body>. The sso- class names keep the older bootstrap and widget styles on
 * these pages from reaching them.
 **************************************** */

.sso-page {
  color: black;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.428572;
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
  /* A form posted by what looks like a text link, as the embed's links are */

}
.sso-page * {
  box-sizing: border-box;
  font-family: var(--font-family);
}
.sso-page h1 {
  color: black;
  font-size: 32px;
  font-weight: bold;
  line-height: 40px;
  margin: 0;
  text-align: center;
}
.sso-page a,
.sso-page a:focus,
.sso-page a:hover {
  color: var(--accent-color);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-position: under;
}
.sso-page a:hover {
  text-decoration: none;
}
.sso-page form {
  margin: 0;
}
.sso-page .sso-section {
  margin-bottom: 24px;
}
.sso-page .sso-text-center {
  text-align: center;
}
.sso-page .sso-register {
  margin-top: 8px;
}
.sso-page .sso-form-group {
  margin-bottom: 16px;
}
.sso-page .sso-form-group:last-child {
  margin-bottom: 0;
}
.sso-page .sso-label {
  color: black;
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 8px;
}
.sso-page .sso-input {
  -webkit-appearance: none;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  color: black;
  font-size: 14px;
  height: auto;
  line-height: 1.428572;
  outline: none;
  padding: 7px 12px;
  width: 100%;
}
.sso-page .sso-input:active,
.sso-page .sso-input:focus {
  border-color: var(--accent-color);
}
.sso-page .sso-button {
  background-color: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: 6px;
  color: var(--button-text-color, #fff);
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.428572;
  padding: 7px 16px;
  transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
  width: 100%;
}
.sso-page .sso-button:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.1);
}
.sso-page .sso-button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 1px;
}
.sso-page .sso-button[disabled] {
  cursor: not-allowed;
  opacity: 0.8;
}
.sso-page .sso-links {
  margin-top: 16px;
  text-align: center;
}
.sso-page .sso-error {
  background-color: #ff333b;
  border-radius: 6px;
  color: white;
  margin: 16px 0;
  padding: 10px;
}
.sso-page .sso-error * {
  color: white;
}
.sso-page .sso-notice {
  border-left: 8px solid var(--accent-color);
  border-radius: 6px;
  margin: 16px 0;
  overflow: hidden;
  padding: 16px;
  position: relative;
}
.sso-page .sso-notice:before {
  background-color: var(--accent-color);
  bottom: 0;
  content: "";
  left: 0;
  opacity: 0.1;
  position: absolute;
  right: 0;
  top: 0;
}
.sso-page .sso-divider {
  align-items: center;
  color: rgba(0, 0, 0, 0.6);
  display: flex;
  gap: 16px;
  margin: 24px 0;
}
.sso-page .sso-divider-line {
  background: rgba(0, 0, 0, 0.1);
  flex: 1;
  height: 1px;
}
.sso-page p {
  margin: 8px 0;
}
.sso-page h2 {
  color: black;
  font-size: 22px;
  font-weight: bold;
  line-height: 30px;
  margin: 0 0 8px;
}
.sso-page .sso-muted {
  opacity: 0.55;
}
.sso-page .sso-button-inline {
  width: auto;
}
.sso-page .sso-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.sso-page .sso-link-row {
  margin-top: 12px;
  text-align: center;
}
.sso-page .sso-link-row form {
  display: inline;
}
.sso-page .sso-link-button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.428572;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.sso-page .sso-link-button:hover {
  text-decoration-color: currentColor;
}
.sso-page .sso-qr-code {
  margin: 12px 0;
  text-align: center;
}
.sso-page .sso-qr-code img {
  height: auto;
  max-width: 220px;
}
.sso-page .sso-secret {
  background: whitesmoke;
  border: 1px solid #dddddd;
  border-radius: 6px;
  color: black;
  margin: 8px 0 16px;
  overflow-wrap: anywhere;
  padding: 8px 12px;
  text-align: center;
}
.sso-page .sso-warning {
  background: #fff7e6;
  border: 1px solid #ffd591;
  border-radius: 6px;
  color: #874d00;
  padding: 8px 12px;
}
.sso-page .sso-recovery-codes {
  background: whitesmoke;
  border: 1px solid #dddddd;
  border-radius: 6px;
  color: black;
  display: grid;
  font-family: 'Courier New', Courier, monospace;
  gap: 8px 16px;
  grid-template-columns: 1fr 1fr;
  margin: 12px 0;
  padding: 12px 16px;
}
.sso-page .sso-recovery-codes span {
  font-family: 'Courier New', Courier, monospace;
}
.sso-page .sso-account-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sso-page .sso-account-list li {
  border-radius: 6px;
  transition: background-color 0.2s ease-in-out;
}
.sso-page .sso-account-list li:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
.sso-page .sso-account-list a,
.sso-page .sso-account-list a:focus,
.sso-page .sso-account-list a:hover {
  color: black;
  display: block;
  padding: 8px 16px;
  text-decoration: none;
}
.sso-page .sso-account-name {
  font-weight: bold;
}
.sso-page #btn-google-signin {
  display: flex;
  justify-content: center;
}
/* Prevent iOS from zooming in on the fields */

@media only screen and (max-width: 768px) {
  .sso-page .sso-input {
    font-size: 16px;
  }
}
@media only screen and (max-width: 600px) {
  .sso-page {
    font-size: 16px;
  }
}
/* Theme: display mode */
body.displayMode-dark .sso-page {
  color: white;
}
body.displayMode-dark .sso-page h1,
body.displayMode-dark .sso-page .sso-label {
  color: white;
}
body.displayMode-dark .sso-page .sso-input {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}
body.displayMode-dark .sso-page .sso-input:active,
body.displayMode-dark .sso-page .sso-input:focus {
  border-color: var(--accent-color);
}
body.displayMode-dark .sso-page .sso-button:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.1);
}
body.displayMode-dark .sso-page h2 {
  color: white;
}
body.displayMode-dark .sso-page .sso-link-button {
  text-decoration-color: rgba(255, 255, 255, 0.3);
}
body.displayMode-dark .sso-page .sso-account-list li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
body.displayMode-dark .sso-page .sso-account-list a,
body.displayMode-dark .sso-page .sso-account-list a:focus,
body.displayMode-dark .sso-page .sso-account-list a:hover {
  color: white;
}
body.displayMode-dark .sso-page .sso-recovery-codes,
body.displayMode-dark .sso-page .sso-secret {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}
body.displayMode-dark .sso-page .sso-warning {
  background: rgba(255, 169, 64, 0.1);
  border-color: rgba(255, 213, 145, 0.4);
  color: #ffd591;
}
body.displayMode-dark .sso-page .sso-divider {
  color: rgba(255, 255, 255, 0.6);
}
body.displayMode-dark .sso-page .sso-divider-line {
  background: rgba(255, 255, 255, 0.1);
}
@media (prefers-color-scheme: dark) {
  body.displayMode-auto .sso-page {
    color: white;
  }
  body.displayMode-auto .sso-page h1,
  body.displayMode-auto .sso-page .sso-label {
    color: white;
  }
  body.displayMode-auto .sso-page .sso-input {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
  }
  body.displayMode-auto .sso-page .sso-input:active,
  body.displayMode-auto .sso-page .sso-input:focus {
    border-color: var(--accent-color);
  }
  body.displayMode-auto .sso-page .sso-button:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.1);
  }
  body.displayMode-auto .sso-page h2 {
    color: white;
  }
  body.displayMode-auto .sso-page .sso-link-button {
    text-decoration-color: rgba(255, 255, 255, 0.3);
  }
  body.displayMode-auto .sso-page .sso-account-list li:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  body.displayMode-auto .sso-page .sso-account-list a,
  body.displayMode-auto .sso-page .sso-account-list a:focus,
  body.displayMode-auto .sso-page .sso-account-list a:hover {
    color: white;
  }
  body.displayMode-auto .sso-page .sso-recovery-codes,
  body.displayMode-auto .sso-page .sso-secret {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
  }
  body.displayMode-auto .sso-page .sso-warning {
    background: rgba(255, 169, 64, 0.1);
    border-color: rgba(255, 213, 145, 0.4);
    color: #ffd591;
  }
  body.displayMode-auto .sso-page .sso-divider {
    color: rgba(255, 255, 255, 0.6);
  }
  body.displayMode-auto .sso-page .sso-divider-line {
    background: rgba(255, 255, 255, 0.1);
  }
}
/* Theme: field style */

body.fieldStyle-solid .sso-page .sso-input {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: transparent;
  box-shadow: none;
}
body.fieldStyle-solid.displayMode-dark .sso-page .sso-input {
  background-color: rgba(255, 255, 255, 0.05);
}
@media (prefers-color-scheme: dark) {
  body.fieldStyle-solid.displayMode-auto .sso-page .sso-input {
    background-color: rgba(255, 255, 255, 0.1);
  }
}
body.fieldStyle-solid .sso-page .sso-input:active,
body.fieldStyle-solid .sso-page .sso-input:focus {
  border-color: var(--accent-color);
}
/* Theme: button style */

body.buttonStyle-outline .sso-page .sso-button {
  background-color: transparent;
  color: var(--accent-color);
}
/* Theme: border width. A 1px field also gets an outline on focus. */

body.borderWidth-1px .sso-page .sso-input:focus {
  outline: 1px solid var(--accent-color);
}
body.borderWidth-2px .sso-page .sso-button,
body.borderWidth-2px .sso-page .sso-input {
  border-width: 2px;
}
body.borderWidth-3px .sso-page .sso-button,
body.borderWidth-3px .sso-page .sso-input {
  border-width: 3px;
}
body.borderWidth-4px .sso-page .sso-button,
body.borderWidth-4px .sso-page .sso-input {
  border-width: 4px;
}
body.borderWidth-5px .sso-page .sso-button,
body.borderWidth-5px .sso-page .sso-input {
  border-width: 5px;
}
/* Theme: corner shape. Pill makes the fields, buttons and account rows fully
   round; the error and notice boxes keep the rounded radius, as in the embed. */

body.cornerShape-square .sso-page .sso-account-list li,
body.cornerShape-square .sso-page .sso-button,
body.cornerShape-square .sso-page .sso-error,
body.cornerShape-square .sso-page .sso-input,
body.cornerShape-square .sso-page .sso-notice {
  border-radius: 0;
}
body.cornerShape-pill .sso-page .sso-account-list li,
body.cornerShape-pill .sso-page .sso-button,
body.cornerShape-pill .sso-page .sso-input {
  border-radius: 100px;
}
