/* Patternfly CSS places a "bg-login.jpg" as the background on this ".login-pf" class.
   This clashes with the "keycloak-bg.png' background defined on the body below.
   Therefore the Patternfly background must be set to none. */
@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");
html,
body {
  height: 100%;
}
body {
  min-height: 100vh !important;
  position: relative;
  margin: 0;
  padding: 0;
}
.login-pf {
  background: none;
}
.login-pf-page {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: calc(100vh - 128px);
}
.login-pf-page > .card-pf {
  margin-top: auto;
  margin-bottom: auto;
}
.login-pf {
  position: relative;
}
.login-pf body {
  font-family: Inter;
  background: #efefef !important;
  padding: 64px;
  position: relative;
}
.login-pf body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/6conecta-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(1) brightness(1.4);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.login-pf body > * {
  position: relative;
  z-index: 1;
}

.login-pf-header {
  display: flex;
  text-align: left !important;
}
textarea.pf-c-form-control {
  height: auto;
}

.pf-c-alert,
.alert-success,
.alert-warning,
.alert-info,
.alert-error,
.alert-danger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 10px;
  font-family: Inter;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.75px;
  color: #282828;
  box-sizing: border-box;
  box-shadow: none;
}
.alert-success {
  background-color: #effff1;
}
.alert-warning {
  background-color: #fff7e2;
}
.alert-info {
  background-color: #eef4ff;
}
.alert-error,
.alert-danger {
  background-color: #ffeded;
}
.pf-c-alert__icon,
.alert-success .pf-c-alert__icon,
.alert-warning .pf-c-alert__icon,
.alert-info .pf-c-alert__icon,
.alert-error .pf-c-alert__icon,
.alert-danger .pf-c-alert__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  font-size: 0;
}
.alert-success .pf-c-alert__icon { background-image: url("../img/icons/alert-success.svg"); }
.alert-warning .pf-c-alert__icon { background-image: url("../img/icons/alert-warning.svg"); }
.alert-info .pf-c-alert__icon {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='16' x2='12' y2='12'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>");
}
.alert-error .pf-c-alert__icon,
.alert-danger .pf-c-alert__icon {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none'><path d='M10.8999 6.90002V10.9M10.8999 14.9H10.9099M20.8999 10.9C20.8999 16.4229 16.4228 20.9 10.8999 20.9C5.37705 20.9 0.899902 16.4229 0.899902 10.9C0.899902 5.37718 5.37705 0.900024 10.8999 0.900024C16.4228 0.900024 20.8999 5.37718 20.8999 10.9Z' stroke='%23B71C1C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
/* hide PatternFly font icon when we provide a background SVG */
.alert-success .pf-c-alert__icon > span,
.alert-warning .pf-c-alert__icon > span,
.alert-info .pf-c-alert__icon > span,
.alert-error .pf-c-alert__icon > span,
.alert-danger .pf-c-alert__icon > span {
  display: none !important;
}
.pf-c-alert__title,
.alert-success .pf-c-alert__title,
.alert-warning .pf-c-alert__title,
.alert-info .pf-c-alert__title,
.alert-error .pf-c-alert__title,
.alert-danger .pf-c-alert__title {
  color: #282828;
  font-family: Inter;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.75px;
  font-weight: 600;
  flex: 1;
}

/* Toast variant: large (per Figma _notification large) */
.alert--lg {
  padding: 16px 24px;
  gap: 12px;
}
.alert--lg .pf-c-alert__icon {
  width: 24px;
  height: 24px;
  font-size: 18px;
}
.alert--lg .pf-c-alert__title {
  font-family: Inter;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.75px;
  color: #282828;
}

/* Verify email page: long description block per Figma 187:1973 */
.verify-email__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.verify-email__instruction {
  font-family: Inter;
  font-weight: 300;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0.48px;
  color: #6e6e6e;
  margin: 0;
  text-align: left;
}
#kc-verify-email-form {
  margin-top: 32px;
  width: 100%;
}

