.bp-auth {
  --bp-black: #17191d;
  --bp-burgundy: #1b2026;
  --bp-red: #d91f2d;
  --bp-bright-red: #e22a39;
  --bp-gold: #b8924a;
  --bp-cream: #eaf5fb;
  --bp-blue: #6fc6e8;
  width: min(100%, 520px);
  color: var(--bp-cream);
  font-family: inherit;
}

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

.bp-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid rgba(111, 198, 232, 0.28);
  border-radius: 14px;
  background: rgba(13, 9, 10, 0.72);
}

.bp-auth__tabs[hidden] {
  display: none;
}

.bp-auth__tab {
  min-height: 44px;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--bp-cream);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.bp-auth__tab:hover,
.bp-auth__tab:focus-visible {
  color: #fff;
  outline: none;
}

.bp-auth__tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--bp-bright-red), var(--bp-red));
  box-shadow: 0 0 18px rgba(217, 31, 45, 0.25);
}

.bp-auth__form {
  display: grid;
  gap: 9px;
}

.bp-auth__form[hidden] {
  display: none;
}

.bp-auth__label {
  margin-top: 5px;
  color: var(--bp-cream);
  font-size: 0.9rem;
  font-weight: 700;
}

.bp-auth__field {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid rgba(111, 198, 232, 0.34);
  border-radius: 10px;
  outline: none;
  background: rgba(27, 32, 38, 0.94);
  color: #fff;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.bp-auth__field::placeholder {
  color: rgba(199, 215, 224, 0.62);
}

.bp-auth__field:focus {
  border-color: var(--bp-blue);
  background: rgba(31, 37, 44, 0.98);
  box-shadow: 0 0 0 3px rgba(111, 198, 232, 0.13);
}

.bp-auth__consent,
.bp-auth__remember {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 7px 0 5px;
  color: rgba(199, 215, 224, 0.86);
  font-size: 0.78rem;
  line-height: 1.45;
}

.bp-auth__consent input,
.bp-auth__remember input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--bp-red);
}

.bp-auth a {
  color: var(--bp-blue);
  text-decoration: none;
}

.bp-auth a:hover,
.bp-auth a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.bp-auth__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 7px;
  padding: 12px 18px;
  border: 1px solid #f04a54;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--bp-bright-red), var(--bp-red));
  box-shadow: 0 9px 28px rgba(181, 18, 27, 0.28);
  color: #fff !important;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.bp-auth__button:hover,
.bp-auth__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(227, 38, 54, 0.34);
  filter: brightness(1.08);
  outline: none;
}

.bp-auth__button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.bp-auth__lost-password {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  text-align: center;
}

.bp-auth__help {
  margin: 0 0 5px;
  color: rgba(199, 215, 224, 0.86);
  font-size: 0.86rem;
  line-height: 1.5;
}

.bp-auth__pending {
  justify-items: center;
  padding: 10px 0 2px;
  text-align: center;
}

.bp-auth__pending-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 5px;
  border: 2px solid var(--bp-blue);
  border-radius: 50%;
  color: var(--bp-blue);
  font-size: 1.8rem;
  font-weight: 800;
}

.bp-auth__pending-title {
  margin: 3px 0 4px;
  color: #fff;
  font-size: 1.25rem;
}

.bp-auth__pending .bp-auth__help {
  max-width: 420px;
}

.bp-auth__text-button {
  justify-self: center;
  margin-top: 7px;
  padding: 3px;
  border: 0;
  background: transparent;
  color: var(--bp-blue);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.bp-auth__text-button:hover,
.bp-auth__text-button:focus-visible {
  color: #fff;
  text-decoration: underline;
  outline: none;
}

.bp-auth__message {
  display: none;
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 0.86rem;
  line-height: 1.4;
}

.bp-auth__message.is-visible {
  display: block;
}

.bp-auth__message.is-error {
  border: 1px solid rgba(227, 38, 54, 0.7);
  background: rgba(181, 18, 27, 0.2);
}

.bp-auth__message.is-success {
  border: 1px solid rgba(111, 198, 232, 0.55);
  background: rgba(111, 198, 232, 0.12);
}

.bp-auth__message.is-info {
  border: 1px solid rgba(199, 215, 224, 0.28);
  background: rgba(199, 215, 224, 0.08);
}

.bp-auth__trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.bp-auth--connected {
  padding: 24px;
  border: 1px solid rgba(111, 198, 232, 0.34);
  border-radius: 14px;
  background: rgba(23, 25, 29, 0.88);
  text-align: center;
}

.bp-auth__eyebrow {
  margin: 0 0 6px;
  color: var(--bp-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bp-auth__connected-name {
  margin: 0 0 15px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

@media (max-width: 480px) {
  .bp-auth__tabs {
    margin-bottom: 16px;
  }

  .bp-auth__field {
    min-height: 47px;
  }

  .bp-auth__button {
    min-height: 49px;
  }
}
