:root {
  --color-primary: #1324b9;
  --color-primary-hover: #1a2a95;
  --color-primary-tint: #eaf3ff;
  --color-secondary: #4dece4;
  --font-title: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}
h1, h2, h3, h4, h5, h6, .nv2-title, .carousel-caption h5 {
  font-family: var(--font-title);
}

.nv2-body {
  position: relative;
  /* background-image: url('../img/bg-desktop.svg'); */
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  color: #1c1c28;
  font-size: 14px;
}

.form-wrapper {
  display: flex;
  height: 100vh;
  /* width: 100%; */
  padding-top: 80px;
  /* align-items: center; */
  background: white;
  border-top: 0;
}

.nv2-body-wrapper {
  flex-grow: 1;
  display: flex;
  position: relative;
}

.carousel-main-wrapper {
  width: 100%;
  display: block;
}

.carousel-main-wrapper .carousel-img {
  height: 100vh;
  object-fit: cover;
}

#kc-social-providers {
  display: none;
}

@media (max-height: 850px) {
  .nv2-body {
    height: auto;
    /* padding-top: 40px; */
  }

  .nv2-body-wrapper {
    justify-content: center;
  }
}
@media (max-width: 800px) {
  .nv2-body {
    padding-top: 0px;
  }
}

.nv2-margin-top_20 {
  margin-top: 20px;
}
.nv2-margin-top_12 {
  margin-top: 12px;
}

.nv2-body a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
}
.nv2-body a:hover {
  color: var(--color-primary); /* pin: Bootstrap a:hover would recolour */
  text-decoration: none;
}

.nv2-content {
  box-sizing: border-box;
  padding: 46px 36px;
  background: white;
  /* max-height: 610px; */
  overflow-y: auto;
  border-radius: 4px;
  /* border-top: 4px solid #2D2A81; */
  /* box-shadow: 0 6px 16px rgb(45 42 129 / 15%); */
  min-width: 470px;
  /* Without a cap, a flex item stretches to fit its widest content (e.g. a long
     passkey error message with a URL in it) even once that text can wrap --
     word-wrapping alone isn't enough to stop the card itself from growing. */
  max-width: 470px;
}

.nv2-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 470px;
  max-width: 100%; /* left panel; Figma: logo at x50/y48, badge right edge at panel width - 50 */
  box-sizing: border-box;
  padding: 48px 50px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .nv2-content {
    width: 500px;
    margin: 0 20px;
    min-width: auto;
    max-width: calc(100vw - 40px);
  }
}

.nv2-input {
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  border: 1px solid #cdceda;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  color: #1c1c28;
  padding: 0 10px;
}
/* Figma: the entered 6-digit code is bold, the placeholder is not */
#otp {
  font-weight: 700;
}
#otp::placeholder {
  font-weight: 400;
}
.nv2-input::placeholder {
  color: #8e90a6;
  font-size: 14px;
}
.nv2-input:focus-visible {
  outline: none;
  border: 1px solid var(--color-primary);
}
.nv2-input[aria-invalid="true"] {
  border: 1px solid #da5454;
}
select.nv2-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 36px;
  background-color: white;
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 16px 16px;
  background-image: url("../img/chevron-down.svg");
}
/* Fallback styling for the instant before common.js enhances the element (or if JS is
   disabled) -- select.nv2-input itself stays a real, working <select>. Once enhanced,
   it's hidden (.nv2-select--enhanced below) and .nv2-dropdown takes over the visuals. */
select.nv2-input option {
  padding: 12px 16px;
  color: #1c1c28;
  background-color: white;
}
select.nv2-input option:checked {
  color: white;
  background-color: #1324b9;
}
.nv2-select--enhanced {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Custom dropdown built by common.js to progressively-enhance select.nv2-input -- a
   native <select>'s option list is OS-rendered (flex/gap/hover states are inert, and
   padding only applies in Firefox), which is too far from the Figma dropdown to reach
   with CSS alone. */
.nv2-dropdown {
  position: relative;
}
.nv2-dropdown-label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px 0;
  color: #1c1c28;
}
/* 14px variant (Figma: "Verify with" on the 2FA verify screens) */
.nv2-dropdown-label_sm {
  font-size: 14px;
  line-height: normal;
  margin-bottom: 11px;
}
.nv2-dropdown__toggle {
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  border: 1px solid #cdceda;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: #1c1c28;
  padding: 0 11px 0 10px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.nv2-dropdown__toggle:focus-visible {
  outline: none;
  border: 1px solid #2d2a81;
}
.nv2-dropdown__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nv2-dropdown__chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: 8px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  background-image: url("../img/chevron-down.svg");
}
/* Figma (open state): panel sits 1px under the select, no border, radius 4, soft shadow;
   rows are 12px 16px, 14px text, the selected/hovered row is #F5F5F9 */
