:root {
  --ibc-canvas: #f7f8fa;
  --ibc-paper: #ffffff;
  --ibc-ink: #172033;
  --ibc-muted: #667085;
  --ibc-line: #dfe3e8;
  --ibc-blue: #214a75;
  --ibc-gold: #8a610a;
  --ibc-danger: #a33f4a;
  --ibc-ease: cubic-bezier(.22, .72, .24, 1);
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/authn/poppins-300-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/authn/poppins-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/authn/poppins-700-latin.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

html {
  color-scheme: light;
  background: var(--ibc-canvas);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ibc-ink);
  background:
    radial-gradient(circle at 87% 22%, rgb(33 74 117 / 5%), transparent 31rem),
    radial-gradient(circle at 10% 92%, rgb(185 135 24 / 3.5%), transparent 28rem),
    var(--ibc-canvas) !important;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  top: 0;
  left: clamp(24px, 4vw, 72px);
  width: 1px;
  height: 100vh;
  content: "";
  background: rgb(23 32 51 / 4%);
  pointer-events: none;
}

#root {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: transparent !important;
}

#root,
#root button,
#root input,
#root a {
  font-family: inherit !important;
}

#root > .layout,
#root .layout {
  width: 100% !important;
  min-height: 100vh !important;
  margin: 0 !important;
  background: transparent !important;
}

#root .layout > :not(.content) {
  display: none !important;
}

#root .layout > .content {
  position: relative !important;
  inset: auto !important;
  width: min(calc(100% - clamp(64px, 10vw, 160px)), 1240px) !important;
  max-width: 1240px !important;
  min-height: 100svh !important;
  margin-inline: auto !important;
  padding: clamp(64px, 9vh, 112px) 0 !important;
  display: grid !important;
  grid-template-columns: minmax(360px, 440px) minmax(430px, 1fr);
  align-items: center !important;
  align-content: safe center !important;
  justify-content: center !important;
  justify-items: center;
  gap: clamp(80px, 10vw, 148px);
  color: var(--ibc-ink) !important;
  background: transparent !important;
}

#root .ibc-original-marketing,
#root header,
#root footer,
#root .ibc-native-heading,
#root [role="tablist"],
#root .nav-tabs,
#root .ibc-native-login-alert {
  display: none !important;
}

#root .ibc-auth-form-panel {
  position: relative;
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 !important;
  flex: 0 1 440px !important;
  background: transparent !important;
}

#root .ibc-auth-form-panel::after {
  position: absolute;
  top: 0;
  right: clamp(-74px, -5vw, -44px);
  width: 1px;
  height: 100%;
  content: "";
  background: linear-gradient(
    to bottom,
    transparent,
    var(--ibc-line) 16%,
    var(--ibc-line) 84%,
    transparent
  );
}

#root .mw-xs {
  width: 100% !important;
  max-width: 440px !important;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ibc-ink);
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: ibcFormEnter 520ms var(--ibc-ease) both;
}

.ibc-login-welcome {
  margin-bottom: 42px;
}

