:root {
  --account-gold: #ffd45f;
  --account-gold-light: #fff0ae;
  --account-gold-deep: #b77714;
  --account-text: #ffe084;
  --account-muted: rgba(255, 218, 112, .68);
  --account-border: rgba(255, 229, 151, .28);
}

html {
  background: #080705;
}

body {
  position: relative;
  min-height: 100svh;
  padding: clamp(24px, 5vw, 68px) 18px !important;
  overflow-x: hidden;
  color: var(--account-text) !important;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 204, 65, .25), transparent 31rem),
    radial-gradient(circle at 88% 82%, rgba(174, 106, 10, .19), transparent 36rem),
    linear-gradient(145deg, #050504, #121008 54%, #080705) !important;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(80px);
}

body::before {
  width: 42vw;
  height: 42vw;
  top: -22vw;
  left: 4vw;
  background: rgba(255, 213, 94, .18);
  animation: account-light-one 18s ease-in-out infinite alternate;
}

body::after {
  width: 36vw;
  height: 36vw;
  right: -15vw;
  bottom: -17vw;
  background: rgba(211, 139, 22, .17);
  animation: account-light-two 22s ease-in-out -8s infinite alternate;
}

@keyframes account-light-one {
  to { transform: translate3d(38vw, 24vh, 0) scale(1.2); }
}

@keyframes account-light-two {
  to { transform: translate3d(-43vw, -31vh, 0) scale(.86); }
}

body > * {
  position: relative;
  z-index: 1;
}

.bk-account-lightscape {
  position: fixed !important;
  z-index: 0 !important;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bk-account-aurora,
.bk-account-beam,
.bk-account-orbit {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}

.bk-account-aurora {
  border-radius: 50%;
  mix-blend-mode: screen;
}

.bk-account-aurora--one {
  width: 46vw;
  height: 46vw;
  top: -24vw;
  left: 4vw;
  background: rgba(255, 210, 87, .25);
  filter: blur(82px);
  animation: bk-aurora-one 17s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}

.bk-account-aurora--two {
  width: 40vw;
  height: 40vw;
  right: -17vw;
  bottom: -18vw;
  background: rgba(205, 132, 18, .22);
  filter: blur(92px);
  animation: bk-aurora-two 21s cubic-bezier(.45, 0, .55, 1) -8s infinite alternate;
}

.bk-account-aurora--three {
  width: 25vw;
  height: 45vw;
  top: 28vh;
  left: 38vw;
  background: rgba(255, 232, 157, .14);
  filter: blur(105px);
  animation: bk-aurora-three 25s ease-in-out -13s infinite alternate;
}

.bk-account-aurora--four {
  width: 18vw;
  height: 72vh;
  top: 8vh;
  left: -8vw;
  border-radius: 48% 52% 65% 35% / 35% 58% 42% 65%;
  background: linear-gradient(180deg, rgba(255, 244, 198, .22), rgba(255, 181, 24, .1));
  filter: blur(70px);
  animation: bk-aurora-four 19s ease-in-out -4s infinite alternate;
}

.bk-account-aurora--five {
  width: 23vw;
  height: 23vw;
  top: 7vh;
  right: 4vw;
  background: radial-gradient(circle, rgba(255, 236, 165, .26), rgba(236, 164, 28, .09) 48%, transparent 72%);
  filter: blur(50px);
  animation: bk-aurora-five 16s ease-in-out -9s infinite alternate;
}

.bk-account-orbit {
  width: min(74vw, 1040px);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 215, 102, .05);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: bk-orbit 28s linear infinite;
}

.bk-account-orbit::before,
.bk-account-orbit::after {
  content: "";
  position: absolute;
  width: clamp(80px, 10vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 207, 71, .15);
  box-shadow: 0 0 70px 30px rgba(255, 194, 38, .08);
  filter: blur(24px);
}

.bk-account-orbit::before {
  top: 3%;
  left: 18%;
}

.bk-account-orbit::after {
  right: 1%;
  bottom: 22%;
  width: clamp(65px, 8vw, 120px);
  background: rgba(255, 239, 184, .14);
}

.bk-account-beam {
  left: -35vw;
  width: 170vw;
  height: clamp(58px, 8vw, 132px);
  border-radius: 50%;
  opacity: 0;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(255, 197, 46, .04) 25%, rgba(255, 238, 175, .34) 49%, rgba(255, 190, 34, .16) 58%, transparent 82%);
  filter: blur(18px);
}

.bk-account-beam--one {
  top: 31vh;
  animation: bk-beam-one 13s ease-in-out -2s infinite;
}