.nv2-dropdown__menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  z-index: 20;
  background-color: white;
  border: none;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(45, 42, 129, 0.15);
  padding: 0;
  margin: 0;
  max-height: 260px;
  overflow-y: auto;
}
.nv2-dropdown__option {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: none;
  background: white;
  font-size: 14px;
  line-height: 1.4;
  color: #1c1c28;
  text-align: left;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
}
.nv2-dropdown__title {
  display: block;
  font-weight: 700;
}
.nv2-dropdown__title + .nv2-dropdown__detail {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
.nv2-dropdown__option:first-child {
  border-radius: 4px 4px 0 0;
}
.nv2-dropdown__option:last-child {
  border-radius: 0 0 4px 4px;
}
.nv2-dropdown__option:hover,
.nv2-dropdown__option:focus-visible,
.nv2-dropdown__option--selected {
  background-color: #f5f5f9;
  outline: none;
}

.nv2-input_error {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #e53535;
}
.nv2-input-label {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 8px 0;
  color: #1c1c28;
}
.nv2-input-label_bold {
  font-weight: 700;
}
/* 14px variant (Figma: code-entry label on the 2FA screens) */
.nv2-input-label_sm {
  font-size: 14px;
  line-height: normal;
  margin-bottom: 11px;
}

.nv2-error {
  display: flex;
  align-items: center;
}
.nv2-error__text {
  color: #e53535;
  font-size: 12px;
  margin-left: 7px;
}
.nv2-error__icon {
  display: inline-block;
}

.nv2-checkbox {
  color: #1c1c28;
  font-size: 14px;
}
.nv2-checkbox input {
  display: none;
}
.nv2-checkbox input:checked + .nv2-checkbox__text:before {
  background-image: url("../img/checked-checkbox.svg");
}
.nv2-checkbox__text {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.nv2-checkbox__text:before {
  background-image: url("../img/unchecked-checkbox.svg");
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 11px;
}

.nv2-btn[type="submit"] {
  -webkit-appearance: none; /*For Chrome*/
  -moz-appearance: none; /*For Mozilla*/
  appearance: none;
}
.nv2-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--color-primary);
  border-radius: 4px;
  height: 50px;
  text-transform: uppercase;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.4px;
  color: white;
  padding: 0;
  border: 0;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}
.nv2-btn:hover {
  background-color: var(--color-primary-hover);
}
.nv2-btn[disabled],
nv2-btn[disabled]:hover {
  background-color: #dfdfe7 !important;
  cursor: default;
}
@media (min-width: 991px) {
  .nv2-btn-fixed {
    width: 370px !important;
  }
}


.nv2-form__row {
  margin-top: 24px;
}
/* the first group follows the subtitle, which already carries the 30px gap */
#kc-identifier-form > .nv2-form__row:first-child,
#kc-identifier-row,
#kc-switch-factor-form,
#kc-mfa-enroll-choose-form > .nv2-form__row:first-child,
#kc-mfa-enroll-activate-form > .nv2-form__row:first-child {
  margin-top: 0;
}
#kc-password-form #kc-form-buttons,
#kc-mfa-enroll-activate-form #kc-form-buttons {
  margin-bottom: 0;
}
.nv2-form__row_center {
  justify-content: center;
  text-align: center;
  width: 100%;
}

.nv2-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 24.5px; /* Figma "normal"; Bootstrap h1 1.2 left the content ~3px high */
}
/* identifier/password have no back link; Figma keeps its 24px + 16px slot empty */
.nv2-title_no-back {
  padding-top: 41px; /* padding, not margin: ".nv2-title strong" zeroes margin-top with !important */
}

@media (max-width: 767px) {
  .nv2-title {
    font-size: 18px;
  }
}

.nv2-title strong {
  font-weight: 700;
  font-size: 18px;
  margin-top: 0 !important;
  display: block;
}

.nv2-logo__wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  display: none;
}

@media (max-width: 767px) {
  .nv2-logo__wrap {
    margin-bottom: 20px;
  }
}

.nv2-info {
  font-size: 14px;
  color: #555770;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

.nv2-info__text {
  font-size: 14px;
  color: #555770;
}

.nv2-info__warning-text {
  font-size: 14px;
  color: #e53535;
  display: block;
  word-wrap: break-word;
  max-width: 340px;
}

.nv2-info_success {
  margin: 0;
  color: #359b70;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
}
.nv2-info_success strong {
  font-weight: 700;
}

.nv2-radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1c1c28;
  font-size: 14px;
  padding: 10px 0;
  cursor: pointer;
}