.ibc-card-brand {
  margin-bottom: clamp(54px, 8vh, 88px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ibc-card-brand img {
  width: 28px;
  height: 34px;
  object-fit: contain;
}

.ibc-card-brand small {
  display: block;
  color: var(--ibc-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ibc-login-welcome > span {
  display: block;
  margin-bottom: 12px;
  color: var(--ibc-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ibc-login-welcome h1 {
  margin: 0;
  color: var(--ibc-ink);
  font-size: clamp(40px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.ibc-login-welcome p {
  max-width: 390px;
  margin: 14px 0 0;
  color: var(--ibc-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

#root form {
  width: 100%;
}

#root .form-group,
#root .pgn__form-group {
  position: relative;
  margin-bottom: 22px;
  display: block !important;
}

#root .form-group > *:not(.ibc-field-label):not(.ibc-field-error),
#root .pgn__form-group > *:not(.ibc-field-label):not(.ibc-field-error) {
  width: 100%;
  max-width: none;
}

#root label:not(.ibc-field-label) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#root .ibc-field-label {
  margin: 0 0 9px;
  display: block;
  color: var(--ibc-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.005em;
}

.ibc-user-field,
.ibc-password-field {
  position: relative;
}

#root input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  min-height: 56px;
  padding: 14px 52px 14px 48px;
  border: 1px solid var(--ibc-line) !important;
  border-radius: 14px !important;
  color: var(--ibc-ink) !important;
  background: rgb(255 255 255 / 72%) !important;
  box-shadow:
    0 1px 1px rgb(23 32 51 / 2%),
    inset 0 1px 0 rgb(255 255 255 / 80%) !important;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  caret-color: var(--ibc-blue);
  transition:
    border-color 180ms var(--ibc-ease),
    box-shadow 180ms var(--ibc-ease),
    background-color 180ms var(--ibc-ease);
}

#root input::placeholder {
  color: var(--ibc-muted);
  opacity: .72;
}

#root input:hover:not(:disabled) {
  border-color: rgb(33 74 117 / 32%) !important;
  background: var(--ibc-paper) !important;
}

#root input:focus {
  border-color: rgb(33 74 117 / 72%) !important;
  outline: 0 !important;
  background: var(--ibc-paper) !important;
  box-shadow:
    0 0 0 3px rgb(33 74 117 / 10%),
    0 2px 6px rgb(23 32 51 / 4%) !important;
}

#root input:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.ibc-user-field::before,
.ibc-password-field::before {
  position: absolute;
  top: 50px;
  left: 17px;
  z-index: 2;
  width: 18px;
  height: 18px;
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .72;
  pointer-events: none;
  transition: opacity 180ms var(--ibc-ease);
}

.ibc-user-field:focus-within::before,
.ibc-password-field:focus-within::before {
  opacity: 1;
}

.ibc-user-field::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23214a75' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 20a6 6 0 0 0-12 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.ibc-password-field::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23214a75' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='10' rx='2.5'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

#root button[aria-label*="assword"],
#root button[aria-label*="ontraseña"],
#root .pgn__form-control-decorator-group button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0 !important;
  display: grid;
  place-items: center;
  color: transparent !important;
  background: transparent !important;
  border-radius: 10px !important;
}

#root .pgn__form-control-decorator-trailing {
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%);
}

#root button[aria-label*="assword"]:hover,
#root button[aria-label*="ontraseña"]:hover,
#root .pgn__form-control-decorator-group button:hover {
  background: rgb(33 74 117 / 5%) !important;
}

#root button[aria-label*="assword"]:focus-visible,
#root button[aria-label*="ontraseña"]:focus-visible,
#root .pgn__form-control-decorator-group button:focus-visible {
  outline: 2px solid rgb(33 74 117 / 45%) !important;
  outline-offset: -3px;
}

#root button[aria-label*="assword"] svg,
#root button[aria-label*="ontraseña"] svg,
#root .pgn__form-control-decorator-group button svg {
  width: 19px;
  height: 19px;
  color: var(--ibc-blue);
  opacity: .72;
  transition: opacity 160ms var(--ibc-ease);
}

#root button[aria-label*="assword"]:hover svg,
#root button[aria-label*="ontraseña"]:hover svg,
#root .pgn__form-control-decorator-group button:hover svg {
  opacity: 1;
}

#root button[aria-label*="assword"]::before,
#root button[aria-label*="ontraseña"]::before,
#root .pgn__form-control-decorator-group button::before {
  display: none;
}

.ibc-field-error,
#root .invalid-feedback {
  margin-top: 8px;
  color: var(--ibc-danger) !important;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.ibc-field-invalid input,
#root input[aria-invalid="true"] {
  border-color: var(--ibc-danger) !important;
  box-shadow: 0 0 0 3px rgb(163 63 74 / 8%) !important;
}

.ibc-general-alert {
  margin: -18px 0 26px;
  padding: 13px 15px;
  border: 1px solid rgb(163 63 74 / 22%);
  border-radius: 12px;
  color: var(--ibc-danger);
  background: rgb(163 63 74 / 5%);
  font-size: 13px;
  line-height: 1.55;
}