.bk-account-beam--two {
  top: 65vh;
  height: clamp(38px, 5vw, 82px);
  animation: bk-beam-two 17s ease-in-out -8s infinite;
}

.bk-account-beam--three {
  top: 48vh;
  height: clamp(24px, 3vw, 52px);
  filter: blur(12px);
  animation: bk-beam-three 11s ease-in-out -5s infinite;
}

@keyframes bk-aurora-one {
  from { opacity: .5; transform: translate3d(-5vw, -2vh, 0) scale(.9); }
  to { opacity: .95; transform: translate3d(52vw, 14vh, 0) scale(1.16) rotate(25deg); }
}

@keyframes bk-aurora-two {
  from { opacity: .42; transform: translate3d(3vw, 3vh, 0) scale(.88); }
  to { opacity: .88; transform: translate3d(-61vw, -25vh, 0) scale(1.18) rotate(-30deg); }
}

@keyframes bk-aurora-three {
  from { opacity: .2; transform: translate3d(-25vw, 15vh, 0) scale(.75); }
  to { opacity: .68; transform: translate3d(34vw, -22vh, 0) scale(1.2) rotate(60deg); }
}

@keyframes bk-aurora-four {
  from { opacity: .24; transform: translate3d(-5vw, 8vh, 0) rotate(-10deg); }
  to { opacity: .7; transform: translate3d(86vw, -5vh, 0) rotate(24deg); }
}

@keyframes bk-aurora-five {
  from { opacity: .18; transform: translate3d(3vw, -4vh, 0) scale(.72); }
  to { opacity: .66; transform: translate3d(-70vw, 62vh, 0) scale(1.2); }
}

@keyframes bk-orbit {
  from { transform: translate(-50%, -50%) rotate(0deg) scale(.94); }
  50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.06); }
  to { transform: translate(-50%, -50%) rotate(360deg) scale(.94); }
}

@keyframes bk-beam-one {
  0%, 100% { opacity: 0; transform: translate3d(-42vw, -8vh, 0) rotate(-14deg); }
  52% { opacity: .82; transform: translate3d(7vw, 10vh, 0) rotate(-8deg); }
}

@keyframes bk-beam-two {
  0%, 100% { opacity: .04; transform: translate3d(38vw, 9vh, 0) rotate(11deg); }
  48% { opacity: .68; transform: translate3d(-12vw, -13vh, 0) rotate(5deg); }
}

@keyframes bk-beam-three {
  0%, 100% { opacity: 0; transform: translate3d(-50vw, 18vh, 0) rotate(-26deg); }
  62% { opacity: .62; transform: translate3d(34vw, -16vh, 0) rotate(-18deg); }
}

.login-card,
.register-card,
.reset-card,
body > .card,
.dashboard-card,
.profile-container {
  width: min(100%, 640px) !important;
  max-width: 640px !important;
  margin: auto !important;
  padding: clamp(28px, 5vw, 46px) !important;
  border: 1px solid var(--account-border) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(145deg, rgba(255, 249, 225, .14), rgba(255, 223, 132, .035) 45%, rgba(28, 21, 10, .2)),
    rgba(20, 17, 11, .42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.23),
    inset 0 -1px 0 rgba(104, 63, 6, .26),
    0 34px 100px rgba(0,0,0,.5),
    0 0 70px rgba(190, 125, 18, .1) !important;
  backdrop-filter: blur(26px) saturate(180%) brightness(1.04) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%) brightness(1.04) !important;
}

.profile-container {
  width: min(100%, 1120px) !important;
  max-width: 1120px !important;
}

.bk-account-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 30px;
}

.bk-account-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 7px 14px rgba(0,0,0,.26));
}

.bk-account-brand span {
  color: var(--account-gold-light);
  font-size: 1.02rem;
  font-weight: 720;
  letter-spacing: -.02em;
}

.login-card h1,
.register-card h1,
.reset-card h1,
body > .card h1,
.dashboard-card h1,
.profile-container h1 {
  margin: 0 0 26px !important;
  color: var(--account-gold) !important;
  font-size: clamp(1.85rem, 5vw, 2.45rem) !important;
  font-weight: 720 !important;
  letter-spacing: -.045em;
  line-height: 1.08;
  text-align: left !important;
}

label {
  margin: 0 0 8px !important;
  color: rgba(255, 227, 144, .78) !important;
  font-size: .82rem;
  font-weight: 620;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  min-height: 48px;
  margin: 0 0 18px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(255, 226, 139, .23) !important;
  border-radius: 10px !important;
  outline: 0;
  color: #ffeca8 !important;
  background: rgba(8, 7, 5, .52) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045) !important;
  font: 500 1rem/1.3 inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
}