.nv2-qr {
  display: block;
  box-sizing: content-box;
  width: 128px;
  height: 128px;
  padding: 5px;
  border: 1px solid #1c1c28;
  margin: 18px auto; /* Figma: 140px box overflows its 128px slot by 6px each side */
}

@media (max-width: 767px) {
  .nv2-info,
  .nv2-info__text,
  .nv2-info__warning-text {
    font-size: 12px;
  }
}

.nv2-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 32px;
  font-size: 11px;
  padding: 9px 12px;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid #cdceda;
  background: white;
  font-weight: 700 !important;
  color: #1c1c28 !important;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}
.nv2-back:hover {
  background-color: #f7f7fb;
  border-color: #2d2a81;
}
.nv2-back__icon {
  margin-right: 10px;
}

.nv2-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 100px;
  background: #3eb99b;
  color: white;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  white-space: nowrap;
}

.nv2-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1324b9 !important;
  font-family: inherit;
  line-height: normal;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 16px;
}
.nv2-back-link .nv2-back__icon {
  width: 24px;
  height: 24px;
  margin-right: 0;
}
.nv2-back-link:hover {
  color: #2738cd !important;
}

.nv2-subtitle {
  margin: 8px 0 30px 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #1c1c28;
}

.nv2-footer {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.4;
  color: #555770;
  text-align: center;
}

.nv2-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nv2-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #555770;
  line-height: 1.4;
}
.nv2-steps li + li {
  margin-top: 12px;
}
/* .nv2-steps li is display:flex -- an inline <a> as a direct child becomes its own flex
   item instead of flowing inline with the surrounding text, fragmenting the sentence onto
   separate lines word-by-word. Callers must wrap step text (and any inline links) in ONE
   span so it's a single flex item that wraps normally, like any other line of text. */
.nv2-steps a {
  color: #1324b9; /* Figma: App Store / Google Play links are button-blue, normal weight */
  font-weight: 400; /* .nv2-body a defaults to 700 */
}
.nv2-steps_dark li {
  color: #1c1c28;
}
.nv2-step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1324b9;
  color: white;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
}

.nv2-secret-box {
  margin: 24px 0;
  padding: 16px;
  border-radius: 12px;
  background: #dfdef4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.nv2-secret-box__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #2d2a81;
}
.nv2-secret-box__value {
  font-size: 18px;
  font-weight: 700;
  color: #1c1c28;
  word-break: break-all;
}

.nv2-toggle-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-primary) !important;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 100%;
}
.nv2-toggle-link:hover {
  color: var(--color-primary-hover) !important;
}

.nv2-identifier-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 25px;
  border: 1px solid #cdceda;
  background: #f5f5f9;
  color: #555770 !important;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400 !important;
  cursor: pointer;
}
.nv2-identifier-pill:hover {
  background: #f1f0fa;
}
.nv2-identifier-pill img {
  flex: 0 0 auto;
}

@media (max-width: 991px) {
  .nv2-content {
    min-width: 340px;
    padding: 60px 20px 46px !important;
  }
  .nv2-input {
    width: 100% !important;
  }

  .nv2-login__line-row {
    width: 100% !important;
    max-width: none;
  }

  .nv2-login__guide-row {
    width: 100% !important;
    max-width: none;
  }

  .nv2-header {
    left: 0px;
  }
}

.btn-learn-more {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid white;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  line-height: normal;
  color: white !important;
  font-family: var(--font-body);
  display: inline-block;
}
/* Bootstrap's a:hover underline ties on specificity with .nv2-body a and loads later */
.btn-learn-more,
.btn-learn-more:hover,
.btn-learn-more:focus {
  text-decoration: none;
}

.carousel-main-wrapper .carousel-caption {
  left: 5%;
  right: 5%;
  bottom: 120px;
  padding: 0;
}

@media (max-width: 576px) {
  .nv2-body-wrapper {
    justify-content: start;
  }
}

@media (max-width: 799px) {
  .nv2-content {
    width: 500px;
    margin: 0 20px;
    min-width: auto;
    max-width: calc(100vw - 40px);
    padding: 30px 0px 5px !important;
  }
}

@media (max-width: 800px) {
  .carousel-main-wrapper {
    display: none;
  }
}

/* hide arrows and dots when there is only one slide */
.carousel-single .carousel-control-prev,
.carousel-single .carousel-control-next,
.carousel-single .carousel-indicators {
  display: none;
}
.carousel-caption h5 {
  font-weight: 700;
  font-size: 26px;
  line-height: normal;
  margin: 0 0 19px;
}
.carousel-main-wrapper .carousel-caption {
  z-index: 10;
}
/* Figma: 32px between caption text and Learn More button */
.carousel-caption :is(h5, p):has(+ .btn-learn-more) {
  margin-bottom: 32px;
}
