/* ========================================
   Bolt Ventures — Modern Auth UI
   ======================================== */

.auth-modern {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 3rem;
  overflow: hidden;
}

.auth-modern-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  animation: floatOrb 16s ease-in-out infinite;
}

.auth-orb-1 {
  width: 380px;
  height: 380px;
  background: #0ea5e9;
  top: -8%;
  left: -6%;
}

.auth-orb-2 {
  width: 320px;
  height: 320px;
  background: #14b8a6;
  right: -4%;
  bottom: 10%;
  animation-delay: -5s;
}

.auth-orb-3 {
  width: 240px;
  height: 240px;
  background: #38bdf8;
  left: 40%;
  top: 55%;
  animation-delay: -10s;
}

.auth-grid-lines {
  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 at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.auth-modern .container {
  position: relative;
  z-index: 1;
}

.auth-modern-shell {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 28, 40, 0.62);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 30px 80px rgba(2, 12, 20, 0.5),
    0 0 0 1px rgba(45, 212, 191, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .auth-modern-shell {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(37, 99, 235, 0.12);
  box-shadow: 0 30px 80px rgba(37, 99, 235, 0.12);
}

/* Left panel */
.auth-modern-side {
  position: relative;
  padding: 3rem 2.5rem;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(160deg, rgba(29, 155, 240, 0.38), rgba(20, 184, 166, 0.28) 50%, rgba(56, 189, 248, 0.16)),
    radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.28), transparent 50%);
  overflow: hidden;
  min-height: 480px;
}

.auth-side-login {
  background:
    linear-gradient(160deg, rgba(13, 148, 136, 0.4), rgba(29, 155, 240, 0.28) 55%, rgba(56, 189, 248, 0.14)),
    radial-gradient(circle at 80% 15%, rgba(56, 189, 248, 0.3), transparent 50%);
}

.auth-side-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  top: 15%;
  right: 10%;
  filter: blur(20px);
  animation: boltPulse 4s ease-in-out infinite;
}

.auth-side-content {
  position: relative;
  z-index: 1;
}

.auth-side-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  font-weight: 600;
  color: #a5f3fc;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.auth-side-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.auth-side-content > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

[data-theme="light"] .auth-side-content > p {
  color: rgba(11, 18, 40, 0.7);
}

.auth-side-points {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.auth-side-points li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

[data-theme="light"] .auth-side-points li {
  color: rgba(11, 18, 40, 0.75);
}

.auth-side-points i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* Right card */
.auth-modern-card {
  padding: 3rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(6, 20, 31, 0.4);
}

[data-theme="light"] .auth-modern-card {
  background: rgba(255, 255, 255, 0.5);
}

.auth-modern-head {
  margin-bottom: 2rem;
}

.auth-modern-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #f4fafc, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .auth-modern-head h1 {
  background: linear-gradient(135deg, #0a1a24, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
}

.auth-modern-head p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-modern-form .auth-field {
  margin-bottom: 1.25rem;
}

.auth-modern-form label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.auth-modern-form .input-wrap {
  position: relative;
}

.auth-modern-form .input-wrap > i {
  color: var(--text-dim);
}

.auth-modern-form input {
  height: 54px;
  padding: 0 1rem 0 2.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.98rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

[data-theme="light"] .auth-modern-form input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(37, 99, 235, 0.15);
}

.auth-modern-form input:hover {
  border-color: rgba(6, 182, 212, 0.35);
}

.auth-modern-form input:focus {
  border-color: #1d9bf0;
  background: rgba(29, 155, 240, 0.08);
  box-shadow:
    0 0 0 4px rgba(29, 155, 240, 0.15),
    0 0 28px rgba(45, 212, 191, 0.18);
}

.auth-modern-form .input-wrap:focus-within > i {
  color: #2dd4bf;
}

.auth-modern-form input.has-toggle {
  padding-right: 3rem;
}

.auth-submit {
  margin-top: 0.5rem;
  height: 54px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #1d9bf0, #0d9488 55%, #2dd4bf);
  background-size: 180% 180%;
  animation: borderFlow 5s ease infinite;
  box-shadow: 0 12px 36px rgba(29, 155, 240, 0.35);
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(13, 148, 136, 0.4);
}

.auth-submit .btn-text i {
  margin-left: 0.35rem;
  transition: transform 0.3s ease;
}

.auth-submit:hover .btn-text i {
  transform: translateX(4px);
}

.auth-modern-card .auth-footer-link {
  margin-top: 1.75rem;
  font-size: 0.92rem;
}

/* Hide default full footer brand grid density on auth if needed */
.auth-modern + .footer,
body:has(.auth-modern) .footer .footer-grid {
  display: none;
}

body:has(.auth-modern) .footer {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
}

body:has(.auth-modern) .footer::before {
  display: none;
}

body:has(.auth-modern) .footer-bottom {
  border: none;
  padding: 1.25rem 0 1.75rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 900px) {
  .auth-modern-shell {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .auth-modern-side {
    min-height: auto;
    padding: 2rem 1.75rem 1.5rem;
    align-items: flex-start;
  }

  .auth-side-content > p {
    margin-bottom: 1rem;
  }

  .auth-side-points {
    display: none;
  }

  .auth-modern-card {
    padding: 1.75rem 1.5rem 2.25rem;
  }
}

@media (max-width: 576px) {
  .auth-modern {
    padding: calc(var(--nav-h) + 1rem) 0 1.5rem;
    align-items: flex-start;
  }

  .auth-modern-shell {
    border-radius: 22px;
  }

  .auth-modern-side {
    padding: 1.5rem 1.25rem 1.15rem;
  }

  .auth-modern-card {
    padding: 1.35rem 1.15rem 1.75rem;
  }

  .auth-modern-form input {
    height: 50px;
    font-size: 16px;
  }

  .auth-submit {
    height: 50px;
  }

  .auth-orb {
    opacity: 0.25;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .auth-modern-side {
    display: none;
  }

  .auth-modern {
    padding-top: calc(var(--nav-h) + 0.75rem);
  }
}

/* Blocked account modal */
.bv-block-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bv-block-modal.show {
  opacity: 1;
  visibility: visible;
}

.bv-block-card {
  width: min(100%, 400px);
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 20px;
  background: linear-gradient(165deg, #1a2233 0%, #121826 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.28s ease;
}

.bv-block-modal.show .bv-block-card {
  transform: translateY(0) scale(1);
}

.bv-block-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(220, 53, 69, 0.15);
  color: #ff6b7a;
  font-size: 1.5rem;
}

.bv-block-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.bv-block-msg {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.bv-block-sub {
  margin: 0 0 1.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.bv-block-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 46px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #e85d6a, #c0392b);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.bv-block-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

[data-theme="light"] .bv-block-card {
  background: linear-gradient(165deg, #ffffff 0%, #f4f6f9 100%);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .bv-block-card h3 {
  color: #1a2233;
}

[data-theme="light"] .bv-block-msg {
  color: #333;
}

[data-theme="light"] .bv-block-sub {
  color: #777;
}
