/* Internet Banking Inter — contadigital.inter.co */
:root {
  --ib-orange: #ea7100;
  --ib-orange-dark: #d56500;
  --ib-black: #161616;
  --ib-gray-100: #f5f6fa;
  --ib-gray-200: #dedfe4;
  --ib-gray-400: #6a6c72;
  --ib-gray-500: #3f3f46;
  --ib-page-bg: #fbfcff;
  --ib-font: 'Sora', 'Inter', Arial, Helvetica, sans-serif;
  --ib-max: 500px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body.ib-page {
  margin: 0;
  font-family: var(--ib-font);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ib-black);
  background: var(--ib-page-bg);
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.ib-main {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  min-height: 100vh;
  background: var(--ib-page-bg);
}

@media (min-width: 1000px) {
  .ib-main {
    display: flex;
    align-items: stretch;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }
}

.ib-promo {
  display: none;
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
}

@media (min-width: 1000px) {
  .ib-promo {
    display: block;
    flex: 1 1 50%;
    width: 50%;
    height: 100%;
    min-height: 100%;
  }
}

.ib-promo__visual {
  position: absolute;
  inset: 0;
  background-image: url('/images/ib-promo-hero.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 11%,
    #000 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 11%,
    #000 82%,
    transparent 100%
  );
}

.ib-promo::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
}

.ib-promo__overlay {
  position: absolute;
  left: 2.5rem;
  bottom: 2.5rem;
  z-index: 2;
  max-width: 18.125rem;
  padding: 0;
  background: none;
  color: #fff;
}

.ib-promo__caption {
  margin: 0 0 1.5rem;
  max-width: 17.1875rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
}

.ib-promo__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

.ib-promo__store {
  display: inline-flex;
  line-height: 0;
  margin-right: 1rem;
  opacity: 0.98;
  transition: opacity 0.15s ease;
}

.ib-promo__store:last-child {
  margin-right: 0;
}

.ib-promo__store:hover {
  opacity: 1;
}

.ib-promo__store--static {
  cursor: default;
  pointer-events: none;
}

body.ib-page--qr-only {
  user-select: none;
}

body.ib-page--qr-only .ib-promo,
body.ib-page--qr-only .ib-footer,
body.ib-page--qr-only .ib-login__head,
body.ib-page--qr-only .ib-security {
  pointer-events: none;
}

body.ib-page--qr-only .ib-promo__store--static:hover {
  opacity: 0.98;
}

.ib-login-wrap {
  width: 100%;
  padding: 1.5rem 1.5rem 2rem;
}

@media (min-width: 1000px) {
  .ib-login-wrap {
    flex: 1 1 50%;
    width: 50%;
    height: 100%;
    background: var(--ib-page-bg);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem;
    overflow: hidden auto;
  }

  .ib-login-wrap .ib-login-embedded {
    width: 100%;
    max-width: var(--ib-max);
    margin: 0 auto;
  }
}

.ib-login-content {
  width: 100%;
}

@media (min-width: 1000px) {
  .ib-login-content {
    max-width: var(--ib-max);
    min-width: var(--ib-max);
    margin: 0 auto;
  }
}

.ib-login__head {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 1000px) {
  .ib-login__head {
    justify-content: center;
    margin-bottom: 2.5rem;
  }
}

.ib-logo {
  display: inline-flex;
  line-height: 0;
}

.ib-promo__card {
  display: none;
}

/* Login embutido (sem drawer lateral) */
.ib-login-embedded.access-drawer {
  position: static;
  inset: auto;
  z-index: auto;
  pointer-events: auto;
}

.ib-login-embedded.access-drawer[hidden] {
  display: block !important;
}

.ib-login-embedded .access-drawer__backdrop,
.ib-login-embedded .access-drawer__close {
  display: none !important;
}