/* Error page: same layout as verify-email per user request */
a.error__action {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 32px;
  width: 100%;
  box-sizing: border-box;
  color: #fff !important;
}
a.error__action:hover {
  text-decoration: none;
  color: #fff !important;
}

/* Page expired: restart link below the primary continue button */
.page-expired__restart {
  text-align: center;
  margin: 16px 0 0;
  font-family: Inter;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.28px;
  color: #6e6e6e;
}
.page-expired__restart a {
  color: #06c !important;
  font-weight: 500;
  text-decoration: none;
}
.page-expired__restart a:hover {
  text-decoration: underline;
}

p.instruction {
  margin: 5px 0;
}

.pf-c-button.pf-m-control {
  border-color: rgba(230, 230, 230, 0.5);
}
.pf-c-button.pf-m-primary {
  background-color: #da1884;
  border-radius: 999px;
  padding: 16px 28px 16px 28px;
  color: #fff;
  font-family: Inter;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.32px;
  cursor: pointer;
}
.pf-c-button.pf-m-primary:disabled,
.pf-c-button.pf-m-primary[disabled] {
  background-color: #e5e5e5;
  color: #999;
  cursor: not-allowed;
}
.form-group.create-password__field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px !important;
}
.create-password__label {
  font-family: Inter;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #454e60;
  margin: 0;
}
.create-password__input-wrapper {
  position: relative;
}
.create-password__input:focus {
  border: 1px solid #280071 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(40, 0, 113, 0.12);
}
.create-password__input-wrapper .create-password__input {
  padding-right: 56px !important;
  margin: 0 !important;
}
.create-password__toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: #6e6e6e;
}
.create-password__description {
  margin-bottom: 32px;
}
.create-password__rules {
  margin-top: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(40, 0, 113, 0.12);
}
.create-password__rules[hidden] {
  display: none !important;
}
#pwd-mismatch-alert[hidden] {
  display: none !important;
}
.create-password__rules-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.create-password__rules-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Inter;
  font-size: 14px;
  line-height: 20px;
  color: #6e6e6e;
}
.create-password__rule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e5e5e5;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.create-password__rules-list li.is-ok {
  color: #2e9c5c;
}
.create-password__rules-list li.is-ok .create-password__rule-icon {
  background: #2e9c5c;
}
.create-password__rules-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 0 0 16px 0;
}
.create-password__strength-text {
  display: flex;
  justify-content: space-between;
  font-family: Inter;
  font-size: 12px;
  line-height: 16px;
  color: #6e6e6e;
  margin-bottom: 8px;
}
.create-password__strength-text strong {
  font-weight: 600;
  color: #333;
}
.create-password__strength-bar {
  height: 4px;
  border-radius: 2px;
  background: #e5e5e5;
  overflow: hidden;
}
.create-password__strength-fill {
  height: 100%;
  width: 0;
  transition: width 0.2s ease, background-color 0.2s ease;
}
.create-password__strength-fill[data-level="weak"] {
  width: 33%;
  background: #e2631c;
}
.create-password__strength-fill[data-level="medium"] {
  width: 66%;
  background: #f2a93b;
}
.create-password__strength-fill[data-level="strong"] {
  width: 100%;
  background: #2e9c5c;
}
.login-pf-header {
  text-align: center;
}
body.kc-create-password-screen .login-pf-header,
body.kc-create-password-screen .login-pf-header .title,
body.kc-reset-password-screen .login-pf-header,
body.kc-reset-password-screen .login-pf-header .title {
  text-align: left !important;
  padding-left: 0 !important;
}
body.kc-reset-password-screen .create-password__field {
  margin-bottom: 0 !important;
}
.create-password__strength[hidden] {
  display: none !important;
}
.pf-m-secondary {
  background-color: transparent !important;
  border: 1px solid #9e9e9e !important;
  border-radius: 38px;
  padding: 16px 28px 16px 28px;
  color: #280071 !important;
  font-family: Inter;
  font-size: 16px;
  font-weight: 600 !important;
  line-height: 24px;
  letter-spacing: 0.32px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.pf-m-secondary:hover {
  background-color: #f5f5f5 !important;
  color: #280071 !important;
  text-decoration: none;
}
.pf-c-form-control:not(textarea) {
  height: auto;
}
.pf-c-form-control {
  width: 100% !important;
  height: 65px !important;
  border: 1px solid #e0e0e0 !important;
  margin: 3px 0 !important;
  text-indent: 10px !important;
  font-family: Inter !important;
  font-size: 16px !important;
  line-height: 24px !important;
  letter-spacing: 0.32px !important;
  background-color: white !important;
  border-radius: 8px !important;
  padding: 16px !important;
  color: #282828 !important;
}
.pf-c-form-control::placeholder {
  color: #6e6e6e;
  opacity: 1;
}
.pf-c-input-group .pf-c-form-control {
  width: 100%;
  height: 65px;
  border: 1px solid #e0e0e0 !important;
  border-right-width: 0 !important;
  margin: 3px 0;
  text-indent: 10px;
  font-family: Inter;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.32px;
  background-color: white;
  border-radius: 8px 0 0 8px !important;
  padding: 16px;
  box-sizing: border-box;
}
.pf-c-input-group .pf-c-button {
  border: 1px solid #e0e0e0 !important;
  border-left-width: 0 !important;
  height: 65px !important;
  margin: 3px 0;
  background-color: white;
  border-radius: 0 8px 8px 0 !important;
  padding: 16px;
  box-sizing: border-box;
}
.pf-c-input-group {
  background-color: transparent !important;
}
.pf-c-button:after {
  border: none;
}

h1#kc-page-title {
  margin-top: 10px;
}

