/* Acceso original de CoreBN. La autenticación existente conserva sus contratos. */

:root {
  --auth-ink: #172033;
  --auth-muted: #6c788c;
  --auth-line: #dce5ef;
  --auth-surface: #fff;
  --auth-accent: #008d88;
  --auth-signal: #a5e75e;
  --auth-rail: #101827;
}

html,
body.corebn-auth {
  min-width: 0 !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  background: #edf2f7 !important;
}

body.corebn-auth {
  margin: 0 !important;
  color: var(--auth-ink);
  font-family: Inter, Manrope, "Segoe UI", sans-serif !important;
}

body.corebn-auth #page-container {
  display: grid !important;
  position: relative !important;
  z-index: 3;
  grid-template-columns: minmax(420px, 1.22fr) minmax(440px, .78fr);
  min-height: 100vh !important;
  background: transparent !important;
}

body.corebn-auth .login-cover {
  position: fixed !important;
  top: 18px !important;
  right: calc(39% + 9px) !important;
  bottom: 18px !important;
  left: 18px !important;
  z-index: 0 !important;
  overflow: hidden !important;
  border-radius: 30px !important;
  background: var(--auth-rail) !important;
  box-shadow: 0 28px 80px rgba(16, 24, 39, .23) !important;
}

body.corebn-auth .login-cover-image,
body.corebn-auth .login-cover-bg {
  position: absolute !important;
  inset: 0 !important;
  animation: none !important;
}

body.corebn-auth .login-cover-image {
  background-position: center !important;
  background-size: cover !important;
  filter: saturate(.72) contrast(1.04) brightness(.7);
  transform: scale(1.015);
}

body.corebn-auth .corebn-login-cover-photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
}

body.corebn-auth .login-cover-bg {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 169, 162, .32), transparent 31%),
    radial-gradient(circle at 82% 82%, rgba(165, 231, 94, .16), transparent 29%),
    linear-gradient(122deg, rgba(9, 18, 34, .93), rgba(9, 25, 38, .69)) !important;
}

body.corebn-auth .corebn-auth-story {
  display: flex;
  position: relative;
  z-index: 4;
  grid-column: 1;
  align-self: end;
  flex-direction: column;
  align-items: flex-start;
  max-width: 690px;
  padding: 70px 8vw 8vh 7vw;
  color: #fff;
}

body.corebn-auth .corebn-auth-story__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 38px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 21px;
  background: rgba(255, 255, 255, .08);
  color: #8ee2dc;
  backdrop-filter: blur(10px);
}

body.corebn-auth .corebn-auth-story__mark svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

body.corebn-auth .corebn-auth-story__eyebrow {
  margin-bottom: 13px;
  color: #bbed85;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .18em;
}

body.corebn-auth .corebn-auth-story h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 4.2vw, 66px);
  font-weight: 760;
  line-height: .99;
  letter-spacing: -.055em;
}

body.corebn-auth .corebn-auth-story p {
  max-width: 530px;
  margin: 23px 0 29px;
  color: rgba(234, 243, 250, .74);
  font-size: 15px;
  line-height: 1.62;
}

body.corebn-auth .corebn-auth-story__tenant {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 650;
}

body.corebn-auth .corebn-auth-story__tenant::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--auth-signal);
  box-shadow: 0 0 0 4px rgba(165, 231, 94, .13);
}

body.corebn-auth .login.corebn-auth-panel,
body.corebn-auth.pace-top .login.corebn-auth-panel,
body.corebn-auth.pace-top .login.corebn-auth-panel.animated,
body.corebn-auth.pace-top .login.corebn-auth-panel.fadeIn {
  display: flex !important;
  position: relative !important;
  inset: auto !important;
  z-index: 5;
  grid-column: 2;
  align-self: center;
  flex-direction: column;
  width: min(480px, calc(100% - 52px)) !important;
  max-width: 480px !important;
  max-height: calc(100vh - 42px);
  margin: 21px auto !important;
  padding: 38px 42px 27px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(220, 229, 239, .92);
  border-radius: 26px;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 26px 70px rgba(34, 50, 73, .14);
  transform: none !important;
  backdrop-filter: blur(18px);
}

body.corebn-auth .login.corebn-auth-panel::before {
  content: none !important;
  display: none !important;
}

body.corebn-auth .login.corebn-auth-panel .login-header {
  display: flex !important;
  position: relative !important;
  inset: auto !important;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  min-height: 60px;
  margin: 0 0 32px !important;
  padding: 0 !important;
}