.ibc-general-alert[hidden],
.ibc-field-error[hidden] {
  display: none !important;
}

#root .btn-primary,
#root #sign-in {
  position: relative;
  width: 100%;
  min-height: 56px;
  margin: 10px 0 0;
  padding: 14px 24px !important;
  display: block;
  border: 1px solid var(--ibc-blue) !important;
  border-radius: 14px !important;
  color: var(--ibc-paper) !important;
  background: var(--ibc-blue) !important;
  box-shadow:
    0 1px 1px rgb(23 32 51 / 8%),
    0 6px 16px rgb(33 74 117 / 10%) !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
  cursor: pointer;
  transition:
    transform 170ms var(--ibc-ease),
    box-shadow 170ms var(--ibc-ease),
    opacity 170ms var(--ibc-ease);
}

#root .btn-primary:hover:not(:disabled),
#root #sign-in:hover:not(:disabled) {
  box-shadow:
    0 2px 3px rgb(23 32 51 / 9%),
    0 9px 22px rgb(33 74 117 / 14%) !important;
  opacity: .96;
  transform: translateY(-1px);
}

#root .btn-primary:focus-visible,
#root #sign-in:focus-visible {
  outline: 3px solid rgb(33 74 117 / 20%) !important;
  outline-offset: 3px;
}

#root .btn-primary:active:not(:disabled),
#root #sign-in:active:not(:disabled) {
  box-shadow: 0 1px 3px rgb(23 32 51 / 10%) !important;
  transform: translateY(0) scale(.995);
}

#root .btn-primary:disabled,
#root #sign-in:disabled {
  cursor: wait;
  opacity: .58;
}

#root .btn-primary.ibc-button-loading,
#root #sign-in.ibc-button-loading {
  padding-left: 52px !important;
}

#root .btn-primary.ibc-button-loading::before,
#root #sign-in.ibc-button-loading::before {
  position: absolute;
  top: 50%;
  left: calc(50% - 66px);
  width: 17px;
  height: 17px;
  border: 2px solid rgb(255 255 255 / 34%);
  border-top-color: var(--ibc-paper);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
  animation: ibcSpin 700ms linear infinite;
}

#root a {
  color: var(--ibc-blue) !important;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: opacity 160ms var(--ibc-ease);
}

#root a:hover {
  text-decoration: underline;
  opacity: .78;
}

#root a:focus-visible {
  outline: 2px solid rgb(33 74 117 / 36%);
  outline-offset: 3px;
  border-radius: 3px;
}