input[type="hidden"] {
  display: none !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 215, 94, .72) !important;
  background: rgba(12, 10, 6, .72) !important;
  box-shadow: 0 0 0 3px rgba(255, 204, 54, .13), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

button[type="submit"],
.btn-primary {
  min-height: 46px;
  padding: 11px 20px !important;
  border: 1px solid rgba(255, 239, 183, .4) !important;
  border-radius: 10px !important;
  color: #241703 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), transparent 45%),
    linear-gradient(135deg, #ffe68e, #d89a27) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.68), 0 9px 25px rgba(168, 104, 8, .23) !important;
  font: 720 .92rem/1 inherit !important;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease !important;
}

button[type="submit"]:hover,
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 12px 30px rgba(190, 123, 17, .3) !important;
}

p {
  color: var(--account-muted) !important;
  line-height: 1.55;
}

a {
  color: var(--account-gold) !important;
  text-underline-offset: 3px;
}

.social-login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px !important;
  padding-top: 22px !important;
  border-top: 1px solid rgba(255, 222, 126, .15) !important;
}

.bk-login-step {
  display: none;
}

.bk-login-step.is-active {
  display: block;
}

.login-card {
  animation: bk-card-arrive .92s cubic-bezier(.16, 1, .3, 1) both;
}

.login-card .bk-account-brand {
  animation: bk-content-arrive .76s .15s cubic-bezier(.16, 1, .3, 1) both;
}

.bk-login-step.is-active > h1 {
  animation: bk-content-arrive .76s .24s cubic-bezier(.16, 1, .3, 1) both;
}

.bk-login-step.is-active > input {
  animation: bk-content-arrive .76s .32s cubic-bezier(.16, 1, .3, 1) both;
}

.bk-login-step.is-active > p,
.bk-login-step.is-active > .bk-step-actions {
  animation: bk-content-arrive .76s .4s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes bk-card-arrive {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.978);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes bk-content-arrive {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.bk-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.bk-create-account {
  margin: 3px 0 22px !important;
  text-align: left !important;
}

.bk-rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.bk-rule-list li {
  position: relative;
  padding-left: 17px;
  color: rgba(255, 218, 112, .48);
  font-size: .72rem;
  line-height: 1.35;
  transition: color .25s ease;
}

.bk-rule-list li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: currentColor;
}

.bk-rule-list li.is-valid {
  color: #f6d267;
}

.bk-rule-list li.is-valid::before {
  content: "✓";
}

.bk-rule-list li.is-invalid {
  color: #ff9b82;
}

.bk-field-error {
  display: none;
  margin: -9px 0 12px !important;
  color: #ff9b82 !important;
  font-size: .75rem;
  line-height: 1.4;
  text-align: left !important;
}

.bk-field-error.is-visible {
  display: block;
  animation: bk-error-in .3s cubic-bezier(.16, 1, .3, 1);
}

.bk-identity-flow input.is-invalid,
.bk-identity-flow input:user-invalid {
  border-color: rgba(255, 120, 91, .82) !important;
  box-shadow: 0 0 0 3px rgba(255, 101, 72, .12), 0 0 22px rgba(255, 89, 58, .08) !important;
}

.bk-identity-flow input.is-valid {
  border-color: rgba(255, 216, 102, .58) !important;
}

.bk-step-shake {
  animation: bk-soft-shake .46s cubic-bezier(.36, .07, .19, .97);
}

@keyframes bk-error-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bk-soft-shake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-5px); }
  45% { transform: translateX(4px); }
  68% { transform: translateX(-2px); }
  84% { transform: translateX(1px); }
}

.bk-step-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.bk-step-actions button {
  position: relative;
  min-width: 118px;
  overflow: hidden;
  background-size: 180% 100% !important;
  animation: bk-button-light 4.5s ease-in-out infinite alternate;
}

@keyframes bk-button-light {
  from { background-position: 0 0; }
  to { background-position: 100% 0; }
}

.bk-identity-back {
  width: 30px;
  min-height: 30px !important;
  margin: 0 7px 18px 0;
  padding: 0 !important;
  border: 0 !important;
  color: var(--account-gold-light) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1.25rem !important;
  vertical-align: middle;
}

