/**
 * Grand Hero Liquid Glass Neumorphic Login Popup Modal
 * Dimensions: 700px - 900px Width, 500px - 650px Height
 * Features: Translucent Frosted Glass Overlay (Web background is clearly visible!),
 * Animated Snake Laser Border around the entire Login Container,
 * and Aceternity UI Moving Border Inputs in UI theme colors.
 */

/* Translucent Frosted Glass Overlay (Website behind remains beautifully visible) */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.auth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Outer Frame with Glowing Animated Snake Laser Border around Container */
.auth-hero-modal-outer-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 2.5px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 30px 80px -10px rgba(0, 0, 0, 0.55),
    0 10px 40px rgba(124, 58, 237, 0.25);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 95vw;
}

.auth-modal-overlay.active .auth-hero-modal-outer-frame {
  transform: scale(1) translateY(0);
}

/* Snake Light Tracer Running Around Container Perimeter */
.modal-frame-snake-tracer {
  position: absolute;
  inset: -150%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 180deg,
    #7c3aed 240deg,
    #ec4899 290deg,
    #f97316 330deg,
    #38bdf8 350deg,
    #ffffff 360deg
  );
  animation: rotateModalOuterBorder 4s linear infinite;
  filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.9)) drop-shadow(0 0 5px rgba(56, 189, 248, 0.9));
  pointer-events: none;
  z-index: 1;
}

@keyframes rotateModalOuterBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Grand Hero Modal Container (700-900px Wide, 500-650px High) */
.auth-hero-modal-container {
  width: 860px;
  max-width: calc(95vw - 5px);
  min-height: 560px;
  max-height: 90vh;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

/* Close Button */
.btn-close-hero-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.btn-close-hero-modal:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   1. LEFT COLUMN: GRAND HERO BRAND SHOWCASE (ACETERNITY LIQUID GLASS)
   ========================================================================== */
.auth-hero-left-showcase {
  background: linear-gradient(145deg, #070a14 0%, #130e28 50%, #200d33 100%);
  padding: 2.5rem 2.2rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* Shifting Ambient Liquid Glow Orbs */
.hero-showcase-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  opacity: 0.6;
  animation: heroLiquidOrbPulse 7s ease-in-out infinite alternate;
}
.hero-showcase-glow.purple {
  width: 220px;
  height: 220px;
  background: #7c3aed;
  top: -60px;
  right: -50px;
}
.hero-showcase-glow.pink {
  width: 180px;
  height: 180px;
  background: #ec4899;
  bottom: -40px;
  left: -20px;
  animation-delay: -3.5s;
}
.hero-showcase-glow.cyan {
  width: 140px;
  height: 140px;
  background: #06b6d4;
  top: 45%;
  left: 20%;
  animation-delay: -1.8s;
}

@keyframes heroLiquidOrbPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
  50% { transform: scale(1.25) translate(15px, -15px); opacity: 0.75; }
  100% { transform: scale(0.9) translate(-15px, 15px); opacity: 0.55; }
}

/* Top Badge */
.hero-showcase-top {
  position: relative;
  z-index: 2;
}
.hero-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #e2e8f0;
}
.portal-green-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: dotPulse 2s infinite;
}

/* Center Brand Identity with Aceternity Moving Border */
.hero-showcase-brand {
  position: relative;
  z-index: 2;
  margin: 1.5rem 0;
}

.hero-avatar-moving-box {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  padding: 2.5px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.1rem;
}

.hero-avatar-tracer {
  position: absolute;
  inset: -150%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 180deg,
    #7c3aed 240deg,
    #ec4899 290deg,
    #f97316 330deg,
    #38bdf8 350deg,
    #ffffff 360deg
  );
  animation: rotateMovingBorder 3.5s linear infinite;
}

.hero-avatar-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e1b4b 0%, #31104b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-avatar-initials {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #c084fc, #f472b6, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-showcase-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.3rem 0;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.gradient-text-hero {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-showcase-subtitle {
  font-size: 0.84rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

/* Feature List */
.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
  margin: 1.2rem 0;
}
.hero-feature-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.76rem;
  color: #cbd5e1;
  font-weight: 600;
}
.hero-feature-pill i {
  color: #38bdf8;
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
}

/* Bottom Floating Status Card */
.hero-showcase-bottom {
  position: relative;
  z-index: 2;
}
.hero-stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.stat-icon-sparkle {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.6), rgba(236, 72, 153, 0.5));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.stat-text-wrap {
  display: flex;
  flex-direction: column;
}
.stat-text-wrap strong {
  font-size: 0.78rem;
  color: #ffffff;
  font-weight: 800;
}
.stat-text-wrap span {
  font-size: 0.68rem;
  color: #94a3b8;
}

/* ==========================================================================
   2. RIGHT COLUMN: INTERACTIVE LOGIN FORM & ACETERNITY INPUTS
   ========================================================================== */
.auth-hero-right-form {
  padding: 2.6rem 2.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.auth-form-header {
  margin-bottom: 1.8rem;
}
.auth-form-header h3 {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.4px;
}
.auth-form-header p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

/* 1-Click Instant Demo Bar */
.auth-demo-bar {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.65rem 0.95rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}
.auth-demo-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.auth-demo-title i {
  color: #ea580c;
}

.auth-demo-chips {
  display: flex;
  gap: 0.45rem;
}
.btn-demo-chip {
  border: none;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.32rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.btn-demo-chip.admin {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #c4b5fd;
}
.btn-demo-chip.admin:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}
.btn-demo-chip.user {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
}
.btn-demo-chip.user:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

/* Google Sign In Button */
.btn-google-auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.75rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e293b;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  margin-bottom: 1rem;
}
.btn-google-auth:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.google-svg-icon {
  flex-shrink: 0;
}

