/* ── LOGIN ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0px)
  }
}

@keyframes slideRightIn {
  to {
    opacity: 1;
    filter: blur(0px);
    transform: translateX(0px)
  }
}

@keyframes animatedGradient {
  0% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }

  100% {
    background-position: 0% 50%
  }
}

.aerr {
  display: none;
  margin-top: 8px;
  padding: 7px 12px;
  background: rgba(229, 88, 101, .09);
  border: 1px solid rgba(229, 88, 101, .2);
  border-radius: 7px;
  font-size: 12px;
  color: var(--red)
}

.aerr.show {
  display: block
}

.rme {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--mu);
  cursor: pointer
}

.rme input[type=checkbox] {
  accent-color: var(--aa)
}

/* ── NEW LOGIN PAGE ── */
#ls {
  z-index: 100;
  background: #050505;
  overflow: hidden
}

#dot-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0
}

.dot-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 0%, transparent 60%);
  z-index: 1;
  pointer-events: none
}

.dot-radial-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, .85) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none
}

.dot-top-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 33%;
  background: linear-gradient(to bottom, #000 0%, transparent 100%);
  z-index: 1;
  pointer-events: none
}

/* Floating Navbar */
.ls-navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(12, 12, 12, .82);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
  width: calc(100% - 2rem);
  max-width: 620px;
  transition: border-radius .3s
}

.ls-navbar.open {
  border-radius: 16px
}

.ls-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px
}

.ls-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px
}

.ls-nav-logo-img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain
}

.ls-nav-brand {
  font-size: 14px;
  font-weight: 700;
  background: var(--aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent
}

.ls-nav-links {
  display: flex;
  gap: 20px;
  align-items: center
}

.ls-nav-link {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  transition: color .2s
}

.ls-nav-link:hover {
  color: #fff
}

.ls-nav-actions {
  display: flex;
  gap: 8px;
  align-items: center
}

.ls-nav-btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .65)
}

.ls-nav-btn:hover {
  border-color: rgba(255, 255, 255, .25);
  color: #fff
}

.ls-nav-signup {
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(200, 200, 200, .9));
  color: #000;
  border-color: transparent
}

.ls-nav-signup:hover {
  color: #000;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(200, 200, 200, 1));
}

.ls-nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .6);
  cursor: pointer;
  padding: 4px
}

.ls-nav-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding-top: 14px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .3s, opacity .3s, padding .3s
}

.ls-nav-mobile.open {
  max-height: 500px;
  opacity: 1;
  padding-top: 14px;
  display: flex
}

.ls-nav-mobile-link {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  padding: 6px 0;
  transition: color .2s
}

.ls-nav-mobile-link:hover {
  color: #fff
}

@media(max-width: 600px) {

  .ls-nav-links,
  .ls-nav-actions {
    display: none
  }

  .ls-nav-hamburger {
    display: block
  }

  .ls-nav-mobile {
    display: flex
  }
}

/* Content */
.ls-content {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 120px 20px 40px
}

.ls-form-wrap {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(145deg, #1a1a1a 0%, #050505 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.9),
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px 2px rgba(0, 0, 0, 0.8)
}

/* Steps */
.ls-step {
  display: none;
  animation: lsStepIn .45s cubic-bezier(.22, 1, .36, 1)
}

.ls-step.active {
  display: block
}

@keyframes lsStepIn {
  from {
    opacity: 0;
    transform: translateX(40px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes lsStepOut {
  from {
    opacity: 1;
    transform: translateX(0)
  }

  to {
    opacity: 0;
    transform: translateX(-40px)
  }
}

.ls-step-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06)
}

.ls-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 0
}

.ls-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .45);
  font-weight: 300;
  margin-top: 6px
}

.ls-step-body {
  display: flex;
  flex-direction: column;
  gap: 14px
}

/* Google Button */
.ls-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all .25s;
  backdrop-filter: blur(4px)
}

.ls-google-btn:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .2)
}

/* Guest Button */
.ls-guest-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, .02);
  border: 1px dashed rgba(255, 255, 255, .15);
  border-radius: 999px;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all .25s
}

.ls-guest-btn:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .3);
  color: #fff
}

