/* ==========================================================================
   LyricBingo — Premium auth (login / register)
   ========================================================================== */

.bd-auth-split {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  background: #07060e;
}

@media (min-width: 900px) {
  .bd-auth-split {
    grid-template-columns: 1fr 1fr;
  }
}

body.bd-gate-active.bd-account-page:has(.bd-auth-split) .site-header {
  display: none;
}

body.bd-gate-active.bd-account-page:has(.bd-auth-split) main {
  padding-top: 0;
}

/* Branding side */
.bd-auth-brand {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem);
  overflow: hidden;
}

@media (min-width: 900px) {
  .bd-auth-brand {
    display: flex;
  }
}

.bd-auth-brand__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 20% 20%, rgba(139, 92, 246, 0.4), transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(45, 212, 191, 0.2), transparent 50%),
    #0c0a18;
}

.bd-auth-brand__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.bd-auth-brand__float {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.45;
  animation: bd-auth-float 5s ease-in-out infinite;
}

.bd-auth-brand__float--1 { top: 15%; left: 12%; }
.bd-auth-brand__float--2 { top: 30%; right: 15%; animation-delay: -1.5s; }
.bd-auth-brand__float--3 { bottom: 25%; left: 20%; animation-delay: -3s; }

@keyframes bd-auth-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.bd-auth-brand__eq {
  position: absolute;
  bottom: 20%;
  right: 15%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 56px;
  opacity: 0.4;
}

.bd-auth-brand__eq span {
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2dd4bf, #8b5cf6);
  animation: bd-auth-eq 0.85s ease-in-out infinite;
}

.bd-auth-brand__eq span:nth-child(1) { height: 20px; }
.bd-auth-brand__eq span:nth-child(2) { height: 36px; animation-delay: 0.1s; }
.bd-auth-brand__eq span:nth-child(3) { height: 28px; animation-delay: 0.2s; }
.bd-auth-brand__eq span:nth-child(4) { height: 48px; animation-delay: 0.15s; }
.bd-auth-brand__eq span:nth-child(5) { height: 32px; animation-delay: 0.25s; }
.bd-auth-brand__eq span:nth-child(6) { height: 42px; animation-delay: 0.05s; }

@keyframes bd-auth-eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.bd-auth-brand__content {
  position: relative;
  z-index: 1;
  max-width: 24rem;
}

.bd-auth-brand__content img {
  width: min(180px, 50vw);
  margin-bottom: 2rem;
}

.bd-auth-brand__content h2 {
  font-family: "Sora", "DM Sans", sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fbf8ff;
  margin: 0 0 1rem;
}

.bd-auth-brand__content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #a39cc4;
  margin: 0;
}

/* Form side */
.bd-auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 3rem) clamp(1.25rem, 4vw, 2rem);
  background: #07060e;
}

.bd-auth-glass {
  width: min(100%, 26rem);
  padding: clamp(1.75rem, 4vw, 2.25rem);
  border-radius: 22px;
  background: rgba(22, 18, 44, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 28px 80px -24px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: bd-auth-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bd-auth-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.bd-auth-glass .bd-acc-pill {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c6ff4a;
  background: rgba(198, 255, 74, 0.1);
  border: 1px solid rgba(198, 255, 74, 0.2);
}

.bd-auth-glass h1 {
  font-family: "Sora", sans-serif;
  font-size: 1.65rem !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: #fbf8ff;
}

.bd-auth-glass > p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #a39cc4;
  margin: 0 0 1.5rem;
}

.bd-auth-mobile-logo {
  display: block;
  margin-bottom: 1.5rem;
  line-height: 0;
}

@media (min-width: 900px) {
  .bd-auth-mobile-logo { display: none; }
}

.bd-auth-mobile-logo img {
  width: min(160px, 48vw);
  height: auto;
}

/* Fields */
.bd-auth-field {
  display: block;
  margin-bottom: 1rem;
}

.bd-auth-field > span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ece7fb;
  margin-bottom: 0.4rem;
}

.bd-auth-field input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  color: #fbf8ff;
  background: rgba(7, 6, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

.bd-auth-field input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
  background: rgba(7, 6, 14, 0.85);
}

.bd-auth-field input.bd-auth-input--error {
  border-color: rgba(244, 63, 94, 0.6);
  animation: bd-auth-shake 0.4s ease;
}

@keyframes bd-auth-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.bd-auth-field--password {
  position: relative;
}

.bd-auth-field--password input {
  padding-right: 2.75rem;
}

.bd-auth-pw-toggle {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  color: #6f6890;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.bd-auth-pw-toggle:hover {
  color: #ece7fb;
  background: rgba(255, 255, 255, 0.06);
}

.bd-auth-forgot {
  text-align: right;
  margin: -0.5rem 0 1rem;
}

.bd-auth-forgot a {
  font-size: 0.8125rem;
  color: #8b5cf6;
  text-decoration: none;
}

.bd-auth-forgot a:hover { text-decoration: underline; }

.bd-auth-error {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  color: #fda4af;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  margin-bottom: 1rem;
  animation: bd-auth-enter 0.3s ease both;
}

.bd-auth-submit {
  width: 100%;
  margin-top: 0.25rem;
  transition: transform 0.15s ease, box-shadow 0.2s;
}

.bd-auth-submit:active { transform: scale(0.98); }

.bd-auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: #a39cc4;
  margin: 1.25rem 0 0;
}

.bd-auth-switch a {
  color: #8b5cf6;
  font-weight: 600;
  text-decoration: none;
}

.bd-auth-switch a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .bd-auth-brand__float,
  .bd-auth-brand__eq span,
  .bd-auth-glass,
  .bd-auth-field input.bd-auth-input--error {
    animation: none !important;
  }
}

/* V2 auth password toggle */
.lb-v2 .v2-float-field--pw { position: relative; }
.lb-v2 .v2-float-field--pw input { padding-right: 2.75rem !important; }
.lb-v2 .v2-pw-toggle {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  border-radius: 8px;
}
.lb-v2 .v2-pw-toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
