/* File: assets/css/bc-login-modal.css */

:root {
  --bc-login-accent: #10b981;
  --bc-login-accent-soft: rgba(16, 185, 129, 0.07);
  --bc-login-border: #e5e7eb;
  --bc-login-text: #111827;
  --bc-login-muted: #6b7280;
  --bc-login-bg: #ffffff;
  --bc-login-overlay: rgba(15, 23, 42, 0.78);
}

.bc-login-scope,
.bc-login-scope * {
  /* font-family: var(--bcntf-font-family, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif); */
  /* font-size:   var(--bcntf-font-size, 14px); */
  /* line-height: var(--bcntf-line-height, 1.5); */
  /* -webkit-font-smoothing: antialiased; */
  /* -moz-osx-font-smoothing: grayscale; */
  box-sizing: border-box;
}

.bc-login-checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid var(--bc-login-border);
  border-radius: 10px;
  background: #f9fafb;
  cursor: pointer;
  transition:
    border-color .16s ease,
    background-color .16s ease,
    box-shadow .16s ease;
}

.bc-login-checkbox-field:hover {
  background: #ffffff;
  border-color: #d1d5db;
}

.bc-login-checkbox-field input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--bc-login-accent);
  cursor: pointer;
}

.bc-login-checkbox-field input[type="checkbox"]:focus {
  outline: none;
}

.bc-login-checkbox-field input[type="checkbox"]:focus + span {
  color: #111827;
}

.bc-login-checkbox-field span {
  display: block;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
}

.bc-account-icon {
  --bc-size: 40px;
  width: var(--bc-size);
  height: var(--bc-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #111827;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  transition:
    background-color .16s ease,
    border-color .16s ease,
    transform .08s ease,
    box-shadow .16s ease,
    opacity .16s ease;
}

.bc-account-icon--textonly {
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0;
  display: inline;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  line-height: 1;
  color: #fff;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  vertical-align: baseline;
}

.bc-account-icon--textonly:hover,
.bc-account-icon--textonly:focus,
.bc-account-icon--textonly:active,
.bc-account-icon--textonly:visited {
  color: #fff;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
}

.bc-account-icon--textonly svg,
.bc-account-icon--textonly::before,
.bc-account-icon--textonly::after {
  display: none !important;
}

.bc-account-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.bc-account-icon:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: #e5e7eb;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  opacity: 0.96;
}

.bc-account-icon:active {
  transform: translateY(0);
  box-shadow: none;
}

.bc-login-btn {
  all: unset;
}

.bc-login-btn.bc-account-icon {
  all: revert;
}

.bc-login-overlay {
  position: fixed;
  inset: 0;
  display: none;
  /* align-items:center; */
  justify-content: center;
  background: var(--bc-login-overlay);
  z-index: 999999;
  /* padding: 5px; */
}

.bc-login-overlay.is-open {
  display: flex;
}

.bc-login-modal {
  width: 100%;
  background: var(--bc-login-bg);
  color: var(--bc-login-text);
  border-radius: 15px;
  padding: 5px 15px;
  position: relative;
  overflow: auto;
}

.bc-login-side h3 {
  color: #111827 !important;
}

.bc-login-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.08), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.09), transparent 60%);
  pointer-events: none;
  opacity: 0.85;
}

.bc-login-modal-inner {
  position: relative;
  z-index: 1;
}

.bc-login-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--bc-login-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  transition:
    background-color .14s ease,
    color .14s ease,
    transform .08s ease,
    box-shadow .14s ease;
  z-index: 99;
}

.bc-login-close:hover {
  background: #f3f4f6;
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.bc-login-close:active {
  transform: translateY(0);
  box-shadow: none;
}

.bc-login-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 5px 0px;
}

.bc-login-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--bc-login-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bc-login-accent);
}

.bc-login-header-main {
  flex: 1;
}

.bc-login-title {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 700;
}