.ibc-forgot-link {
  width: fit-content;
  min-height: 40px;
  margin: 10px auto 0;
  padding: 8px 6px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ibc-login-support {
  margin: 10px 0 0;
  color: var(--ibc-muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.ibc-login-support a {
  font-size: inherit !important;
  font-weight: 700;
}

.ibc-institutional-aside {
  position: relative;
  width: 100%;
  max-width: 570px;
  padding-top: 6px;
  color: var(--ibc-ink);
  animation: ibcAsideEnter 620ms 70ms var(--ibc-ease) both;
}

.ibc-institutional-brand {
  margin-bottom: clamp(64px, 10vh, 108px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.ibc-institutional-aside > .ibc-institutional-brand > img {
  width: 44px;
  height: 52px;
  display: block;
  object-fit: contain;
}

.ibc-institution-name strong,
.ibc-institution-name small {
  display: block;
}

.ibc-institution-name strong {
  max-width: 320px;
  color: var(--ibc-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.ibc-institution-name small {
  margin-top: 3px;
  color: var(--ibc-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ibc-editorial-kicker {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ibc-gold);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ibc-editorial-kicker::before {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
}

.ibc-institutional-aside h2 {
  max-width: 570px;
  margin: 0 0 24px;
  color: var(--ibc-ink);
  font-size: clamp(54px, 5.2vw, 72px);
  font-weight: 300;
  line-height: .99;
  letter-spacing: -.058em;
}

.ibc-institutional-aside p {
  max-width: 480px;
  margin: 0;
  color: var(--ibc-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.ibc-decorative-line {
  width: 72px;
  height: 1px;
  margin-top: 34px;
  display: block;
  background: var(--ibc-line);
}

#ibc-login-transition {
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.ibc-swipe-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--ibc-paper);
  background: var(--ibc-blue);
  transform: translateY(101%);
}

.ibc-swipe-mark {
  width: 52px;
  height: 61px;
  display: grid;
  place-items: center;
}

.ibc-swipe-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ibc-swipe-panel strong {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.01em;
}

#ibc-login-transition.active {
  visibility: visible;
}

#ibc-login-transition.active .ibc-swipe-panel {
  animation: ibcLoginSwipe 700ms cubic-bezier(.72, 0, .22, 1) forwards;
}

@keyframes ibcFormEnter {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes ibcAsideEnter {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes ibcLoginSwipe {
  from { transform: translateY(101%); }
  to { transform: translateY(0); }
}

@keyframes ibcSpin {
  to { transform: translateY(-50%) rotate(360deg); }
}

@media (max-width: 1023px) {
  body::before {
    left: 32px;
  }

  #root .layout > .content {
    width: min(calc(100% - 80px), 760px) !important;
    padding-block: 64px !important;
    grid-template-columns: 1fr;
    align-content: safe center !important;
    gap: 64px;
  }

  #root .ibc-auth-form-panel,
  #root .mw-xs {
    max-width: 560px !important;
  }

  #root .ibc-auth-form-panel::after {
    top: auto;
    right: auto;
    bottom: -32px;
    left: 0;
    width: min(100%, 560px);
    height: 1px;
    background: linear-gradient(to right, var(--ibc-line), transparent);
  }

  .ibc-card-brand {
    margin-bottom: 48px;
  }

  .ibc-institutional-aside {
    max-width: 640px;
  }

  .ibc-institutional-brand {
    display: none;
  }

  .ibc-institutional-aside h2 {
    max-width: 620px;
    font-size: clamp(46px, 8vw, 64px);
  }
}

@media (max-width: 599px) {
  body::before {
    left: 20px;
  }

  #root .layout > .content {
    width: min(calc(100% - 48px), 480px) !important;
    min-height: 100svh !important;
    padding-block: 32px 48px !important;
    align-content: safe center !important;
    gap: 44px;
  }

  #root .ibc-auth-form-panel {
    display: contents;
  }

  #root .mw-xs {
    display: contents;
  }

  #root .ibc-login-welcome {
    margin: 0;
    display: contents;
  }

  .ibc-card-brand {
    margin: 0 0 24px;
    grid-row: 1;
  }

  .ibc-login-welcome > span,
  .ibc-login-welcome h1,
  .ibc-login-welcome p {
    display: none;
  }

  .ibc-institutional-aside {
    grid-row: 2;
    padding: 0;
  }

  .ibc-editorial-kicker {
    margin-bottom: 14px;
  }

  .ibc-institutional-aside h2 {
    max-width: 420px;
    margin-bottom: 16px;
    font-size: clamp(39px, 12vw, 52px);
    line-height: 1.02;
  }

  .ibc-institutional-aside p {
    font-size: 14px;
    line-height: 1.65;
  }

  .ibc-decorative-line {
    display: none;
  }

  #root .ibc-login-form {
    grid-row: 3;
    display: block;
  }

  #root .ibc-auth-form-panel::after {
    display: none;
  }

  #root .form-group,
  #root .pgn__form-group {
    margin-bottom: 18px;
  }

  #root input:not([type="checkbox"]):not([type="radio"]),
  #root .btn-primary,
  #root #sign-in {
    min-height: 54px;
  }
}

@media (max-width: 359px) {
  #root .layout > .content {
    width: calc(100% - 36px) !important;
  }

  .ibc-institutional-aside h2 {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}