#kc-locale-dropdown {
  display: inline-block;
  position: relative;
}

#kc-locale-dropdown button#kc-current-locale-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: Inter;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.24px;
  color: #282828;
  text-transform: uppercase;
}

#kc-locale-dropdown button#kc-current-locale-link::after {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23282828' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.locale-flag {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

#kc-locale ul {
  background-color: white;
  border: 1px solid white;
  border-radius: 8px;
  display: none;
  list-style: none;
  margin: 4px 0 0;
  padding: 4px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 120px;
  z-index: 9999;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.1);
}

#kc-locale-dropdown:hover ul,
#kc-locale-dropdown:focus-within ul {
  display: block;
}

#kc-locale-dropdown ul li {
  list-style: none;
  margin: 0;
  padding: 0;
}

#kc-locale-dropdown ul li + li {
  margin-top: 2px;
}

#kc-locale-dropdown ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 4px;
  color: #282828 !important;
  font-family: Inter;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.24px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
}

#kc-locale-dropdown ul li a:hover {
  background-color: #f5f5f5;
}

#kc-locale-dropdown ul li a.locale-current {
  background-color: #f5f5f5;
  color: #280071 !important;
  font-weight: 600;
}

.login-pf .container {
  padding-top: 40px;
}

.login-pf a:hover {
  color: #0099d3;
}

#kc-logo {
  width: 100%;
}

div.kc-logo-text {
  background-image: url(../img/keycloak-logo-text.png);
  background-repeat: no-repeat;
  height: 63px;
  width: 300px;
  margin: 0 auto;
}

div.kc-logo-text span {
  display: none;
}

#kc-header {
  color: #ededed;
  overflow: visible;
  white-space: nowrap;
}

#kc-header-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0 !important;
}

#kc-content {
  width: 100%;
}

#kc-attempted-username {
  font-size: 20px;
  font-family: inherit;
  font-weight: normal;
  padding-right: 10px;
}

#kc-username {
  text-align: center;
  margin-bottom: -10px;
}

#kc-webauthn-settings-form {
  padding-top: 8px;
}

#kc-form-webauthn .select-auth-box-parent {
  pointer-events: none;
}

#kc-form-webauthn .select-auth-box-desc {
  color: var(--pf-global--palette--black-600);
}

#kc-form-webauthn .select-auth-box-headline {
  color: var(--pf-global--Color--300);
}