.bk-identity-value {
  display: inline-block;
  max-width: calc(100% - 88px);
  margin-bottom: 18px;
  overflow: hidden;
  color: var(--account-muted);
  font-size: .88rem;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.bk-identity-avatar {
  width: 30px;
  height: 30px;
  margin: 0 8px 18px 0;
  border: 1px solid rgba(255, 231, 157, .28);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 16px rgba(0,0,0,.24), 0 0 18px rgba(224, 158, 34, .08);
  vertical-align: middle;
  opacity: .72;
  transition: opacity .45s ease, transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s ease;
}

.bk-identity-avatar.is-loaded {
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(0,0,0,.28), 0 0 22px rgba(224, 158, 34, .14);
}

.bk-signin-options {
  width: min(100%, 640px);
  margin: 14px auto 0;
  border: 1px solid var(--account-border);
  border-radius: 18px;
  background: rgba(20, 17, 11, .52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 18px 50px rgba(0,0,0,.3);
  backdrop-filter: blur(26px) saturate(165%);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  animation: bk-options-arrive .82s .38s cubic-bezier(.16, 1, .3, 1) both;
}

.bk-signin-options summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 13px;
  padding: 0 20px;
  color: var(--account-gold-light);
  font-weight: 680;
  cursor: pointer;
  list-style: none;
}

.bk-signin-options summary::-webkit-details-marker {
  display: none;
}

.bk-signin-options[open] summary {
  border-bottom: 1px solid rgba(255, 222, 126, .13);
}

.bk-signin-options summary > span {
  display: inline-block;
  transition: transform .48s cubic-bezier(.16, 1, .3, 1);
}

.bk-signin-options[open] summary > span {
  transform: rotate(180deg);
}

.bk-signin-options .social-login {
  margin: 0 !important;
  padding: 16px !important;
  border: 0 !important;
}

.bk-signin-options[open] .social-login {
  animation: bk-options-open .58s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes bk-options-arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bk-options-open {
  from { opacity: 0; transform: translateY(-7px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bk-identity-flow input:focus {
  animation: bk-focus-pulse 3.4s ease-in-out infinite;
}

@keyframes bk-focus-pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(255, 204, 54, .13), 0 0 0 rgba(255, 202, 44, 0) !important;
  }
  50% {
    box-shadow: 0 0 0 3px rgba(255, 204, 54, .18), 0 0 25px rgba(255, 202, 44, .14) !important;
  }
}

.social-login > p {
  grid-column: 1 / -1;
  margin: 0 0 3px !important;
  text-align: left !important;
}

.social-btn {
  margin: 0 !important;
  min-height: 45px;
  border: 1px solid rgba(255, 226, 139, .2) !important;
  border-radius: 10px !important;
  color: #ffe494 !important;
  background: rgba(255, 226, 139, .045) !important;
}

.social-btn:hover {
  border-color: rgba(255, 226, 139, .42) !important;
  background: rgba(255, 226, 139, .09) !important;
  transform: translateY(-1px) !important;
}

.error,
.success {
  padding: 11px 13px;
  border: 1px solid rgba(255, 209, 96, .22);
  border-radius: 10px;
  background: rgba(255, 206, 72, .07);
  text-align: left !important;
}

body > .logo {
  display: none !important;
}

.settings-card {
  border-color: rgba(255, 226, 139, .17) !important;
  background: rgba(255, 233, 165, .035) !important;
}

.profile-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-container > .bk-account-brand,
.profile-container > .profile-header,
.profile-container > h1,
.profile-container > .error,
.profile-container > .success,
.profile-container > .danger-zone {
  grid-column: 1 / -1;
}

.bk-account-loading {
  position: fixed;
  z-index: 2147483647;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  overflow: hidden;
  opacity: 0;
  background: rgba(255, 215, 88, .12);
  transition: opacity .15s ease;
}

.bk-account-loading::after {
  content: "";
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ffcc3d 24%, #fff0a7 65%, #e9a526);
  box-shadow: 0 0 18px rgba(255, 199, 43, .9);
  transform: translateX(-120%);
}

.bk-account-loading.is-active {
  opacity: 1;
}

.bk-account-loading.is-active::after {
  animation: bk-account-loading 1.05s cubic-bezier(.55, 0, .35, 1) infinite;
}

@keyframes bk-account-loading {
  to { transform: translateX(365%); }
}

@media (max-width: 560px) {
  body {
    padding: 12px !important;
  }

  .login-card,
  .register-card,
  .reset-card,
  body > .card,
  .dashboard-card,
  .profile-container {
    padding: 28px 22px !important;
    border-radius: 22px !important;
  }

  .social-login,
  .profile-container {
    grid-template-columns: 1fr;
  }

  .profile-container > .bk-account-brand,
  .profile-container > .profile-header,
  .profile-container > h1,
  .profile-container > .error,
  .profile-container > .success,
  .profile-container > .danger-zone {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .bk-account-lightscape * {
    animation: none !important;
  }
}