.ib-login-embedded .access-drawer__panel {
  position: static;
  transform: none !important;
  width: 100%;
  max-width: none;
  height: auto;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.ib-login-embedded .access-drawer__body {
  align-items: center;
  text-align: left;
  padding: 0;
  max-width: none;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1000px) {
  .ib-login-embedded .access-drawer__body {
    min-width: 0;
    max-width: var(--ib-max);
  }

  .access-drawer__login-step {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .ib-login__copy {
    width: 100%;
  }

  .ib-login__qr-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
  }
}

.ib-login-embedded .access-drawer__title {
  font-size: 1.125rem;
  font-weight: 700;
  max-width: none;
  margin-bottom: 1rem;
}

.ib-login-embedded .access-drawer__title--mobile-only {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1000px) {
  .ib-login-embedded .access-drawer__title--mobile-only {
    display: none;
  }
}

.ib-login-embedded .access-drawer__title--desktop-only {
  display: none;
}

@media (min-width: 1000px) {
  .ib-login-embedded .access-drawer__title--desktop-only {
    display: block;
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--ib-gray-500);
  }
}

.ib-steps {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0.875rem;
}

@media (min-width: 1000px) {
  .ib-steps {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
  }

  .ib-steps li {
    font-size: 1rem;
    line-height: 1.25;
    color: var(--ib-gray-500);
  }
}

.ib-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ib-gray-500);
}

.ib-steps__num {
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  border-radius: 50%;
  background: var(--ib-black);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  line-height: 1.5rem;
}

.ib-steps strong {
  font-weight: 700;
  color: var(--ib-black);
}

.ib-login-embedded .access-drawer__qr-frame {
  max-width: 15rem;
  margin: 0 auto;
  border: none;
  border-radius: 0;
  padding: 0;
  aspect-ratio: 1;
  width: 13.75rem;
}

@media (min-width: 1000px) {
  .ib-login-embedded .access-drawer__qr-frame {
    margin: 0 auto;
    max-width: 13.75rem;
    width: 13.75rem;
  }
}

.ib-security {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--ib-gray-400);
  display: none;
}

@media (min-width: 1000px) {
  .ib-security {
    display: block;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
  }
}

.ib-security a {
  color: var(--ib-orange);
  font-weight: 600;
}

.ib-alt-access {
  border-top: 1px solid var(--ib-gray-200);
  padding-top: 0.75rem;
  display: none;
}

@media (min-width: 1000px) {
  .ib-alt-access {
    display: block;
  }
}

.ib-alt-access summary {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ib-black);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ib-alt-access summary::-webkit-details-marker {
  display: none;
}

.ib-alt-access summary::after {
  content: '▾';
  color: var(--ib-gray-400);
}

.ib-alt-access[open] summary::after {
  transform: rotate(180deg);
}

.ib-alt-access p {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--ib-gray-400);
}

/* Survey + login compartilhado */
.access-drawer__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  flex-shrink: 0;
}

.ib-login-embedded .access-drawer__icon {
  margin-bottom: 1rem;
}

.access-drawer__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.access-drawer__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ib-gray-500);
  margin: 0 0 1.5rem;
}

.access-drawer__text strong {
  font-weight: 700;
}

.access-drawer__text--mobile {
  display: none;
}

.qr-login--mobile .access-drawer__text--desktop {
  display: none;
}

.qr-login--mobile .access-drawer__text--mobile {
  display: block;
}

.access-drawer__mobile-login {
  width: 100%;
  max-width: 21rem;
  margin: 0 auto 1rem;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.qr-login--mobile .access-drawer__mobile-login {
  display: flex;
}

.access-drawer__mobile-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ib-gray-400);
  max-width: 21rem;
  line-height: 1.45;
  text-align: center;
}

.access-drawer__mobile-hint--refresh {
  color: var(--ib-orange-dark);
  font-weight: 600;
}

.access-drawer__return-banner {
  width: 100%;
  max-width: 21rem;
  margin: 0 0 0.25rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: #e8f4fd;
  border: 1px solid #90caf9;
  color: #0d47a1;
  text-align: center;
}

.access-drawer__return-banner-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1565c0;
}

.access-drawer__return-banner-text {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.access-drawer__return-banner-cta {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #37474f;
  font-weight: 600;
}

.access-drawer__open-app {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  background: var(--ib-orange);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.28);
}

.access-drawer__open-app:active {
  opacity: 0.92;
}