.ls-guest-note {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, .3);
  margin-top: -6px
}

/* Divider */
.ls-divider {
  display: flex;
  align-items: center;
  gap: 12px
}

.ls-divider::before,
.ls-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .08)
}

.ls-divider span {
  font-size: 12px;
  color: rgba(255, 255, 255, .25)
}

/* Input */
.ls-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all .25s;
  backdrop-filter: blur(2px)
}

.ls-input::placeholder {
  color: rgba(255, 255, 255, .25)
}

.ls-input:focus {
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .06)
}

.ls-input-row {
  position: relative;
  display: flex;
  align-items: center
}

.ls-input-row .ls-input {
  padding-right: 52px
}

.ls-input-submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
  overflow: hidden
}

.ls-input-submit:hover {
  background: rgba(255, 255, 255, .15)
}

.ls-arrow-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden
}

.ls-arrow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform .3s
}

.ls-arrow-ghost {
  transform: translateX(-100%)
}

.ls-input-submit:hover .ls-arrow:not(.ls-arrow-ghost) {
  transform: translateX(100%)
}

.ls-input-submit:hover .ls-arrow-ghost {
  transform: translateX(0)
}

.ls-pwd-eye {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, .35);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  transition: all .2s
}

.ls-pwd-eye:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1)
}

/* Form groups */
.ls-fg {
  margin-bottom: 0
}

.ls-rme {
  margin-top: 0;
  color: rgba(255, 255, 255, .5);
  font-size: 12px
}

/* Turnstile CAPTCHA */
.ls-turnstile {
  display: flex;
  justify-content: center;
  margin: 12px 0 4px;
  min-height: 65px;
}

/* Buttons */
.ls-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 4px
}

.ls-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .25s;
  outline: none;
  flex: 1
}

.ls-btn-back {
  background: #fff;
  color: #000;
  flex: 0 0 30%
}

.ls-btn-back:hover {
  background: rgba(255, 255, 255, .88);
  transform: translateY(-1px)
}

.ls-btn-continue {
  background: #fff;
  color: #000
}

.ls-btn-continue:hover {
  background: rgba(255, 255, 255, .88);
  transform: translateY(-1px)
}

.ls-btn-continue:disabled {
  opacity: .3;
  cursor: not-allowed;
  transform: none
}

.ls-btn-full {
  width: 100%
}

/* Code inputs */
.ls-code-group {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
  gap: 4px
}

.ls-code-inp {
  width: 36px;
  height: 40px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  font-family: 'DM Mono', monospace;
  caret-color: var(--aa)
}

.ls-code-sep {
  color: rgba(255, 255, 255, .15);
  font-size: 18px;
  user-select: none
}

.ls-resend {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .4)
}

.ls-link-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  font-size: 13px;
  padding: 0;
  transition: color .2s
}

.ls-link-btn:hover {
  color: #fff
}

/* Success */
.ls-success-body {
  align-items: center;
  padding-top: 20px
}

.ls-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, .7));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  animation: lsSuccessPop .5s cubic-bezier(.34, 1.56, .64, 1);
  margin-bottom: 16px
}

@keyframes lsSuccessPop {
  from {
    transform: scale(0);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

/* Legal */
.ls-legal {
  font-size: 11px;
  color: rgba(255, 255, 255, .25);
  text-align: center;
  line-height: 1.6;
  margin-top: 16px
}

.ls-legal a {
  color: rgba(255, 255, 255, .4);
  text-decoration: underline;
  transition: color .2s
}

.ls-legal a:hover {
  color: rgba(255, 255, 255, .6)
}

/* Guest Banner in chat */
.guest-banner {
  max-width: 720px;
  margin: 0 auto 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.038);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #fff;
  animation: fadeUp .4s ease
}

.guest-banner-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(200, 200, 200, .9));
  color: #000;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  margin-left: auto;
  flex-shrink: 0;
  font-weight: 600
}

.guest-banner-btn:hover {
  opacity: .85;
  transform: scale(1.04)
}

.lnote {
  margin-top: 12px;
  font-size: 11px;
  color: var(--dm);
  text-align: center;
  line-height: 1.6
}