#kc-form-webauthn .select-auth-box-icon {
  flex: 0 0 3em;
}

#kc-form-webauthn .select-auth-box-icon-properties {
  margin-top: 10px;
  font-size: 1.8em;
}

#kc-form-webauthn .select-auth-box-icon-properties.unknown-transport-class {
  margin-top: 3px;
}

#kc-form-webauthn .pf-l-stack__item {
  margin: -1px 0;
}

#kc-content-wrapper {
  margin-top: 0;
}

#kc-form-wrapper {
  margin-top: 0;
}

#kc-info {
  margin: 20px -40px -30px;
}

#kc-info-wrapper {
  font-size: 13px;
  padding: 15px 35px;
  background-color: #f0f0f0;
}

#kc-form-options span {
  display: block;
}

#kc-form-options .checkbox {
  margin-top: 0;
  color: #72767b;
}

#kc-terms-text {
  margin-bottom: 20px;
}

#kc-registration-terms-text {
  max-height: 100px;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 5px;
}

#kc-registration {
  margin-bottom: 0;
}

/* TOTP */

.subtitle {
  text-align: right;
  margin-top: 30px;
  color: #909090;
}

.required {
  color: var(--pf-global--danger-color--200);
}

ol#kc-totp-settings {
  margin: 0;
  padding-left: 20px;
}

ul#kc-totp-supported-apps {
  margin-bottom: 10px;
}

#kc-totp-secret-qr-code {
  max-width: 150px;
  max-height: 150px;
}

#kc-totp-secret-key {
  background-color: #fff;
  color: #333333;
  font-size: 16px;
  padding: 10px 0;
}

/* OAuth */

#kc-oauth h3 {
  margin-top: 0;
}

#kc-oauth ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#kc-oauth ul li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  padding: 10px 0;
}

#kc-oauth ul li:first-of-type {
  border-top: 0;
}

#kc-oauth .kc-role {
  display: inline-block;
  width: 50%;
}

/* Code */
#kc-code textarea {
  width: 100%;
  height: 8em;
}

/* Social */
.kc-social-links {
  margin-top: 20px;
}

.kc-social-links li {
  width: 100%;
}

.kc-social-provider-logo {
  font-size: 23px;
  width: 30px;
  height: 25px;
  float: left;
}

.kc-social-gray {
  color: var(--pf-global--Color--200);
}

.kc-social-gray h2 {
  font-size: 1em;
}

.kc-social-item {
  margin-bottom: var(--pf-global--spacer--sm);
  font-size: 15px;
  text-align: center;
}

.kc-social-provider-name {
  position: relative;
}

.kc-social-icon-text {
  left: -15px;
}

.kc-social-grid {
  display: grid;
  grid-column-gap: 10px;
  grid-row-gap: 5px;
  grid-column-end: span 6;
  --pf-l-grid__item--GridColumnEnd: span 6;
}

.kc-social-grid .kc-social-icon-text {
  left: -10px;
}

.kc-login-tooltip {
  position: relative;
  display: inline-block;
}

.kc-social-section {
  text-align: center;
}

.kc-social-section hr {
  margin-bottom: 10px;
}

.kc-login-tooltip .kc-tooltip-text {
  top: -3px;
  left: 160%;
  background-color: black;
  visibility: hidden;
  color: #fff;

  min-width: 130px;
  text-align: center;
  border-radius: 2px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  padding: 5px;

  position: absolute;
  opacity: 0;
  transition: opacity 0.5s;
}

/* Show tooltip */
.kc-login-tooltip:hover .kc-tooltip-text {
  visibility: visible;
  opacity: 0.7;
}

/* Arrow for tooltip */
.kc-login-tooltip .kc-tooltip-text::after {
  content: " ";
  position: absolute;
  top: 15px;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent black transparent transparent;
}

@media (min-width: 768px) {
  #kc-container-wrapper {
    position: absolute;
    width: 100%;
  }

  .login-pf .container {
    padding-right: 80px;
  }

  #kc-locale {
    position: relative;
    text-align: right;
    z-index: 9999;
  }
}

