/* ================= LEDNFONTS AUTH DRAWER ================= */
.auth-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s ease, visibility .35s ease;
  pointer-events: none;
}

.auth-overlay.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.auth-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: min(430px, 94vw);
  height: 100%;
  overflow-y: auto;
  padding: 34px 32px 28px;
  background:
    radial-gradient(circle at 15% 12%, rgba(0, 229, 255, .12), transparent 32%),
    radial-gradient(circle at 90% 85%, rgba(255, 0, 122, .12), transparent 35%),
    linear-gradient(160deg, #0b131b 0%, #071015 100%);
  border-left: 1px solid rgba(0, 229, 255, .24);
  box-shadow: -24px 0 80px rgba(0, 0, 0, .55), -4px 0 32px rgba(0, 229, 255, .08);
  transform: translateX(105%);
  transition: transform .55s cubic-bezier(.16,.84,.3,1);
}

.auth-overlay.is-visible .auth-drawer {
  transform: translateX(0);
}

body.auth-open {
  overflow: hidden;
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.045);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transition: .2s ease;
}

.auth-close:hover {
  color: #00e5ff;
  border-color: rgba(0,229,255,.5);
  box-shadow: 0 0 20px rgba(0,229,255,.16);
  transform: rotate(90deg);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 52px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .2px;
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #00e5ff, #ff007a);
  color: #061014;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 0 26px rgba(0,229,255,.2);
}

.auth-kicker {
  margin: 0 0 10px;
  color: #00e5ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2.3px;
}

.auth-view {
  display: none;
  animation: authViewIn .35s ease both;
}

.auth-view.is-active {
  display: block;
}

.auth-view h2 {
  margin: 0;
  color: #f5f8fa;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.08;
  letter-spacing: -1.4px;
}

.auth-view h2 span {
  color: #00e5ff;
  text-shadow: 0 0 20px rgba(0,229,255,.22);
}

.auth-subtitle {
  margin: 14px 0 30px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  line-height: 1.7;
}

.auth-field {
  display: block;
  margin-bottom: 18px;
}

.auth-field span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 11px;
  outline: none;
  background: rgba(255,255,255,.045);
  color: #fff;
  font: inherit;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-field input::placeholder {
  color: rgba(255,255,255,.30);
}

.auth-field input:focus {
  border-color: rgba(0,229,255,.62);
  background: rgba(0,229,255,.035);
  box-shadow: 0 0 0 3px rgba(0,229,255,.07), 0 0 24px rgba(0,229,255,.06);
}

.auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 7px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(90deg, #00e5ff, #ff007a);
  color: #061014;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(0,229,255,.11);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(0,229,255,.18);
  filter: brightness(1.06);
}

.auth-submit:disabled {
  opacity: .6;
  cursor: wait;
}

.auth-switch {
  margin: 25px 0 0;
  color: rgba(255,255,255,.55);
  text-align: center;
  font-size: 12px;
}

.auth-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #00e5ff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

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

.auth-message {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.auth-message.error { color: #ff6b9e; }
.auth-message.success { color: #6ff7e8; }

.auth-user {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: rgba(255,255,255,.8);
  font-size: 12px;
}

.auth-user.is-authenticated { display: flex; }
.auth-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52f4cf;
  box-shadow: 0 0 12px rgba(82,244,207,.75);
}

.auth-logout {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,.7);
  cursor: pointer;
}

.auth-logout:hover {
  color: #fff;
  border-color: rgba(255,0,122,.45);
}



/* Keep the auth layer above every website section, video and navbar. */
.auth-overlay {
  isolation: isolate;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

.auth-drawer {
  z-index: 2147483647 !important;
  max-width: 100vw;
  min-height: 100dvh;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.auth-overlay.is-visible .auth-drawer {
  will-change: transform;
}

@media (max-width: 768px) {
  .auth-drawer {
    width: min(420px, 100vw);
    padding: 26px 20px 22px;
    border-left: 0;
    border-right: 0;
  }

  .auth-brand {
    margin-bottom: 34px;
  }

  .auth-view h2 {
    font-size: clamp(27px, 8vw, 36px);
  }

  .auth-subtitle {
    margin-bottom: 24px;
  }

  .auth-field {
    margin-bottom: 15px;
  }

  .auth-field input {
    height: 48px;
    font-size: 16px;
  }

  .auth-submit {
    min-height: 48px;
  }
}

@media (max-width: 420px) {
  .auth-drawer {
    padding: 22px 17px 20px;
  }

  .auth-close {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
  }

  .auth-brand {
    margin-bottom: 28px;
  }

  .auth-brand-mark {
    width: 34px;
    height: 34px;
  }
}

@media (max-height: 620px) {
  .auth-drawer {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .auth-brand {
    margin-bottom: 20px;
  }

  .auth-subtitle {
    margin: 9px 0 17px;
  }

  .auth-field {
    margin-bottom: 11px;
  }
}

@keyframes authViewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .auth-drawer {
    width: 100%;
    padding: 28px 22px 24px;
  }

  .auth-brand { margin-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-drawer,
  .auth-overlay,
  .auth-view { transition: none; animation: none; }
}
