body.bic-auth-open {
  overflow: hidden;
}

[data-auth-open] {
  font: inherit;
}

.auth-footer-link {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

[data-auth-modal] {
  position: fixed;
  z-index: 10000;
  inset: 0;
}

[data-auth-modal][hidden] {
  display: none;
}

.bic-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 20, .64);
  backdrop-filter: blur(4px);
}

.bic-auth-dialog {
  position: relative;
  width: min(520px, calc(100% - 32px));
  max-height: min(780px, calc(100vh - 32px));
  margin: max(16px, 6vh) auto;
  overflow: auto;
  border-radius: 28px;
  padding: 36px 44px 40px;
  color: #1c1d1c;
  background: #fff;
  box-shadow: 0 34px 90px rgba(6, 24, 20, .28);
  font-family: 'Inter', system-ui, sans-serif;
}

.bic-auth-dialog:focus {
  outline: none;
}

.bic-auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: #5b615e;
  background: #f5f6f5;
  cursor: pointer;
  font: 400 29px/1 system-ui, sans-serif;
}

.bic-auth-close:hover,
.bic-auth-close:focus-visible {
  color: #0b231d;
  background: #e7fbf3;
}

.bic-auth-brand {
  display: flex;
  width: fit-content;
  margin: 0 auto 24px;
}

.bic-auth-brand img {
  display: block;
  width: auto;
  height: 38px;
  max-width: 220px;
  object-fit: contain;
}

.bic-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 30px;
  border-radius: 999px;
  padding: 5px;
  background: #f5f6f5;
}

.bic-auth-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #5b615e;
  background: transparent;
  cursor: pointer;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.bic-auth-tabs button[aria-selected="true"] {
  color: #06281e;
  background: #34e0a1;
  box-shadow: 0 5px 16px rgba(19, 196, 137, .18);
}

.bic-auth-heading {
  margin-bottom: 26px;
  text-align: center;
}

.bic-auth-eyebrow {
  margin: 0 0 8px;
  color: #00684a;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bic-auth-heading h2 {
  margin: 0 0 9px;
  color: #0b231d;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.bic-auth-copy {
  margin: 0;
  color: #5b615e;
  font-size: 15px;
  line-height: 1.55;
}

.bic-auth-form {
  display: grid;
  gap: 18px;
}

.bic-auth-form label {
  display: grid;
  gap: 7px;
  color: #0b231d;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.bic-auth-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #cdd1cd;
  border-radius: 14px;
  padding: 12px 15px;
  color: #1c1d1c;
  background: #fff;
  font: 400 16px/1.4 'Inter', system-ui, sans-serif;
}

.bic-auth-form input:focus {
  border-color: #13c489;
  outline: 3px solid rgba(52, 224, 161, .22);
}

.bic-auth-code {
  letter-spacing: .25em;
  text-align: center;
  font-family: 'Poppins', system-ui, sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
}

.bic-auth-check {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.bic-auth-check input {
  width: 17px;
  min-height: 17px;
  margin: 3px 0 0;
}

.bic-auth-check a,
.bic-auth-between a,
.bic-auth-link {
  color: #00684a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bic-auth-primary {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  color: #06281e;
  background: #34e0a1;
  cursor: pointer;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.bic-auth-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #13c489;
}

.bic-auth-primary:disabled {
  cursor: wait;
  opacity: .62;
}

.bic-auth-between {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  font-size: 13px;
}

.bic-auth-link {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.bic-auth-form [role="status"] {
  min-height: 21px;
  margin: 0;
  color: #00684a;
  font-size: 13px;
  text-align: center;
}

.bic-auth-form [role="status"].is-error {
  color: #a52a24;
}

@media (max-width: 620px) {
  .bic-auth-dialog {
    width: 100%;
    max-height: calc(100vh - 18px);
    margin: 18px 0 0;
    border-radius: 26px 26px 0 0;
    padding: 30px 22px max(30px, env(safe-area-inset-bottom));
  }

  .bic-auth-brand {
    margin-bottom: 20px;
  }

  .bic-auth-close {
    top: 14px;
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bic-auth-primary {
    transition: none;
  }
}