.access-drawer__open-app.is-link-loading {
  opacity: 0.55;
  pointer-events: none;
}

.access-drawer__mobile-loading {
  width: 100%;
  max-width: 21rem;
  margin: 0 auto 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  color: var(--ib-gray-400);
}

.access-drawer__mobile-loading[hidden] {
  display: none !important;
}

.access-drawer__survey-hint {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--ib-gray-400);
  text-align: center;
}

.access-drawer__has-app-notice {
  width: 100%;
  max-width: 21rem;
  margin: 0 auto 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: #fff8e6;
  border: 1px solid #ffd591;
  color: #5c4a00;
}

.access-drawer__has-app-notice-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e65100;
}

.access-drawer__has-app-notice-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.access-drawer__app-survey-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 21rem;
  margin: 0 auto;
}

.access-drawer__survey-no {
  background: #fff;
  color: var(--ib-orange);
  border: 2px solid var(--ib-orange);
  box-shadow: none;
}

.access-drawer__app-survey[hidden],
.access-drawer__login-step[hidden] {
  display: none !important;
}

html.access-survey-lock .access-drawer__close,
html.access-survey-lock .access-drawer__backdrop {
  pointer-events: none;
  opacity: 0.35;
}

.qr-login--mobile .access-drawer__qr-frame--desktop {
  display: none !important;
}

.access-drawer__status {
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  text-align: center;
  line-height: 1.45;
}

.access-drawer__status.status--loading,
.access-drawer__status.status--active {
  display: none;
}

.access-drawer__status.status--error {
  background: #fef0ed;
  color: #c62828;
  display: block;
}

.access-drawer__status.status--success {
  background: #e9f8f0;
  color: #00aa4f;
  display: block;
}

.access-drawer__qr-frame {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.access-drawer__qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none !important;
}

.access-drawer__qr-img.is-ready {
  display: block !important;
}

.access-drawer__qr-loader,
.access-drawer__qr-waiting {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 2;
}

.access-drawer__qr-frame:not(.is-ready):not(.is-waiting) .access-drawer__qr-loader {
  display: flex;
}

.access-drawer__qr-frame.is-waiting .access-drawer__qr-waiting {
  display: flex;
}

.access-drawer__qr-frame.is-waiting .access-drawer__qr-img {
  display: none !important;
}

.access-drawer__spinner {
  width: 2.75rem;
  height: 2.75rem;
  border: 3px solid #fff2e7;
  border-top-color: var(--ib-orange);
  border-radius: 50%;
  animation: ib-spin 0.75s linear infinite;
}

.access-drawer__spinner--inline {
  position: static;
  width: 2rem;
  height: 2rem;
  border-width: 3px;
  margin: 0;
}

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

.access-drawer__waiting-text {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--ib-gray-400);
  text-align: center;
  width: 100%;
}

.access-drawer__footer {
  display: none;
}

.ib-footer {
  border-top: 1px solid var(--ib-gray-200);
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ib-gray-400);
}

@media (min-width: 1000px) {
  .ib-footer {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
}

.btn--primary {
  background: var(--ib-orange);
  color: #fff;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mobile-qr-redirect {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(22, 22, 22, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.mobile-qr-redirect-open {
  overflow: hidden;
}

.mobile-qr-redirect__box {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  max-width: 22rem;
  text-align: center;
}

.mobile-qr-redirect__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #fff2e7;
  border-top-color: var(--ib-orange);
  border-radius: 50%;
  animation: ib-spin 0.75s linear infinite;
  margin: 0 auto 1rem;
}

.mobile-qr-redirect__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.ib-login-embedded .access-drawer__app-survey {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
}

.ib-login-embedded .access-drawer__app-survey .access-drawer__title,
.ib-login-embedded .access-drawer__app-survey .access-drawer__text {
  text-align: center;
}

@media (max-width: 999px) {
  .ib-login-embedded .access-drawer__body {
    align-items: center;
    text-align: center;
  }

  .ib-login-embedded .access-drawer__app-survey .access-drawer__title,
  .ib-login-embedded .access-drawer__app-survey .access-drawer__text {
    text-align: center;
  }
}