@media (max-width: 767px) {
  .login-pf body {
    padding: 30px !important;
  }

  #kc-header {
    padding-left: 15px;
    padding-right: 15px;
    float: none;
    text-align: left;
  }
  div.kc-logo-text {
    margin: 0;
    width: 150px;
    height: 32px;
    background-size: 100%;
  }

  #kc-form {
    float: none;
  }

  #kc-info-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent;
  }

  .login-pf .container {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  #kc-locale {
    position: absolute;
    width: 200px;
    top: 20px;
    right: 20px;
    text-align: right;
    z-index: 9999;
  }
}

@media (min-height: 646px) {
  #kc-container-wrapper {
    bottom: 12%;
  }
}

@media (max-height: 645px) {
  #kc-container-wrapper {
    padding-top: 50px;
    top: 20%;
  }
}

.card-pf form.form-actions .btn {
  float: right;
  margin-left: 10px;
}

#kc-form-buttons {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Separate the "back to application" button (cancel-aia) from the submit on the
   create/change password screen only, so it does not sit glued to "Continue". */
body.kc-create-password-screen #kc-form-back {
  margin-top: 20px;
}

.login-pf-page .login-pf-brand {
  margin-top: 20px;
  max-width: 360px;
  width: 40%;
}

.select-auth-box-arrow {
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

.select-auth-box-icon {
  display: flex;
  flex: 0 0 2em;
  justify-content: center;
  margin-right: 1rem;
  margin-left: 3rem;
}

.select-auth-box-parent {
  border-top: 1px solid var(--pf-global--palette--black-200);
  padding-top: 1rem;
  padding-bottom: 1rem;
  cursor: pointer;
  text-align: left;
  align-items: unset;
  background-color: unset;
  border-right: unset;
  border-bottom: unset;
  border-left: unset;
}

.select-auth-box-parent:hover {
  background-color: #f7f8f8;
}

.select-auth-container {
  padding-bottom: 0px !important;
}

.select-auth-box-headline {
  font-size: var(--pf-global--FontSize--md);
  color: var(--pf-global--primary-color--100);
  font-weight: bold;
}

.select-auth-box-desc {
  font-size: var(--pf-global--FontSize--sm);
}

.select-auth-box-paragraph {
  text-align: center;
  font-size: var(--pf-global--FontSize--md);
  margin-bottom: 5px;
}

/*phone*/
@media (max-width: 767px) {
  .login-pf-page .card-pf {
    background-color: transparent;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    width: auto !important;
    gap: 32px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
  }

  .kc-social-grid {
    grid-column-end: 12;
    --pf-l-grid__item--GridColumnEnd: span 12;
  }

  .kc-social-grid .kc-social-icon-text {
    left: -15px;
  }
}

.login-pf-page .login-pf-signup {
  font-size: 15px;
  color: #72767b;
}
#kc-content-wrapper .row {
  margin-left: 0;
  margin-right: 0;
}

.login-pf-page.login-pf-page-accounts {
  margin-left: auto;
  margin-right: auto;
}

.login-pf-page .btn-primary {
  margin-top: 0;
}

.login-pf-page .list-view-pf .list-group-item {
  border-bottom: 1px solid #ededed;
}

.login-pf-page .list-view-pf-description {
  width: 100%;
}

#kc-form-login div.form-group:last-of-type,
#kc-register-form div.form-group:last-of-type,
#kc-update-profile-form div.form-group:last-of-type,
#kc-update-email-form div.form-group:last-of-type {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 0 !important;
}

.kc-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.kc-form__footer {
  text-align: center;
}

.no-bottom-margin {
  margin-bottom: 0;
}

#kc-back {
  margin-top: 5px;
}