.bc-login-subtitle {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.bc-login-tabs {
  display: inline-flex;
  /* gap:6px; */
  padding: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.3);
  margin: 15px 0 14px;
}

.bc-login-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: #4b5563;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color .16s ease,
    color .16s ease,
    box-shadow .16s ease;
  transition-delay: 0.1s;
  -webkit-tap-highlight-color: transparent;
}

#bc-tab-login-btn {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

#bc-tab-register-btn {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

.bc-login-tab[aria-selected="true"] {
  background: var(--bc-login-accent);
  color: #f9fafb;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.45);
  transition-delay: 0s;
}

.bc-login-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bc-login-main {
  flex: 1;
}

.bc-login-side {
  flex: 0 0 auto;
  font-size: 12px;
  color: #6b7280;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  padding: 10px 11px;
  background: rgba(249, 250, 251, 0.9);
}

.bc-login-side h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin: 0 0 6px;
  color: #4b5563;
}

.bc-login-side ul {
  margin: 0;
  padding-left: 17px;
}

.bc-login-side li {
  margin: 0 0 4px;
}

.bc-login-form {
  display: grid;
  gap: 10px;
}

.bc-login-field span {
  display: block;
  font-size: 12px;
  color: #374151;
  margin-bottom: 5px;
  margin-left: 10px;
}

.bc-login-field input {
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid var(--bc-login-border);
  font-size: 14px;
  outline: none;
  background: #f9fafb;
  transition:
    border-color .16s ease,
    background-color .16s ease,
    box-shadow .16s ease;
}

.bc-login-field input:focus {
  border-color: var(--bc-login-accent);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4),
    0 0 0 4px rgba(16, 185, 129, 0.12);
}

.bc-login-field-pw {
  position: relative;
}

.bc-login-pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  /* transform:translateY(-50%); */
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: #9ca3af;
  padding: 3px 6px;
  font-size: 13px;
  line-height: 1;
}

.bc-login-pw-toggle:hover {
  background: #e5e7eb;
  color: #4b5563;
}

.bc-login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #4b5563;
  margin-top: 4px;
}