/* Divider Line */
.auth-divider-line {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 1.1rem;
}
.auth-divider-line::before,
.auth-divider-line::after {
  content: '';
  flex: 1;
  border-bottom: 1.5px solid #e2e8f0;
}
.auth-divider-line span {
  padding: 0 0.8rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   3. ACETERNITY UI MOVING BORDER SNAKE LIGHT INPUTS
   Constraint: overflow: hidden ensures NO light leaks out!
   ========================================================================== */
.auth-field-box {
  margin-bottom: 1.15rem;
}

.auth-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 0.35rem;
}

/* The Aceternity Moving Border Container */
.moving-border-input-container {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 2px;
  background: #e2e8f0;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* The Rotating Snake Laser Tracer (Hidden by default, Lights up on hover/focus) */
.moving-border-tracer {
  position: absolute;
  inset: -150%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 200deg,
    #7c3aed 260deg,
    #ec4899 300deg,
    #f97316 335deg,
    #38bdf8 355deg,
    #ffffff 360deg
  );
  animation: rotateMovingBorder 3.5s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

@keyframes rotateMovingBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.moving-border-input-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0.15rem 0.75rem;
}

/* Hover & Focus Triggers */
.moving-border-input-container:hover {
  background: #cbd5e1;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.08);
}
.moving-border-input-container:hover .moving-border-tracer {
  opacity: 0.85;
  animation-duration: 2.2s;
  filter: drop-shadow(0 0 8px #ec4899) drop-shadow(0 0 4px #7c3aed);
}

.moving-border-input-container:focus-within {
  background: #7c3aed;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.18);
  transform: translateY(-1px);
}
.moving-border-input-container:focus-within .moving-border-tracer {
  opacity: 1;
  animation-duration: 1.8s;
  filter: drop-shadow(0 0 12px #ec4899) drop-shadow(0 0 6px #38bdf8);
}

.field-icon {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-right: 0.65rem;
  transition: color 0.25s ease;
}
.moving-border-input-container:focus-within .field-icon {
  color: #7c3aed;
}

.clean-auth-input {
  width: 100%;
  padding: 0.72rem 0;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  font-family: inherit;
}

.btn-pwd-eye {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.btn-pwd-eye:hover {
  color: #7c3aed;
}

/* Options Row */
.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 1.3rem;
}
.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #64748b;
  cursor: pointer;
  font-weight: 600;
}
.auth-checkbox-label input {
  accent-color: #7c3aed;
  width: 15px;
  height: 15px;
}
.auth-link {
  color: #7c3aed;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease;
}
.auth-link:hover {
  color: #ec4899;
  text-decoration: underline;
}

/* Submit Button */
.btn-hero-auth-submit {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f97316 100%);
  color: #ffffff;
  border: none;
  padding: 0.9rem 1.6rem;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.btn-laser-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  animation: laserShimmerMove 4s infinite linear;
}
@keyframes laserShimmerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

.btn-hero-auth-submit:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 14px 34px rgba(234, 88, 12, 0.45);
}

.auth-footer-prompt {
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.auth-footer-prompt a {
  color: #7c3aed;
  font-weight: 800;
  text-decoration: none;
}
.auth-footer-prompt a:hover {
  color: #ec4899;
  text-decoration: underline;
}

/* Navbar Login Button */
.btn-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #0f172a !important;
  border: 1.5px solid #e2e8f0;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}
.btn-nav-login:hover {
  border-color: #ea580c;
  color: #ea580c !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.15);
}

/* ==========================================================================
   4. RESPONSIVE MEDIA QUERIES (MOBILE ENHANCEMENTS)
   ========================================================================== */
@media (max-width: 820px) {
  .auth-modal-overlay {
    padding: 0.75rem !important;
  }
  .auth-hero-modal-outer-frame {
    width: 100% !important;
    max-width: 440px !important;
    border-radius: 24px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  .auth-hero-modal-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    border-radius: 22px !important;
    box-sizing: border-box !important;
  }
  .auth-hero-left-showcase {
    display: none !important;
  }
  .auth-hero-right-form {
    padding: 1.6rem 1.25rem 1.4rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .btn-close-hero-modal {
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
  }
  .auth-form-header {
    margin-bottom: 1.1rem !important;
    padding-right: 32px !important;
  }
  .auth-form-header h3 {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
  }
  .auth-form-header p {
    font-size: 0.74rem !important;
  }
  .auth-demo-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.45rem !important;
    padding: 0.6rem 0.8rem !important;
    margin-bottom: 1rem !important;
  }
  .auth-demo-chips {
    width: 100% !important;
  }
  .btn-demo-chip {
    flex: 1 !important;
    justify-content: center !important;
    font-size: 0.72rem !important;
    padding: 0.35rem 0.6rem !important;
  }
  .btn-google-auth {
    padding: 0.65rem 1rem !important;
    font-size: 0.84rem !important;
    margin-bottom: 0.85rem !important;
  }
  .auth-field-box {
    margin-bottom: 0.95rem !important;
  }
  .auth-label {
    font-size: 0.74rem !important;
    margin-bottom: 0.25rem !important;
  }
  .moving-border-input-inner {
    padding: 0.1rem 0.65rem !important;
  }
  .clean-auth-input {
    font-size: 0.85rem !important;
    padding: 0.65rem 0 !important;
  }
  .auth-options-row {
    font-size: 0.74rem !important;
    margin-bottom: 1.1rem !important;
  }
  .btn-hero-auth-submit {
    padding: 0.8rem 1.4rem !important;
    font-size: 0.92rem !important;
  }
  .auth-footer-prompt {
    font-size: 0.74rem !important;
    margin-top: 0.9rem !important;
  }
}