/* Recovery codes */
.kc-recovery-codes-warning {
  margin-bottom: 32px;
}
.kc-recovery-codes-warning .pf-c-alert__description p {
  font-size: 0.875rem;
}
.kc-recovery-codes-list {
  list-style: none;
  columns: 2;
  margin: 16px 0;
  padding: 16px 16px 8px 16px;
  border: 1px solid #d2d2d2;
}
.kc-recovery-codes-list li {
  margin-bottom: 8px;
  font-size: 11px;
}
.kc-recovery-codes-list li span {
  color: #6a6e73;
  width: 16px;
  text-align: right;
  display: inline-block;
  margin-right: 1px;
}

.kc-recovery-codes-actions {
  margin-bottom: 24px;
}
.kc-recovery-codes-actions button {
  padding-left: 0;
}
.kc-recovery-codes-actions button i {
  margin-right: 8px;
}

.kc-recovery-codes-confirmation {
  align-items: baseline;
  margin-bottom: 16px;
}

#certificate_subjectDN {
  overflow-wrap: break-word;
}
.recoverpass {
  padding-left: 16px;
  font-family: Inter;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.32px;
  color: #6e6e6e;
  text-align: left !important;
  width: 100%;
}
.recoverpass a {
  color: #06c !important;
  font-weight: 500;
  text-decoration: none;
  margin-left: 4px;
}
.recoverpass a:hover {
  text-decoration: underline;
}
/* End Recovery codes */

/*ofa card*/
.card-pf {
  background-color: transparent;
  box-shadow: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 528px;
  max-width: 528px;
}

.card-pf-700 {
  box-sizing: content-box;
  max-width: 700px;
  width: 700px;
}

#kc-page-title {
  color: #280071;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 28px;
  line-height: 36px;
  font-family: Rubik;
}
.custom-separator {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  margin: 24px 0 0;
  width: 100%;
}

.footer {
  display: flex;
  gap: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}
.footer .footer-images {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.footer .footer-policy {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  font-family: Inter;
  color: #454e60;
  font-weight: 300;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.48px;
  text-align: center;
  width: 448px;
  max-width: 100%;
}
.footer .footer-policy a {
  color: #06c !important;
  font-weight: 500;
  text-decoration: none;
}
a {
  color: #0066cc !important;
}

.title {
  font-family: Rubik;
  font-size: 28px;
  line-height: 36px;
  color: #280071;
  font-weight: 500;
  letter-spacing: 1px;
  text-align: left;
  padding-left: 0;
  display: block;
}
.login-pf-page .login-pf-page-header,
.login-pf-header,
.card-pf > header {
  margin-bottom: 0 !important;
}

#kc-reset-password-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.custom-flex {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#kc-totp-secret-qr-code {
  max-width: 100%;
  max-height: 100%;
}

.totp-cont__body {
  font-size: var(--pf-global--FontSize--xs);
  border-radius: 16px;
}

.totp-cont__body .pf-c-card__body {
  font-size: 14px;
}

.totp-cont__ol {
  list-style: none;
}

.totp-cont__qr-cont {
  display: flex;
}

.totp-cont__title,
.totp-cont__subtitle {
  text-align: center;
}

.totp-cont__h3 {
  font-size: 18px;
}

.totp-cont__qr-code {
  max-width: 230px;
}

.totp-cont__footer {
  margin-top: 56px;
  text-align: center;
}

.totp-cont__footer__btn {
  max-width: 230px;
  margin: auto;
}

.totp-cont__body__block {
  margin-bottom: 40px;
}

.pf-c-list li + li {
  margin: 0;
}

.btn-arrow {
  width: 48px;
  height: 48px;
  cursor: pointer;
}

.btn-arrow--left {
  background: url("../img/btn-arrow-left.png");
}

.btn-arrow--top-left {
  position: fixed;
  top: 170px;
  left: 62px;
}

