html,
body {
  height: 100%;
}

body {
  font-family: var(--nevis-font-sans-serif);
  font-size: 0.875rem;
  color: var(--nevis-gray-900);
  display: flex;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  background-color: #d1d5d6;
}

a {
  text-decoration: none;
  color: var(--nevis-primary);
}

/* add icon for links to external sites */
a[rel~="external"]::after {
  content: url("link.svg");
  padding-left: 7px;
  vertical-align: -2px;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

button:disabled {
  cursor: not-allowed;
  pointer-events: all !important;
}

label {
  font-size: 0.75rem;
}

span.text-secondary>div {
  display: inline-block;
}

/* Screen specific CSS */
.login-container {
  width: 100%;
  max-width: 22.5rem;
  margin: auto;
  background-color: var(--nevis-gray-100);
  box-shadow: 0rem 0.625rem 2.5rem rgba(31, 47, 51, 0.2);
  border-radius: 1.25rem;
}

.login-container-header {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-container-minimal-header {
  padding: 1.25rem;
}

.login-container-body {
  background: #ffffff;
  box-shadow: 0rem 0.625rem 2.5rem rgba(31, 47, 51, 0.2);
  border-radius: 1.25rem;
  min-height: 31.25rem;
}

.login-container-body-content {
  padding: 2.5rem;
}

.login-container-body-content>.input-error~.input-error {
  margin-top: 0;
}

.brand-name {
  font-size: 1rem;
  word-wrap: break-word;
}

.sub-title {
  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.375rem;
  text-align: center;
}

.sub-icon {
  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  margin-top: 1rem;
  text-align: center;
}

.horizontal-line {
  display: flex;
  flex-direction: row;
}

.horizontal-line:before,
.horizontal-line:after {
  content: "";
  flex: 1 1;
  border-bottom: 0.0625rem solid var(--nevis-gray-200);
  margin: auto;
}

.horizontal-line:before {
  margin-right: 0.625rem;
  margin-left: -2.5rem;
}

.horizontal-line:after {
  margin-left: 0.625rem;
  margin-right: -2.5rem;
}

.register-spacing {
  margin-top: 2rem;
  margin-bottom: 2.75rem;
}

.social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-login-button {
  background: none;
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0.375rem 1.125rem;
  width: 100%;
  height: 2.5rem;
  border: 0.0625rem solid var(--nevis-gray-200);
  box-sizing: border-box;
  border-radius: 0.625rem;
  gap: 0.625rem;
}

.icon-inside {
  position: relative;
}

.icon-inside input {
  padding-right: calc(0.75rem + 1.25rem + 0.75rem);
}

.icon-inside button {
  position: absolute;
  right: 0;
  top: 0;
  margin-top: 0.3125rem;
  margin-right: 0.75rem;
}

.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 1.875rem;
  height: 1.875rem;
  padding: 0;
  margin: 0;
  min-width: 0;
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: none;
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  border: none;
  vertical-align: baseline;
  text-align: center;
  background-color: initial;
}

.icon-button:hover {
  background: var(--nevis-gray-200);
}

.icon-button:active {
  background: var(--nevis-gray-300);
}

.icon-button.nevis-blue-icon:hover {
  background: var(--nevis-blue-icon-hover-bg-color);
}

.icon-button.nevis-blue-icon:active {
  background: var(--nevis-blue-icon-active-bg-color);
}

.h-icon-button {
  min-height: 1.875rem;
}

.max-w-full {
  max-width: 100%;
}

.verification-code-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.verification-code-label {
  font-size: 1.125rem;
  line-height: 1.5rem;
  margin-right: 0.25rem;
}

.verification-code-input {
  text-align: center;
  max-width: 8.75rem;
  letter-spacing: 0.5rem;
  text-indent: 0.25rem;
}

.hidden-verification-code-submit-button {
  overflow: visible !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.totp-code-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0;
}

.totp-code-input {
  text-align: left;
  max-width: 8.75rem;
  letter-spacing: 0.5rem;
  text-indent: 0.25rem;
}

.hidden {
  display: none !important;
}

.success-icon {
  text-align: center !important;
  margin-top: 5.625rem;
  margin-bottom: 11.75rem;
}

.btn-selection-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0rem;
  gap: 0.5rem;

  border: 0.0625rem solid var(--nevis-gray-200);
  border-left-width: 0;
  border-right-width: 0;
}

.btn-selection-item+.btn-selection-item {
  border-top-width: 0;
}

.btn-selection-item:first-of-type {
  margin-top: 1.5rem;
}

.btn-selection-item:last-of-type {
  margin-bottom: 1.5rem;
}

.btn-selection-item .selection-label {
  color: var(--nevis-dark) !important;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.btn-selection-item .selection-description {
  color: var(--nevis-gray-500) !important;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.125rem;
}

/* Passwordless */

/* Access App*/
.access-app-download-link-mobile-spacing {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

/* add rounded border corners around QR code */
#authcloud_dispatch,
#authcloud_dispatch>#qr-code-wrapper {
  position: relative;
  display: block;
}

#authcloud_dispatch:not(.mobile-platform):before,
#authcloud_dispatch:not(.mobile-platform):after,
#authcloud_dispatch>#qr-code-wrapper:before,
#authcloud_dispatch>#qr-code-wrapper:after {
  position: absolute;
  width: 1.875rem;
  height: 1.875rem;
  border-color: var(--nevis-primary);
  border-style: solid;
  z-index: 1;
  content: " ";
}

#authcloud_dispatch:before {
  top: 0.5rem;
  left: 0.5rem;
  border-width: 0.1875rem 0 0 0.1875rem;
  border-top-left-radius: 1rem;
}

#authcloud_dispatch:after {
  top: 0.5rem;
  right: 0.5rem;
  border-width: 0.1875rem 0.1875rem 0 0;
  border-top-right-radius: 1rem;
}

#authcloud_dispatch>#qr-code-wrapper:before {
  bottom: 0.5rem;
  right: 0.5rem;
  border-width: 0 0.1875rem 0.1875rem 0;
  border-bottom-right-radius: 1rem;
}

#authcloud_dispatch>#qr-code-wrapper:after {
  bottom: 0.5rem;
  left: 0.5rem;
  border-width: 0 0 0.1875rem 0.1875rem;
  border-bottom-left-radius: 1rem;
}

.recovery-code-input {
  text-align: left;
  letter-spacing: 0.1875rem;
  font-family: monospace;
}

.recovery-codes-wrapper {
  height: 9rem;
  text-align: center;
  overflow-y: auto;
  margin-bottom: 1rem;
  /* Firefox */
  scrollbar-color: var(--nevis-gray-300) #ffffff;
  scrollbar-width: thin;
  border: 1px solid lightgray;
  border-radius: 0.5rem;
}

.recovery-codes-wrapper::-webkit-scrollbar {
  width: 0.25rem;
}

.recovery-codes-wrapper::-webkit-scrollbar-track {
  background: #ffffff;
}

.recovery-codes-wrapper::-webkit-scrollbar-thumb {
  background: var(--nevis-gray-300);
  border-radius: 0.125rem;
}

.recovery-codes-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--nevis-gray-400);
}

.recovery-code-gray {
  background: var(--nevis-gray-100);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-family: monospace;
  letter-spacing: 0.1875rem;
}

.recovery-code-white {
  background: #ffffff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-family: monospace;
  letter-spacing: 0.1875rem;
}

button.btn-recovery-code {
  line-height: 0.75rem;
  margin-top: 0.7rem;
  width: 100%;
}