body.corebn-auth .login.corebn-auth-panel .login-header .brand {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--auth-ink) !important;
}

body.corebn-auth .login.corebn-auth-panel .login-header .brand img {
  display: block;
  width: auto !important;
  max-width: 180px !important;
  height: auto !important;
  max-height: 58px !important;
  object-fit: contain;
}

body.corebn-auth .corebn-auth-node {
  display: inline-flex !important;
  position: static !important;
  align-items: center;
  justify-content: center;
  width: 50px !important;
  height: 50px !important;
  border: 1px solid rgba(0, 141, 136, .16);
  border-radius: 16px;
  background: #eaf8f7;
  color: var(--auth-accent);
  opacity: 1 !important;
}

body.corebn-auth .corebn-auth-node svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

body.corebn-auth .corebn-auth-copy {
  margin-bottom: 28px;
}

body.corebn-auth .corebn-auth-copy > span {
  color: var(--auth-accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.corebn-auth .corebn-auth-copy h1 {
  margin: 6px 0 7px;
  color: var(--auth-ink);
  font-size: 34px;
  font-weight: 770;
  letter-spacing: -.045em;
}

body.corebn-auth .corebn-auth-copy p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 13px;
}

body.corebn-auth .login.corebn-auth-panel .login-content {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--auth-ink) !important;
}

body.corebn-auth .corebn-auth-field {
  margin-bottom: 18px !important;
}

body.corebn-auth .corebn-auth-field label {
  display: block;
  margin-bottom: 8px;
  color: #39465a;
  font-size: 11px;
  font-weight: 750;
}

body.corebn-auth .login.corebn-auth-panel .form-control {
  width: 100% !important;
  height: 52px !important;
  padding: 0 15px !important;
  border: 1px solid var(--auth-line) !important;
  border-radius: 13px !important;
  background: #f7f9fc !important;
  color: var(--auth-ink) !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

body.corebn-auth .login.corebn-auth-panel .form-control::placeholder {
  color: #9aa6b8 !important;
}

body.corebn-auth .login.corebn-auth-panel .form-control:focus {
  border-color: rgba(0, 141, 136, .65) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(0, 141, 136, .09) !important;
}

body.corebn-auth .corebn-login-action-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 9px;
  margin-top: 8px;
}

body.corebn-auth .corebn-login-action-row-single {
  grid-template-columns: 1fr;
}

body.corebn-auth #login-submit-btn.corebn-login-submit {
  width: 100% !important;
  height: 52px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: var(--auth-ink) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 760 !important;
  box-shadow: 0 12px 23px rgba(23, 32, 51, .18) !important;
  transition: transform .18s ease, background .18s ease;
}

body.corebn-auth #login-submit-btn.corebn-login-submit:hover {
  background: #222f47 !important;
  transform: translateY(-1px);
}

body.corebn-auth #passkey-login-btn.corebn-passkey-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 54px !important;
  height: 52px !important;
  padding: 0 !important;
  border: 1px solid rgba(0, 141, 136, .18) !important;
  border-radius: 13px !important;
  background: #eaf8f7 !important;
  color: var(--auth-accent) !important;
}

body.corebn-auth #recover-login-box {
  margin-top: 17px !important;
  color: var(--auth-muted) !important;
  font-size: 11px;
  text-align: center;
}

body.corebn-auth #recover-login-box a,
body.corebn-auth #cancel-2fa-box a {
  color: var(--auth-accent) !important;
  font-weight: 750;
  text-decoration: none !important;
}

body.corebn-auth .corebn-auth-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 27px;
  padding-top: 19px;
  border-top: 1px solid #e8edf3;
  color: #8591a2;
  font-size: 10px;
}

body.corebn-auth .corebn-auth-trust span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--auth-signal);
  box-shadow: 0 0 0 4px rgba(165, 231, 94, .15);
}

body.corebn-auth .modal-content {
  overflow: hidden;
  border: 0 !important;
  border-radius: 20px !important;
  background: #fff !important;
  color: var(--auth-ink) !important;
  box-shadow: 0 30px 80px rgba(16, 24, 39, .25) !important;
}

body.corebn-auth .modal-header,
body.corebn-auth .modal-footer {
  border-color: #e5eaf1 !important;
}

body.corebn-auth .modal .form-control {
  border-color: var(--auth-line) !important;
  border-radius: 10px !important;
}

body.corebn-auth .modal .btn-primary {
  border-color: var(--auth-accent) !important;
  border-radius: 10px !important;
  background: var(--auth-accent) !important;
}