.bc-login-remember input {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.bc-login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.bc-login-submit {
  appearance: none;
  border: none;
  background: var(--bc-login-accent);
  color: #ecfdf5;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    background-color .16s ease,
    box-shadow .16s ease,
    transform .08s ease;
}

/* Button state spans (fix disappearing text) */
.bc-login-submit span[data-state="idle"],
.bc-login-submit span[data-state="loading"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bc-login-submit span[hidden] {
  display: none !important;
}

.bc-login-submit span[data-state="loading"]::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: #ffffff;
  animation: bc-login-spin .7s linear infinite;
}

.bc-login-submit:hover {
  box-shadow: -7px 0px 7px rgba(16, 185, 129, 0.45);
}

.bc-login-submit:active {
  box-shadow: -7px 0px 7px rgba(16, 185, 129, 0.45);
}

.bc-login-submit[disabled] {
  opacity: .7;
  cursor: not-allowed;
  box-shadow: none;
}

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

.bc-login-forgot {
  font-size: 12px;
  color: #4b5563;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bc-login-forgot:hover {
  color: #111827;
}

.bc-login-error,
.bc-login-success {
  margin: 6px 0 0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

.bc-login-error:not([hidden]),
.bc-login-success:not([hidden]) {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.bc-login-error {
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fee2e2;
}

.bc-login-success {
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.bc-login-error::before,
.bc-login-success::before {
  content: "";
  margin-top: 3px;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.bc-login-error::before {
  background: #dc2626;
}

.bc-login-success::before {
  background: #10b981;
}

.bc-login-progress {
  position: relative;
  height: 4px;
  background: rgba(148, 163, 184, .2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.bc-login-progress>div {
  width: 100%;
  height: 100%;
  background: var(--bc-login-accent);
  transition: width linear;
}

.bc-login-social-wrapper {
  margin-top: 5px;
  padding-top: 7px;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
}

.bc-login-social-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b7280;
  margin-bottom: 4px;
}

.bc-login-social {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.bc-toast {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 2147483647;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 280px;
  max-width: 420px;
  background: #020617;
  color: #f9fafb;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .7);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: auto;
  display: none;
}

.bc-toast.bc-show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.bc-toast__icon {
  flex: 0 0 auto;
  color: #9ca3af;
  line-height: 0;
}

.bc-toast__body {
  flex: 1 1 auto;
}

.bc-toast__title {
  font-weight: 600;
  margin: 0 0 3px;
  font-size: 14px;
}

.bc-toast__msg {
  margin: 0;
  font-size: 13px;
  color: #e5e7eb;
  white-space: pre-line;
}

.bc-toast__close {
  background: transparent;
  border: 0;
  color: #cbd5e1;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bc-toast__close:hover {
  background: rgba(148, 163, 184, .2);
  color: #e5e7eb;
}

.bc-toast__progress {
  position: relative;
  height: 3px;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  margin-top: 8px;
}

.bc-toast__progress>div {
  width: 100%;
  height: 100%;
}

.bc-toast-fade-out {
  opacity: 0 !important;
  transform: translateY(-8px) !important;
}

.bc-login-verify-visuals {
  position: relative;
  min-height: 100px;
  margin: 0 auto 5px;
}

.bc-login-verify-visuals [data-bc-verify-visual] {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bc-login-verify-visuals [data-bc-verify-visual][hidden] {
  display: none !important;
}

.bc-login-verify-share-icon {
  width: 136px;
  height: 136px;
  margin: 0 auto 5px;
  position: relative;
  display: block;
  filter: drop-shadow(0 16px 26px rgba(24, 62, 130, .14));
}

.bc-login-share-icon-svg {
  position: absolute;
  inset: 0;
  width: 136px;
  height: 136px;
  display: block;
  overflow: visible;
}

.bc-login-share-icon-line {
  stroke: rgba(35, 88, 180, .42);
  stroke-width: 8;
  stroke-linecap: round;
}

.bc-login-share-node {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  pointer-events: none;
}

.bc-login-share-node::before,
.bc-login-share-node::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.bc-login-share-node::before {
  inset: 0;
  background: rgba(21, 58, 126, .98);
  box-shadow:
    0 10px 24px rgba(17, 35, 78, .18),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  z-index: 2;
}

.bc-login-share-node::after {
  inset: -12px;
  background: rgba(37, 104, 239, .18);
  opacity: .18;
  transform: scale(.86);
  animation: bcShareNodePulse 1.8s ease-in-out infinite;
  z-index: 1;
}

.bc-login-share-node--left {
  left: 14px;
  top: 52px;
}

.bc-login-share-node--top {
  left: 82px;
  top: 18px;
}

.bc-login-share-node--bottom {
  left: 82px;
  top: 86px;
}

.bc-login-share-node--left::before,
.bc-login-share-node--left::after {
  animation-delay: 0s;
}

.bc-login-share-node--top::before,
.bc-login-share-node--top::after {
  animation-delay: .6s;
}

.bc-login-share-node--bottom::before,
.bc-login-share-node--bottom::after {
  animation-delay: 1.2s;
}

@keyframes bcShareNodePulse {

  0%,
  100% {
    opacity: .16;
    transform: scale(.86);
  }

  50% {
    opacity: .34;
    transform: scale(1.28);
  }
}

.bc-login-verify-social-wrapper .bc-login-social {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.bc-login-verify-social-grid {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.bc-login-social-btn {
  appearance: none;
  width: 100%;
  border: 1px solid #dbe5f5;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  box-shadow: 0 8px 18px rgba(16, 35, 71, .05);
  font-weight: 700;
  color: #123a7a;
}

.bc-login-social-btn:hover {
  transform: translateY(-1px);
  border-color: #c7d8f6;
  box-shadow: 0 14px 24px rgba(16, 35, 71, .08);
}

.bc-login-social-btn:focus-visible {
  outline: 2px solid #2568ef;
  outline-offset: 2px;
}

.bc-login-social-btn[disabled] {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bc-login-social-btn__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #234b8f;
}

.bc-login-social-btn__text {
  line-height: 1.2;
}

.bc-login-social-btn--google {
  background: #fff;
  border-color: #dadce0;
  color: #1f1f1f;
}

.bc-login-social-btn--google .bc-login-social-btn__icon {
  color: #4285f4;
}

.bc-login-social-btn--facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.bc-login-social-btn--facebook .bc-login-social-btn__icon {
  color: #fff;
}

.bc-login-social-btn--discord {
  background: #5865f2;
  border-color: #5865f2;
  color: #fff;
}

.bc-login-social-btn--discord .bc-login-social-btn__icon {
  color: #fff;
}

.bc-login-social-btn--apple {
  background: #000;
  border-color: #000;
  color: #fff;
}

.bc-login-social-btn--apple .bc-login-social-btn__icon {
  color: #fff;
}

.bc-login-turnstile {
  margin: 12px 0 14px;
  display: flex;
  justify-content: center;
}

.bc-login-verify-screen {
  display: none;
  position: relative;
  padding: 10px 10px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(22, 80, 170, .10);
  scrollbar-color: #ffc037 transparent;
  scrollbar-width: thin;
  max-height: 90dvh;
  max-height: calc(90dvh - env(safe-area-inset-bottom));
}

.bc-login-verify-screen.is-visible {
  display: block;
  animation: bcVerifyFade .35s ease;
}

.bc-login-verify-screen {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.bc-login-verify-scroll-btn {
  position: sticky;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #123a7a;
  background: #fff;
  box-shadow: 0px 8px 23px rgb(73 73 73);
  transition: opacity .18s ease, transform .18s ease;
}

.bc-login-verify-scroll-btn:hover {
  transform: translateX(-50%) translateY(1px);
}

.bc-login-verify-scroll-btn:focus-visible {
  outline: 2px solid #2568ef;
  outline-offset: 2px;
}

.bc-login-verify-scroll-btn[hidden] {
  display: none !important;
}

.bc-login-verify-scroll-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

@keyframes bcVerifyScrollNudge {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(4px);
  }
}

.bc-login-verify-screen[data-scroll-state="more"] .bc-login-verify-scroll-btn {
  animation: bcVerifyScrollNudge 1.5s ease-in-out infinite;
}

.bc-login-modal.is-verification-mode {
  overflow: hidden;
  max-width: 500px;
}

.bc-login-modal.is-verification-mode .bc-login-main {
  min-height: 0;
  overflow: hidden;
}

.bc-login-verify-screen {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  pointer-events: auto;
}

.bc-login-verify-screen:before {
  content: "";
  position: absolute;
  inset: -40% auto auto -15%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(79, 140, 255, .18) 0%, rgba(79, 140, 255, 0) 70%);
  pointer-events: none;
}

.bc-login-verify-screen:after {
  content: "";
  /* position: absolute; */
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(126, 211, 255, .18) 0%, rgba(126, 211, 255, 0) 70%);
  pointer-events: none;
}

@keyframes bcVerifyFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bc-login-verify-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.bc-login-verify-envelope {
  width: 120px;
  height: 96px;
  margin: 0 auto 5px;
  position: relative;
  filter: drop-shadow(0 16px 26px rgba(24, 62, 130, .18));
}

.bc-login-verify-envelope .env-back,
.bc-login-verify-envelope .env-front,
.bc-login-verify-envelope .env-letter,
.bc-login-verify-envelope .env-flap {
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
}

.bc-login-verify-envelope .env-back {
  top: 20px;
  width: 120px;
  height: 76px;
  border-radius: 12px;
  background: linear-gradient(180deg, #dfeaff 0%, #cbcbcb 100%);
}

.bc-login-verify-envelope .env-letter {
  top: 6px;
  width: 86px;
  height: 58px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(36, 60, 120, .12);
  animation: bcLetterFloat 2.2s ease-in-out infinite;
}

.bc-login-verify-envelope .env-letter:before,
.bc-login-verify-envelope .env-letter:after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 4px;
  border-radius: 999px;
  background: #e8eefb;
}

.bc-login-verify-envelope .env-letter:before {
  top: 16px;
}

.bc-login-verify-envelope .env-letter:after {
  top: 28px;
}

.bc-login-verify-envelope .env-flap {
  top: 22px;
  width: 0;
  height: 0;
  border-left: 55px solid transparent;
  border-right: 55px solid transparent;
  border-top: 33px solid #ffc74f;
  transform-origin: top center;
  animation: bcFlapWave 2.2s ease-in-out infinite;
  z-index: 3;
}

.bc-login-verify-envelope .env-front {
  top: 20px;
  width: 120px;
  height: 76px;
  background: linear-gradient(180deg, #ffcf68 0%, #ffc037 100%);
  clip-path: polygon(0 0, 50% 45%, 100% 0, 100% 100%, 0 100%);
  border-radius: 12px;
  z-index: 4;
}

.bc-login-verify-envelope .env-front:before,
.bc-login-verify-envelope .env-front:after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, .12);
}

.bc-login-verify-envelope .env-front:before {
  left: 0;
  clip-path: polygon(0 0, 100% 45%, 100% 100%, 0 100%);
}

.bc-login-verify-envelope .env-front:after {
  right: 0;
  clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%);
}

.bc-login-verify-envelope .env-shadow {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 86px;
  height: 16px;
  transform: translateX(-50%);
  /* background: radial-gradient(circle, rgba(30, 60, 130, .18) 0%, rgba(30, 60, 130, 0) 70%); */
  /* animation: bcShadowPulse 2.2s ease-in-out infinite; */
}

@keyframes bcLetterFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes bcFlapWave {

  0%,
  100% {
    transform: rotateX(0deg);
  }

  50% {
    transform: rotateX(28deg);
  }
}

@keyframes bcShadowPulse {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: .65;
  }

  50% {
    transform: translateX(-50%) scale(.88);
    opacity: .35;
  }
}

.bc-login-verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1d4fa3;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.bc-login-verify-top-success {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  margin: 0 auto 14px;
  max-width: 420px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ecfdf3 0%, #dff7e8 100%);
  border: 1px solid #b7ebc6;
  color: #0f7a35;
  box-shadow: 0 10px 24px rgba(16, 122, 53, .10);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.bc-login-verify-top-success strong {
  font-weight: 800;
}

.bc-login-verify-top-success span {
  font-weight: 600;
}

.bc-login-verify-top-success[hidden] {
  display: none !important;
}

.bc-login-verify-tab-panel[hidden] {
  display: none !important;
}

.bc-login-verify-tabs.bc-login-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  margin: 0 0 7px;
  padding: 4px;
  background: #eef4ff;
  border: 1px solid #d9e6ff;
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.bc-login-verify-tabs .bc-login-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #4d6286;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 12px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
  white-space: nowrap;
}

.bc-login-verify-tabs .bc-login-tab:hover {
  color: #183b7a;
}

.bc-login-verify-tabs .bc-login-tab.is-active,
.bc-login-verify-tabs .bc-login-tab[aria-selected="true"] {
  background: #fff;
  color: #123a7a;
  box-shadow: 0 6px 16px rgba(30, 74, 160, .12);
}

.bc-login-verify-tabs .bc-login-tab:focus-visible {
  outline: 2px solid #2568ef;
  outline-offset: 2px;
}

.bc-login-verify-change-panel[hidden] {
  display: none !important;
}

.bc-login-verify-title {
  margin: 0 0 7px;
  font-size: 28px !important;
  line-height: 1.1;
  color: #102347 !important;
  padding: 5px 0px 0px 0px;
}

.bc-login-verify-text {
  margin: 0 auto 7px;
  max-width: 440px;
  color: #51627e;
  font-size: 15px;
  line-height: 1.1;
}

.bc-login-verify-email-card {
  max-width: 460px;
  margin: 5px auto 5px;
  border: 1px solid #dbe5f5;
  border-radius: 16px;
  background: #f6f9ff;
  box-shadow: 0 10px 24px rgba(16, 35, 71, .06);
  text-align: left;
  overflow: hidden;
}

.bc-login-verify-email-card__top {
  display: block;
  padding: 14px 16px;
  background: #fff;
}

.bc-login-verify-email-card__value {
  font-size: 15px;
  line-height: 1.4;
  /* font-weight: 700; */
  color: #102347;
  word-break: break-word;
  text-align: center;
}

.bc-login-verify-email-card__edit {
  appearance: none;
  border: 0;
  width: 100%;
  display: block;
  color: #354a5e;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 16px;
  border-top: 1px solid #dbe5f5;
  background: #ffc037;
  background: linear-gradient(
173deg, rgba(250, 221, 157, 1) 0%, rgba(255, 192, 55, 1) 50%, rgba(211, 95, 59, 1) 100%);
  transition: 0.3s;
  -webkit-tap-highlight-color: transparent;
}


.bc-login-verify-email-card__edit:active {
  background-position-y: 30px;
  transition: 0.1s;
}

@media (hover: hover) and (pointer: fine) {
  .bc-login-verify-email-card__edit:hover {
   text-decoration: none;
   background-position-y: 30px;
   }
}


.bc-login-verify-change-panel {
  margin: 0;
  padding: 14px 16px 16px;
  border-top: 1px solid #dbe5f5;
  background: #fbfdff;
}

.bc-login-verify-change-panel[hidden] {
  display: none !important;
}

.bc-login-verify-info {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 13px;
}

.bc-login-verify-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #f6f9ff;
  border: 1px solid #e5eefc;
  color: #4c6082;
  font-size: 13px;
  font-weight: 600;
}

.bc-login-verify-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bc-login-verify-resend,
.bc-login-verify-switch {
  appearance: none;
  border: 0;
  border-radius: 5px 5px 5px 5px;
  padding: 11px 17px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.bc-login-verify-resend {
  color: #354a5e;
  background: linear-gradient(180deg, #ffd376 0%, #ffc037 100%);
  box-shadow: 0 14px 26px rgba(40, 100, 235, .22);
  border-radius: 10px;
}

.bc-login-verify-switch {
  color: #ffffff;
  background: #1abc9d;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  height: 37px;
}

.bc-login-verify-switch::before {
      content: '';
      position: absolute;
      z-index: -1;
      width: 27px;
      height: 27px;
      top: 5px;
      left: -10px;
      background: inherit;
      border-radius: 4px;
      transition: 0.3s;
      transition-delay: 0.3s;
      transform: rotate(45deg);
 }

.bc-login-verify-resend:hover,
.bc-login-verify-switch:hover {
  transform: translatex(-7px);
}

.bc-login-verify-resend[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bc-login-verify-note {
  margin: 13px 0 0;
  font-size: 13px;
  color: #6a7893;
}

.bc-login-verify-status {
  margin: 14px auto 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.5;
  color: #2f4671;
}

.bc-login-verify-status.is-success {
  color: #0a7a2f;
}

.bc-login-verify-status.is-error {
  color: #b42318;
}

.bc-login-verify-visual-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bc-login-verify-success-check {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, #34c759 0%, #16a34a 100%);
  box-shadow:
    0 12px 24px rgba(22, 163, 74, .28),
    0 0 0 0 rgba(34, 197, 94, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.65);
  pointer-events: none;
  z-index: 6;
}

.bc-login-verify-success-check svg {
  width: 22px;
  height: 22px;
  display: block;
}

.bc-login-verify-success-check path {
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
}

.bc-login-verify-screen.is-success .bc-login-verify-success-check {
  animation:
    bcVerifySuccessPop .45s cubic-bezier(.2, .9, .2, 1) forwards,
    bcVerifySuccessPulse 1.8s ease-in-out .55s infinite;
}

.bc-login-verify-screen.is-success .bc-login-verify-success-check path {
  animation: bcVerifySuccessTick .32s ease-out .18s forwards;
}

@keyframes bcVerifySuccessPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.65);
  }

  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes bcVerifySuccessTick {
  0% {
    stroke-dashoffset: 18;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes bcVerifySuccessPulse {

  0%,
  100% {
    box-shadow:
      0 12px 24px rgba(22, 163, 74, .28),
      0 0 0 0 rgba(34, 197, 94, .24);
  }

  50% {
    box-shadow:
      0 12px 24px rgba(22, 163, 74, .28),
      0 0 0 10px rgba(34, 197, 94, 0);
  }
}

.bc-login-verify-pill {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 520px;
  width: min(100%, 520px);
  padding: 12px 14px;
  border-radius: 14px;
  background: #f6f9ff;
  border: 1px solid #e5eefc;
  color: #4c6082;
  text-align: left;
}

.bc-login-verify-pill__icon {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1.2;
}

.bc-login-verify-pill__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bc-login-verify-pill__title {
  font-size: 13px;
  font-weight: 800;
  color: #26446f;
}

.bc-login-verify-pill__sub {
  font-size: 12px;
  line-height: 1.45;
  color: #6a7893;
}

.bc-login-verify-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.bc-login-verify-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 520px);
  border-radius: 12px;
  padding: 11px 14px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
  color: white;
  box-shadow: 0 12px 22px rgba(37, 104, 239, .18);
  background: repeating-linear-gradient(353deg, #18a98c, #003127 70px);
  background-position: calc(48% - 120px) 50%;
  background-position-y: -19px;
  background-size: 673px;
  transition: 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.bc-login-verify-resend-stack {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  width: min(100%, 520px);
}

.bc-login-verify-resend-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
  border-radius: 12px 0 0 12px;
  color: #18448f;
  background: #edf4ff;
  background: linear-gradient(227deg, #ffc037 -18%, #fff0d1 89%);
  padding: 11px 14px;
  white-space: nowrap;
  background-size: 253px;
  background-position: calc(50% - 70px) 50%;
  transition: 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.bc-login-verify-resend-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  padding: 11px 8px;
  border-left: 1px solid #ffde99;
  border-radius: 0 12px 12px 0;
  background: #f6f9ff;
  color: #5d6f8e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.bc-login-verify-resend-stack.is-ready .bc-login-verify-resend-timer {
  background: #ffde99;
  color: #315da8;
}

.bc-login-verify-check:hover,
.bc-login-verify-resend-main:hover,
.bc-login-verify-switch:hover {
  /* transform: translateY(-1px); */
  background-size: 637px;
}

.bc-login-verify-check[disabled] {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.bc-login-verify-resend-main[disabled] {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: white;
  background-size: initial;
}

.bc-login-form.is-hidden,
.bc-login-side.is-hidden,
.bc-login-tabs.is-hidden {
  display: none !important;
}

.is-verification-mode .bc-login-header,
.bc-login-modal.is-verification-mode [data-bc-auth-avatar],
.bc-login-modal.is-verification-mode [data-bc-auth-title],
.bc-login-modal.is-verification-mode [data-bc-auth-subtitle],
.bc-login-modal.is-verification-mode [data-bc-auth-side] {
  display: none !important;
}

@media (min-width: 640px) {
  .bc-login-body {
    /* flex-direction:row; */
    /* align-items:flex-start; */
    /* gap:20px; */
  }
}

@media (max-width: 640px) {
  .bc-login-verify-title {
    font-size: 24px;
  }

  .bc-login-social-btn {
    padding: 13px 14px;
  }

  .bc-login-verify-envelope {
    transform: scale(.92);
  }

  .bc-login-verify-tabs.bc-login-tabs {
    width: 100%;
  }

  .bc-login-verify-tabs .bc-login-tab {
    flex: 1 1 0;
    text-align: center;
    padding: 12px 10px;
    font-size: 13px;
  }
}

@media only screen and (min-width: 1025px) {
    .bc-login-modal.is-verification-mode {
    max-height: fit-content;
    margin-top: auto;
    margin-bottom: auto;
    padding: 15px 15px 15px 15px;
  }

    .sidebar-news-panel .bc-login-verify-screen {
    max-height: calc(100dvh - 73px);
    max-height: calc(100dvh - 73px - env(safe-area-inset-bottom));
  }
  
}

@media only screen and (max-width: 1024px) {
  .bc-login-verify-screen {
    max-height: calc(100dvh - 85px);
    max-height: calc(100dvh - 85px - env(safe-area-inset-bottom));
  }

  .sidebar-news-panel .bc-login-verify-screen {
    max-height: calc(100dvh - 140px);
    max-height: calc(100dvh - 140px - env(safe-area-inset-bottom));
  }

  .bc-login-modal.is-verification-mode {
    max-height: fit-content;
    padding: 15px 15px 15px 15px;
  }
}

.bc-login-verify-change-field {
  text-align: left;
  margin: 0;
}

.bc-login-verify-change-save-btn {
  margin-top: 10px;
}

.bc-login-verify-social-panel {
  margin-top: 0;
}

.bc-login-verify-switch--social {
  margin-top: 12px;
}

/* =========================================================
   JS state classes for bc-login-modal.js
   ========================================================= */

/* Generic visibility helpers */
.bc-is-hidden {
  display: none !important;
}

.bc-is-invisible {
  visibility: hidden !important;
}

.bc-no-pointer {
  pointer-events: none !important;
}

.bc-overflow-y-auto {
  overflow-y: auto !important;
}

.bc-overflow-x-hidden {
  overflow-x: hidden !important;
}

.bc-ios-scroll {
  -webkit-overflow-scrolling: touch !important;
}

/* Progress bars */
.bc-progress-bar {
  width: 100%;
}

.bc-progress-no-transition {
  transition-duration: 0ms !important;
}

.bc-progress-animate {
  transition-property: width;
  transition-timing-function: linear;
}

.bc-progress-zero {
  width: 0% !important;
}

.bc-progress-full {
  width: 100% !important;
}

/* Toast progress + toast tone */
.bc-toast--success {
  --bc-toast-accent: #22c55e;
  --bc-toast-accent-faint: rgba(34, 197, 94, 0.16);
}

.bc-toast--error {
  --bc-toast-accent: #ef4444;
  --bc-toast-accent-faint: rgba(239, 68, 68, 0.16);
}

.bc-toast--info {
  --bc-toast-accent: #60a5fa;
  --bc-toast-accent-faint: rgba(96, 165, 250, 0.16);
}

.bc-toast__progress {
  background: var(--bc-toast-accent-faint, rgba(255,255,255,0.16));
}

.bc-toast__progress > div {
  background: var(--bc-toast-accent, #22c55e);
  width: 100%;
}

.bc-toast__progress > div.bc-progress-animate {
  transition-property: width;
  transition-timing-function: linear;
}

/* Status state classes */
.bc-login-verify-status {
}

.bc-login-verify-status.is-success {
}

.bc-login-verify-status.is-error {
}

/* Verify screen display/visibility replacement */
[data-bc-verify-screen].is-visible {
  display: block;
}

/* Optional utility if you need explicit visible display */
.bc-display-block {
  display: block !important;
}

.bc-display-none {
  display: none !important;
}