.pass-recovery__rules-list {
  color: #72767b;
  padding-left: 20px;
  margin: 0;
}
#kc-passwd-update-form .pf-c-input-group + div {
  margin: 16px 0;
}
#kc-passwd-update-form #kc-form-options {
  margin-top: 16px;
  margin-bottom: 16px;
}
#kc-passwd-update-form .pf-c-form__group {
  padding: 0;
}
#kc-passwd-update-form .col-xs-12,
#kc-passwd-update-form .col-sm-12,
#kc-passwd-update-form .col-md-12,
#kc-passwd-update-form .col-lg-12 {
  padding-left: 0;
  padding-right: 0;
}

/* SSO login (CONECTA-12006) */
.sso-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: #6e6e6e;
  font-family: Inter;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.28px;
}
.sso-divider::before,
.sso-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #e0e0e0;
}
.kc-sso-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.kc-button-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 28px;
  background-color: transparent;
  border: 1px solid #9e9e9e;
  border-radius: 999px;
  color: #280071 !important;
  font-family: Inter;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.32px;
  cursor: pointer;
  text-decoration: none !important;
  text-align: center;
}
#view-login[hidden],
#view-code[hidden],
#view-code-alert[hidden],
.login-pf-header[hidden],
#kc-social-providers[hidden],
.recoverpass[hidden] {
  display: none !important;
}
.kc-button-outlined:hover {
  background-color: #f5f5f5;
}
.kc-button-outlined:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(40, 0, 113, 0.16);
}
/* Filled purple variant: same shape as .kc-button-outlined but solid #280071
   with white text. Used for "Back to application" on the change-password screen. */
.kc-button-filled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 28px;
  background-color: transparent;
  border: 1px solid #9e9e9e;
  border-radius: 999px;
  color: #280071 !important;
  font-family: Inter;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.32px;
  cursor: pointer;
  text-decoration: none !important;
  text-align: center;
}
.kc-button-filled:hover {
  background-color: #f5f5f5;
}
.kc-button-filled:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(40, 0, 113, 0.16);
}
.ms-button-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.view-code-title {
  text-align: left;
  padding-left: 0;
}
#view-code {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
#view-code .custom-separator {
  margin-top: 0;
}
.back-link-wrapper {
  display: flex;
}
.back-link {
  flex: 1;
  background-color: transparent;
  border: 1px solid #9e9e9e;
  border-radius: 999px;
  padding: 16px 28px;
  color: #280071 !important;
  font-family: Inter;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.32px;
  text-align: center;
  text-decoration: none !important;
}
.back-link:hover,
.back-link:focus {
  background-color: #f5f5f5;
  color: #280071 !important;
  text-decoration: none !important;
}

/* === Generic error page === */
/* Clean full-page error matching the Angular sc-error-page design.
   The same page is shown for every error (redirect_uri, client not found,
   cookie, ...) so it never hints at what failed. */
body.error-page-body { margin: 0; background: #fff; min-height: 100vh; }
.error-page {
	box-sizing: border-box;
	min-height: 100vh;
	padding: 16px 8px;
	display: flex;
	flex-direction: column;
	text-align: center;
}
.error-page__logo img { height: 40px; width: auto; }
.error-page__content {
	flex: 1;
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	text-align: center;
}
.error-page__illustration { width: 60%; max-width: 420px; height: auto; }
.error-page__title { font-size: 2.25rem; font-weight: 900; line-height: 1.2; }
.error-page__title-1 { display: block; color: #b5b8be; }
.error-page__title-2 { display: block; color: #414954; }
.error-page__subtitle { margin-top: 8px; color: #6a7279; font-size: 0.75rem; }
.error-page__button {
	display: inline-block;
	margin-top: 32px;
	padding: 12px 28px;
	background: #414954;
	color: #fff !important;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 500;
}
.error-page__button:hover { background: #26303e; color: #fff !important; }
@media (min-width: 576px) {
	.error-page { text-align: left; }
	.error-page__content { flex-direction: row; justify-content: space-around; }
	.error-page__illustration { width: 35%; }
}
@media (min-width: 992px) {
	.error-page { padding: 48px 56px; }
	.error-page__title { font-size: 4.5rem; line-height: 90px; }
	.error-page__subtitle { font-size: 1.25rem; font-weight: 500; text-align: left; }
}
