/* Custom auth screens — /signin/* */

/* Auth layout owns header offset: avoid double padding with body { padding-top: header }. */
body.bkc-auth-page {
  padding-top: 0;
}

.bkc-auth-page #page {
  min-height: 100vh;
}

.bkc-auth-page .bkc-footer {
  display: none;
}

.bkc-auth-page .bkc-user-menu__toggle::after,
.bkc-auth-menu + .dropdown-toggle::after {
  display: none;
}

.bkc-auth {
  --bkc-auth-ink: #0b0b0b;
  --bkc-auth-muted: #6b6b6b;
  --bkc-auth-line: rgba(0, 0, 0, 0.1);
  --bkc-auth-panel: #f6f7f7;
  --bkc-auth-accent: var(--bkc-accent, #2ebfb0);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding-top: var(--bkc-header-h, 64px);
}

.bkc-auth__visual {
  display: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(46, 191, 176, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(46, 191, 176, 0.16), transparent 50%),
    linear-gradient(160deg, #0a0a0a 0%, #141816 45%, #0d1211 100%);
  color: #fff;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 48px 56px 40px;
  position: relative;
}

.bkc-auth__visual::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
}

.bkc-auth__brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  position: relative;
  z-index: 1;
  text-decoration: none;
}

.bkc-auth__brand-mark {
  align-items: center;
  background: var(--bkc-auth-accent);
  color: #0b0b0b;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  letter-spacing: 0.04em;
  width: 40px;
}

.bkc-auth__brand-name {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.bkc-auth__brand-tag {
  color: rgba(255, 255, 255, 0.55);
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 2px;
  text-transform: uppercase;
}

.bkc-auth__visual-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
}

.bkc-auth__eyebrow {
  color: var(--bkc-auth-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.bkc-auth__visual-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 14em;
}

.bkc-auth__visual-text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 36px;
  max-width: 28em;
}

.bkc-auth__svg {
  display: block;
  height: auto;
  max-width: 100%;
  width: min(100%, 480px);
}

.bkc-auth__svg .bkc-auth-draw {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: bkc-auth-draw 1.4s ease forwards 0.2s;
}

.bkc-auth__svg .bkc-auth-fade {
  opacity: 0;
  animation: bkc-auth-fade 0.7s ease forwards 0.85s;
}

.bkc-auth__svg .bkc-auth-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: bkc-auth-pulse 2.4s ease-in-out infinite 1.2s;
}

@keyframes bkc-auth-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes bkc-auth-fade {
  to {
    opacity: 1;
  }
}

@keyframes bkc-auth-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.85;
  }
}