body.corebn-auth .corebn-auth-notices {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1090;
  width: min(390px, calc(100vw - 32px));
}

body.corebn-auth .corebn-auth-notice {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid #dce5ef;
  border-radius: 15px;
  background: rgba(255, 255, 255, .97);
  color: var(--auth-ink);
  box-shadow: 0 18px 45px rgba(16, 24, 39, .2);
  animation: corebn-auth-notice-in .2s ease both;
  backdrop-filter: blur(15px);
}

body.corebn-auth .corebn-auth-notice.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
}

body.corebn-auth .corebn-auth-notice__signal {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: #e95865;
  box-shadow: 0 0 0 4px rgba(233, 88, 101, .12);
}

body.corebn-auth .corebn-auth-notice--exito .corebn-auth-notice__signal,
body.corebn-auth .corebn-auth-notice--success .corebn-auth-notice__signal {
  background: var(--auth-signal);
  box-shadow: 0 0 0 4px rgba(165, 231, 94, .16);
}

body.corebn-auth .corebn-auth-notice--loader .corebn-auth-notice__signal {
  border: 2px solid rgba(0, 141, 136, .18);
  border-top-color: var(--auth-accent);
  background: transparent;
  box-shadow: none;
  animation: corebn-auth-spin .7s linear infinite;
}

body.corebn-auth .corebn-auth-notice strong {
  display: block;
  margin-bottom: 3px;
  color: var(--auth-ink);
  font-size: 12px;
}

body.corebn-auth .corebn-auth-notice p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 11px;
  line-height: 1.45;
}

@keyframes corebn-auth-notice-in {
  from { opacity: 0; transform: translateY(-8px); }
}

@keyframes corebn-auth-spin {
  to { transform: rotate(360deg); }
}

body.corebn-auth-preview #page-container {
  display: block !important;
}

body.corebn-auth-preview .corebn-auth-story {
  display: none !important;
}

body.corebn-auth-preview .login-cover {
  inset: 0 !important;
  border-radius: 0 !important;
}

body.corebn-auth-preview .login.corebn-auth-panel,
body.corebn-auth-preview.pace-top .login.corebn-auth-panel {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: min(480px, calc(100vw - 36px)) !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
}

@media (max-width: 1050px) {
  body.corebn-auth #page-container {
    grid-template-columns: minmax(330px, 1fr) minmax(420px, 1fr);
  }

  body.corebn-auth .login-cover {
    right: calc(50% + 6px) !important;
  }

  body.corebn-auth .corebn-auth-story {
    padding-right: 5vw;
    padding-left: 5vw;
  }
}

@media (max-width: 820px) {
  body.corebn-auth #page-container {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
  }

  body.corebn-auth .login-cover {
    inset: 0 !important;
    border-radius: 0 !important;
  }

  body.corebn-auth .login-cover-bg {
    background:
      radial-gradient(circle at 15% 10%, rgba(0, 169, 162, .3), transparent 32%),
      linear-gradient(132deg, rgba(9, 18, 34, .88), rgba(8, 27, 37, .8)) !important;
  }

  body.corebn-auth .corebn-auth-story {
    display: none;
  }

  body.corebn-auth .login.corebn-auth-panel,
  body.corebn-auth.pace-top .login.corebn-auth-panel,
  body.corebn-auth.pace-top .login.corebn-auth-panel.animated,
  body.corebn-auth.pace-top .login.corebn-auth-panel.fadeIn {
    grid-column: auto;
    width: min(480px, 100%) !important;
    margin: 0 !important;
  }
}

@media (max-width: 520px) {
  body.corebn-auth #page-container {
    align-items: flex-start;
    padding: 12px;
  }

  body.corebn-auth .login.corebn-auth-panel,
  body.corebn-auth.pace-top .login.corebn-auth-panel,
  body.corebn-auth.pace-top .login.corebn-auth-panel.animated,
  body.corebn-auth.pace-top .login.corebn-auth-panel.fadeIn {
    width: 100% !important;
    max-height: none;
    margin: 0 !important;
    padding: 28px 24px 22px;
    border-radius: 22px;
  }

  body.corebn-auth .login.corebn-auth-panel .login-header {
    margin-bottom: 23px !important;
  }

  body.corebn-auth .corebn-auth-copy {
    margin-bottom: 23px;
  }

  body.corebn-auth .corebn-auth-copy h1 {
    font-size: 29px;
  }
}