.bkc-auth__visual-foot {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.bkc-auth__panel {
  align-items: center;
  background: var(--bkc-white, #fff);
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  padding: 48px 24px 64px;
  width: 100%;
}

.bkc-auth__card {
  animation: bkc-auth-card-in 0.55s ease both;
  max-width: 420px;
  width: 100%;
}

@keyframes bkc-auth-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bkc-auth__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 8px;
}

.bkc-auth__lead {
  color: var(--bkc-auth-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 28px;
}

.bkc-auth__alert {
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 20px;
  padding: 12px 14px;
}

.bkc-auth__alert--error {
  background: #fff1f1;
  border-color: #f0c2c2;
  color: #8a1f1f;
}

.bkc-auth__alert--success {
  background: #eefaf7;
  border-color: #b8e6dc;
  color: #0f5c52;
}

.bkc-auth__field {
  margin: 0 0 16px;
}

.bkc-auth__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.bkc-auth__input {
  background: var(--bkc-auth-panel);
  border: 1px solid transparent;
  color: var(--bkc-auth-ink);
  display: block;
  font-size: 15px;
  line-height: 1.3;
  min-height: 48px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.bkc-auth__input:hover {
  background: #f0f2f2;
}

.bkc-auth__input:focus {
  background: #fff;
  border-color: var(--bkc-auth-accent);
  box-shadow: 0 0 0 3px rgba(46, 191, 176, 0.2);
  outline: none;
}

.bkc-auth__check {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
}

.bkc-auth__check input {
  accent-color: var(--bkc-auth-accent);
  flex: 0 0 auto;
  height: 16px;
  margin-top: 2px;
  width: 16px;
}

.bkc-auth__check label {
  color: var(--bkc-auth-muted);
  font-size: 12px;
  line-height: 1.45;
}

.bkc-auth__check label a {
  color: var(--bkc-auth-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bkc-auth__check--remember {
  margin: 4px 0 20px;
}

.bkc-auth__check--remember label {
  color: var(--bkc-auth-ink);
  font-size: 13px;
  font-weight: 600;
}

.bkc-auth .bkc-consent-check {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
}

.bkc-auth .bkc-consent-check .form-check-input {
  accent-color: var(--bkc-auth-accent);
  flex: 0 0 auto;
  height: 16px;
  margin-top: 2px;
  width: 16px;
}

.bkc-auth .bkc-consent-check .form-check-label {
  color: var(--bkc-auth-muted);
  font-size: 12px;
  line-height: 1.45;
}

.bkc-auth .bkc-consent-check .form-check-label a {
  color: var(--bkc-auth-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bkc-auth .bkc-consent-check.mb-4 {
  margin-bottom: 24px;
}

.bkc-auth .yandex-sc-captcha-container {
  margin: 8px 0 16px;
  text-align: left;
}

.bkc-auth__submit {
  margin-top: 4px;
  width: 100%;
}

.bkc-auth__submit.bkc-btn:hover {
  background: var(--bkc-auth-accent);
  border-color: var(--bkc-auth-accent);
  color: #0b0b0b;
}

.bkc-auth__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  margin-top: 24px;
}

.bkc-auth__links a {
  color: var(--bkc-auth-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.bkc-auth__links a:hover {
  color: var(--bkc-auth-ink);
}

.bkc-auth__mobile-brand {
  display: none;
  margin-bottom: 28px;
}

.bkc-auth__mobile-brand a {
  align-items: center;
  color: inherit;
  display: inline-flex;
  font-size: 16px;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .bkc-auth {
    min-height: auto;
    padding-top: var(--bkc-header-h, 56px);
  }

  .bkc-auth__mobile-brand {
    display: block;
  }

  .bkc-auth__panel {
    padding: 24px 20px 48px;
  }

  .bkc-auth__title {
    font-size: 24px;
  }
}

/* Header auth CTAs */
.bkc-auth-menu {
  align-items: center;
  display: none;
  gap: 8px;
}

.bkc-auth-menu__login,
.bkc-auth-menu__register {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  min-height: 36px;
  padding: 8px 14px;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bkc-auth-menu__login {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.bkc-auth-menu__login:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.bkc-auth-menu__register {
  background: var(--bkc-accent, #2ebfb0);
  border-color: var(--bkc-accent, #2ebfb0);
  color: #0b0b0b;
}

.bkc-auth-menu__register:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.bkc-user-menu {
  display: none;
  position: relative;
}

.bkc-user-menu__toggle {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.04em;
  min-height: 36px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.bkc-user-menu__toggle::after {
  display: none;
}

.bkc-user-menu__toggle:hover,
.bkc-user-menu.show .bkc-user-menu__toggle {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.bkc-user-menu__toggle svg {
  height: 16px;
  width: 16px;
}

.bkc-user-menu__dropdown {
  background: #fff;
  border: 1px solid var(--bkc-gray-200, #e7e7e7);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  min-width: 220px;
  padding: 8px 0;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1050;
}

.bkc-user-menu__dropdown a {
  color: #000;
  display: block;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  text-decoration: none;
}

.bkc-user-menu__dropdown a:hover {
  background: var(--bkc-gray-100, #f2f2f2);
}

.bkc-user-menu__dropdown a.is-danger {
  color: #b42318;
}

.bkc-offcanvas-auth {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 24px;
  padding-top: 20px;
}

.bkc-offcanvas-auth__profile {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-bottom: 14px;
}

.bkc-offcanvas-auth__profile strong {
  color: #fff;
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.bkc-offcanvas-auth .bkc-auth-menu__login,
.bkc-offcanvas-auth .bkc-auth-menu__register {
  justify-content: center;
  width: 100%;
}

.bkc-offcanvas-auth .bkc-auth-menu__login {
  margin-bottom: 8px;
}

.bkc-offcanvas-auth__list {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bkc-offcanvas-auth__list a {
  color: #fff;
  display: block;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  text-decoration: none;
}

.bkc-offcanvas-auth__list a.is-danger {
  color: #ff8f8f;
}

@media (min-width: 1200px) {
  .bkc-auth-menu,
  .bkc-user-menu {
    display: flex;
  }

  .bkc-header-actions .bkc-icon-btn--account {
    display: none;
  }

  .bkc-offcanvas-auth {
    display: none;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .bkc-auth-menu__login,
  .bkc-auth-menu__register {
    min-height: 32px;
    padding: 6px 10px;
  }

  .bkc-user-menu__toggle {
    min-height: 32px;
    padding: 6px 10px;
  }

  .bkc-user-menu__toggle span {
    display: none;
  }
}

/* Keep header compact between tablet and xl: icon account, auth in offcanvas. */
@media (max-width: 1199.98px) {
  .bkc-auth-menu,
  .bkc-user-menu {
    display: none;
  }

  .bkc-header-actions .bkc-icon-btn--account {
    display: inline-flex;
  }

  .bkc-offcanvas-auth {
    display: block;
  }
}
