/**
 * VIOLET NFT — Premium Authentication Design System
 * Phase 1: Authentication Screens
 * Electric Violet / Neon Purple / Deep Space Dark UI
 */

/* ==================================================
   0. DESIGN TOKENS — VIOLET NFT PALETTE
   ================================================== */
:root {
  /* Core Background Layers */
  --vn-bg-void:        #070518;
  --vn-bg-galaxy:      #0D0824;
  --vn-bg-nebula:      #160B35;

  /* Glassmorphic Card Surface */
  --vn-card-bg:        rgba(16, 8, 36, 0.78);
  --vn-card-blur:      blur(22px) saturate(180%);
  --vn-card-radius:    22px;

  /* Primary Violet Spectrum */
  --vn-primary:        #6D28FF;
  --vn-primary-mid:    #8B2EFF;
  --vn-primary-bright: #B026FF;
  --vn-primary-glow:   rgba(140, 46, 255, 0.55);
  --vn-primary-soft:   rgba(140, 46, 255, 0.18);

  /* Cyber Accent Cyan */
  --vn-accent-cyan:    #00D4FF;
  --vn-accent-cyan-glow: rgba(0, 212, 255, 0.45);

  /* Input Controls */
  --vn-input-bg:       rgba(13, 8, 36, 0.65);
  --vn-input-border:   rgba(176, 38, 255, 0.28);
  --vn-input-focus:    rgba(176, 38, 255, 0.70);
  --vn-input-radius:   12px;

  /* Typography */
  --vn-text-white:     #FFFFFF;
  --vn-text-silver:    #E2E8F0;
  --vn-text-muted:     #A5A1D8;
  --vn-text-dim:       #7B77B0;

  /* Status Colors */
  --vn-success:        #10B981;
  --vn-error:          #EF4444;
  --vn-warning:        #F59E0B;

  /* Gradient Shorthand */
  --vn-gradient:       linear-gradient(135deg, #6D28FF 0%, #8B2EFF 50%, #B026FF 100%);
  --vn-gradient-hover: linear-gradient(135deg, #7C3AFF 0%, #9B3EFF 50%, #C036FF 100%);
}

/* ==================================================
   1. RESET & BASE
   ================================================== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: var(--vn-bg-void) !important;
  color: var(--vn-text-silver);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden !important;
}

/* Suppress default browser password reveal icons */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-contacts-auto-fill-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ==================================================
   2. VIOLET NFT COSMIC ENVIRONMENT
   ================================================== */

/* Full-screen space container */
.vn-universe {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--vn-bg-void);
}

/* Deep Space Backdrop */
.vn-bg-backdrop {
  position: fixed;
  inset: -15px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
  animation: vnCosmicDrift 36s ease-in-out infinite alternate;
  transform-origin: center center;
  will-change: transform;
}

@keyframes vnCosmicDrift {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05) translate(-6px, -3px); }
  100% { transform: scale(1) translate(3px, 3px); }
}

/* Deep translucent overlay so violet-tinted background shines through */
.vn-bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(7, 5, 24, 0.10) 0%,
    rgba(13, 8, 36, 0.42) 55%,
    rgba(7, 5, 24, 0.80) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Animated Particle Canvas */
.vn-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 3;
}

/* Ambient Violet Nebula Clouds */
.vn-nebula {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.vn-nebula-cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  will-change: transform, opacity;
}

.vn-nebula-top-right {
  top: -5%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(176, 38, 255, 0.22) 0%,
    rgba(109, 40, 255, 0.12) 45%,
    transparent 70%
  );
  animation: vnNebulaPulse 14s ease-in-out infinite alternate;
}

.vn-nebula-top-left {
  top: 10%;
  left: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.14) 0%,
    rgba(109, 40, 255, 0.08) 45%,
    transparent 70%
  );
  animation: vnNebulaPulse 18s ease-in-out infinite alternate-reverse;
}

.vn-nebula-bottom {
  bottom: -10%;
  left: 25%;
  width: 750px;
  height: 350px;
  background: radial-gradient(
    ellipse,
    rgba(109, 40, 255, 0.18) 0%,
    rgba(176, 38, 255, 0.08) 50%,
    transparent 70%
  );
  animation: vnNebulaPulse 22s ease-in-out infinite;
}

@keyframes vnNebulaPulse {
  0%   { opacity: 0.55; transform: scale(0.95); }
  100% { opacity: 1.0;  transform: scale(1.1); }
}

/* Cyber Grid Horizon */
.vn-cyber-grid {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background: linear-gradient(
    to top,
    rgba(109, 40, 255, 0.12),
    rgba(176, 38, 255, 0.04),
    transparent
  );
  pointer-events: none;
  z-index: 4;
}

/* Floating NFT Crystals / Diamond Shards */
.vn-floating-elements {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.vn-crystal {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  animation: vnCrystalFloat linear infinite;
  will-change: transform, opacity;
}

.vn-crystal::before {
  content: '';
  display: block;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid rgba(176, 38, 255, 0.55);
  filter: drop-shadow(0 0 8px rgba(176, 38, 255, 0.8));
}

.vn-crystal-1  { left: 8%;  top: 70%; width: 20px; height: 20px; animation-duration: 18s; animation-delay: 0s;    --crystal-scale: 0.7; }
.vn-crystal-2  { left: 15%; top: 60%; width: 14px; height: 14px; animation-duration: 22s; animation-delay: 2s;    --crystal-scale: 0.5; }
.vn-crystal-3  { left: 5%;  top: 40%; width: 16px; height: 16px; animation-duration: 25s; animation-delay: 4s;    --crystal-scale: 0.6; }
.vn-crystal-4  { right: 8%; top: 65%; width: 18px; height: 18px; animation-duration: 20s; animation-delay: 1s;    --crystal-scale: 0.65; }
.vn-crystal-5  { right: 14%;top: 35%; width: 12px; height: 12px; animation-duration: 28s; animation-delay: 6s;    --crystal-scale: 0.45; }
.vn-crystal-6  { right: 5%; top: 20%; width: 22px; height: 22px; animation-duration: 15s; animation-delay: 3s;    --crystal-scale: 0.8; }

@keyframes vnCrystalFloat {
  0%   { transform: translateY(0)   rotate(0deg)   scale(var(--crystal-scale, 0.6)); opacity: 0; }
  10%  { opacity: 0.9; }
  85%  { opacity: 0.9; }
  100% { transform: translateY(-180px) rotate(180deg) scale(var(--crystal-scale, 0.6)); opacity: 0; }
}

/* ==================================================
   3. CONTENT CONTAINER & AUTH WRAPPER
   ================================================== */
.vn-content-container {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vn-content-container::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
}

/* Keep existing Bootstrap class compatibility */
.authentication-wrapper.authentication-basic {
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: unset !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

.authentication-wrapper.authentication-basic .authentication-inner {
  max-width: 450px !important;
  width: 100%;
  position: relative;
  margin: auto;
}

.authentication-wrapper.authentication-basic .authentication-inner.inner-wide {
  max-width: 540px !important;
}

.authentication-wrapper.authentication-basic .authentication-inner:before,
.authentication-wrapper.authentication-basic .authentication-inner:after {
  display: none !important;
}

/* ==================================================
   4. GLASSMORPHIC VIOLET CARD
   ================================================== */
.vn-card,
.galaxy-card {
  position: relative;
  background: var(--vn-card-bg) !important;
  backdrop-filter: var(--vn-card-blur) !important;
  -webkit-backdrop-filter: var(--vn-card-blur) !important;
  border: 1.5px solid rgba(176, 38, 255, 0.35) !important;
  border-radius: var(--vn-card-radius) !important;
  box-shadow:
    0 0 0 0.5px rgba(109, 40, 255, 0.4),
    0 0 30px rgba(140, 46, 255, 0.28),
    0 0 80px rgba(109, 40, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 20px rgba(109, 40, 255, 0.08),
    0 32px 64px rgba(0, 0, 0, 0.72) !important;
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: vnCardReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Specular highlight on top edge */
.vn-card::before,
.galaxy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(176, 38, 255, 0.6),
    rgba(0, 212, 255, 0.4),
    rgba(176, 38, 255, 0.6),
    transparent
  );
  z-index: 1;
}

.vn-card:hover,
.galaxy-card:hover {
  border-color: rgba(176, 38, 255, 0.60) !important;
  box-shadow:
    0 0 0 0.5px rgba(176, 38, 255, 0.55),
    0 0 45px rgba(140, 46, 255, 0.45),
    0 0 100px rgba(109, 40, 255, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 0 25px rgba(109, 40, 255, 0.12),
    0 40px 80px rgba(0, 0, 0, 0.85) !important;
}

@keyframes vnCardReveal {
  0%   { opacity: 0; transform: translateY(28px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.vn-card .card-body,
.galaxy-card .card-body {
  padding: 1.6rem 2rem 1.35rem !important;
  position: relative;
  z-index: 2;
}

/* ==================================================
   5. BRANDING — VIOLET NFT LOGO
   ================================================== */
.vn-logo-container,
.galaxy-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.75rem;
}

.vn-logo-badge,
.galaxy-logo-badge {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(22, 11, 53, 0.9) 0%, rgba(7, 5, 24, 0.95) 100%);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(176, 38, 255, 0.60);
  box-shadow:
    0 0 20px rgba(140, 46, 255, 0.5),
    0 0 45px rgba(109, 40, 255, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  animation: vnLogoPulse 4s ease-in-out infinite alternate;
}

.vn-logo-badge:hover,
.galaxy-logo-badge:hover {
  transform: scale(1.07);
  box-shadow:
    0 0 32px rgba(176, 38, 255, 0.75),
    0 0 65px rgba(109, 40, 255, 0.4),
    0 10px 28px rgba(0, 0, 0, 0.7);
}

@keyframes vnLogoPulse {
  0%   { box-shadow: 0 0 18px rgba(140, 46, 255, 0.45), 0 0 36px rgba(109, 40, 255, 0.20); }
  100% { box-shadow: 0 0 28px rgba(176, 38, 255, 0.70), 0 0 55px rgba(140, 46, 255, 0.35); }
}

.vn-logo-img,
.galaxy-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

/* ==================================================
   6. TYPOGRAPHY HIERARCHY
   ================================================== */
.vn-title,
.galaxy-title {
  color: var(--vn-text-white) !important;
  font-weight: 800 !important;
  font-size: 1.35rem !important;
  letter-spacing: -0.015em;
  margin-bottom: 0.2rem !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
  line-height: 1.25;
}

.vn-title .brand-gradient,
.galaxy-title .brand-gradient {
  background: linear-gradient(135deg, #B026FF 0%, #8B2EFF 40%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  filter: drop-shadow(0 0 12px rgba(176, 38, 255, 0.5));
}

.vn-subtitle,
.galaxy-subtitle {
  color: var(--vn-text-muted) !important;
  font-size: 0.82rem !important;
  line-height: 1.45;
  margin-bottom: 1rem !important;
  opacity: 0.9;
}

/* ==================================================
   7. FORM CONTROLS — VIOLET GLASS INPUTS
   ================================================== */
.vn-form-group,
.galaxy-form-group {
  margin-bottom: 0.8rem;
}

.vn-label,
.galaxy-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vn-text-muted) !important;
  margin-bottom: 0.35rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  white-space: nowrap !important;
}

.vn-label-link,
.galaxy-label-link {
  color: rgba(176, 38, 255, 0.90) !important;
  font-size: 0.78rem !important;
  text-transform: none;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.25s ease;
  letter-spacing: 0;
}

.vn-label-link:hover,
.galaxy-label-link:hover {
  color: var(--vn-accent-cyan) !important;
  text-shadow: 0 0 10px var(--vn-accent-cyan-glow);
}

/* Input Group — Violet Glass */
.vn-input-group,
.galaxy-input-group,
.galaxy-card .input-group-merge,
.galaxy-card .input-group {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  background-color: var(--vn-input-bg) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1.5px solid var(--vn-input-border) !important;
  border-radius: var(--vn-input-radius) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.25s ease !important;
  overflow: hidden !important;
  height: 44px !important;
  padding: 0 !important;
}

/* Focus glow — Electric violet ring */
.vn-input-group:focus-within,
.galaxy-input-group:focus-within,
.galaxy-card .input-group-merge:focus-within,
.galaxy-card .input-group:focus-within {
  border-color: var(--vn-input-focus) !important;
  background-color: rgba(22, 11, 53, 0.75) !important;
  box-shadow:
    0 0 0 3px rgba(176, 38, 255, 0.22),
    0 0 18px rgba(140, 46, 255, 0.35),
    inset 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

/* Standalone input text */
.galaxy-card .form-control.galaxy-input,
.vn-input {
  background-color: transparent !important;
  border: none !important;
  color: var(--vn-text-white) !important;
  font-size: 0.92rem !important;
  padding: 0.55rem 0.95rem !important;
  height: 100% !important;
  line-height: normal !important;
  box-shadow: none !important;
  outline: none !important;
}

.galaxy-card .form-control.galaxy-input::placeholder {
  color: rgba(165, 161, 216, 0.5) !important;
  opacity: 1 !important;
}

/* Input Addons — Icon containers */
.vn-input-addon,
.galaxy-input-addon {
  background: transparent !important;
  border: none !important;
  color: rgba(176, 38, 255, 0.70) !important;
  padding: 0 0.9rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.15rem !important;
  transition: color 0.25s ease !important;
}

.vn-input-addon.cursor-pointer:hover,
.galaxy-input-addon.cursor-pointer:hover {
  color: var(--vn-accent-cyan) !important;
  text-shadow: 0 0 8px var(--vn-accent-cyan-glow);
}

/* Required star - tight gap directly after label */
.req-star {
  color: #EF4444 !important;
  margin-left: 2px !important;
  font-size: 0.82rem !important;
  line-height: 1 !important;
  display: inline-block !important;
}

/* ==================================================
   8. CUSTOM VIOLET CHECKBOX
   ================================================== */
.vn-checkbox-wrapper,
.galaxy-checkbox-wrapper {
  display: flex;
  align-items: center;
  margin: 0.65rem 0 0.85rem 0;
}

.vn-checkbox,
.galaxy-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--vn-input-border);
  border-radius: 5px;
  background-color: var(--vn-input-bg);
  cursor: pointer;
  position: relative;
  margin-right: 0.55rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.vn-checkbox:checked,
.galaxy-checkbox:checked {
  background: var(--vn-gradient);
  border-color: rgba(176, 38, 255, 0.80);
  box-shadow: 0 0 10px rgba(140, 46, 255, 0.5);
}

.vn-checkbox:checked::after,
.galaxy-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.vn-checkbox-label,
.galaxy-checkbox-label {
  color: var(--vn-text-muted) !important;
  font-size: 0.84rem !important;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
  line-height: 1.4;
}

/* ==================================================
   9. BUTTONS — VIOLET NFT ACTIONS
   ================================================== */

/* Primary — Electric Violet Gradient */
.btn.vn-btn-primary,
.btn.galaxy-btn-primary,
.vn-btn-primary,
.galaxy-btn-primary,
button.galaxy-btn-primary,
button.vn-btn-primary,
a.galaxy-btn-primary,
a.vn-btn-primary {
  background: var(--vn-gradient) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.03em !important;
  border: 1px solid rgba(176, 38, 255, 0.50) !important;
  border-radius: 12px !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow:
    0 0 22px rgba(140, 46, 255, 0.60),
    0 0 45px rgba(109, 40, 255, 0.28),
    0 4px 16px rgba(0, 0, 0, 0.5) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}

.btn.vn-btn-primary::before,
.btn.galaxy-btn-primary::before,
.vn-btn-primary::before,
.galaxy-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

.btn.vn-btn-primary:hover,
.btn.galaxy-btn-primary:hover,
.vn-btn-primary:hover,
.galaxy-btn-primary:hover,
.btn.vn-btn-primary:focus,
.btn.galaxy-btn-primary:focus,
.vn-btn-primary:focus,
.galaxy-btn-primary:focus {
  background: var(--vn-gradient-hover) !important;
  color: #ffffff !important;
  border-color: rgba(176, 38, 255, 0.75) !important;
  box-shadow:
    0 0 32px rgba(176, 38, 255, 0.80),
    0 0 70px rgba(109, 40, 255, 0.40),
    0 6px 22px rgba(0, 0, 0, 0.6) !important;
  transform: translateY(-2px);
}

.btn.vn-btn-primary:active,
.btn.galaxy-btn-primary:active,
.vn-btn-primary:active,
.galaxy-btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 0 16px rgba(140, 46, 255, 0.70) !important;
}

/* Secondary — Dark Violet Glass (Connect Wallet etc.) */
.btn.vn-btn-secondary {
  background: rgba(22, 11, 53, 0.65) !important;
  color: var(--vn-text-silver) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  border: 1.5px solid rgba(176, 38, 255, 0.28) !important;
  border-radius: 12px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.btn.vn-btn-secondary:hover {
  background: rgba(22, 11, 53, 0.90) !important;
  border-color: rgba(176, 38, 255, 0.55) !important;
  color: var(--vn-text-white) !important;
  box-shadow: 0 0 18px rgba(140, 46, 255, 0.30) !important;
  transform: translateY(-1px);
}

/* Loading spinner override */
.vn-btn-primary .spinner-border,
.galaxy-btn-primary .spinner-border {
  width: 1.1rem !important;
  height: 1.1rem !important;
  border-width: 0.15em !important;
}

/* ==================================================
   10. FOOTER LINKS & NAVIGATION
   ================================================== */
.vn-footer-text,
.galaxy-footer-text {
  text-align: center;
  color: var(--vn-text-muted);
  font-size: 0.84rem;
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.vn-link-accent,
.galaxy-link-accent {
  color: rgba(176, 38, 255, 0.90) !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.25s ease;
  margin-left: 0.3rem;
}

.vn-link-accent:hover,
.galaxy-link-accent:hover {
  color: var(--vn-accent-cyan) !important;
  text-shadow: 0 0 10px var(--vn-accent-cyan-glow);
}

.vn-back-link,
.galaxy-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(176, 38, 255, 0.85) !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: 1rem;
}

.vn-back-link:hover,
.galaxy-back-link:hover {
  color: var(--vn-accent-cyan) !important;
  text-shadow: 0 0 10px var(--vn-accent-cyan-glow);
  transform: translateX(-3px);
}

/* ==================================================
   11. ALERTS — VIOLET NFT NOTIFICATION CARDS
   ================================================== */
.alert.alert-success {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
  border-radius: 12px !important;
  color: #6EE7B7 !important;
  backdrop-filter: blur(10px);
  padding: 0.85rem 1rem !important;
  font-size: 0.90rem !important;
  margin-bottom: 1.2rem !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15) !important;
}

.alert.alert-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.35) !important;
  border-radius: 12px !important;
  color: #FCA5A5 !important;
  backdrop-filter: blur(10px);
  padding: 0.85rem 1rem !important;
  font-size: 0.90rem !important;
  margin-bottom: 1.2rem !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15) !important;
}

.alert .btn-close {
  filter: invert(1) opacity(0.65) !important;
}

/* Validation error texts */
.text-danger,
span.text-danger {
  color: #FCA5A5 !important;
  font-size: 0.80rem !important;
}

/* Sponsor verification badge */
.sponsor-badge-verified {
  color: #6EE7B7;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
}
.sponsor-badge-invalid {
  color: #FCA5A5;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
}

/* Password match feedback */
.password-feedback-match {
  color: #6EE7B7;
  font-weight: 600;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.password-feedback-mismatch {
  color: #FCA5A5;
  font-weight: 600;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==================================================
   12. CREDENTIAL BOX — REGISTRATION SUCCESS
   ================================================== */
.vn-credential-box,
.galaxy-credential-box {
  background: rgba(22, 11, 53, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(176, 38, 255, 0.28);
  border-radius: 16px;
  padding: 1.4rem;
  margin-bottom: 1.6rem;
  box-shadow:
    inset 0 0 20px rgba(109, 40, 255, 0.10),
    0 0 24px rgba(109, 40, 255, 0.12);
}

/* Copy badge */
.copy-badge {
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6EE7B7;
  transition: opacity 0.3s ease;
}

.copy-credential-btn {
  transition: all 0.2s ease;
  user-select: none;
}
.copy-credential-btn:hover { transform: scale(1.1); }
.copy-credential-btn.copied { color: #6EE7B7 !important; }

/* ==================================================
   13. SECTION DIVIDER (or-continue-with)
   ================================================== */
.vn-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.35rem 0;
  color: var(--vn-text-dim);
  font-size: 0.82rem;
  font-weight: 500;
}
.vn-divider::before,
.vn-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(176, 38, 255, 0.18);
}

/* ==================================================
   14. OTP / TWO-FACTOR INPUT BOXES
   ================================================== */
.vn-otp-container {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.9rem 0;
}

.vn-otp-input {
  width: 42px !important;
  height: 48px !important;
  text-align: center !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: var(--vn-text-white) !important;
  background: var(--vn-input-bg) !important;
  border: 1.5px solid var(--vn-input-border) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4) !important;
  transition: all 0.2s ease !important;
  caret-color: var(--vn-primary-bright);
  outline: none !important;
  padding: 0 !important;
  flex-shrink: 0;
}

.vn-otp-input:focus {
  border-color: rgba(176, 38, 255, 0.80) !important;
  background: rgba(22, 11, 53, 0.80) !important;
  box-shadow:
    0 0 0 3px rgba(176, 38, 255, 0.22),
    0 0 16px rgba(140, 46, 255, 0.40),
    inset 0 2px 6px rgba(0,0,0,0.3) !important;
  transform: scale(1.05);
}

.vn-otp-input.vn-otp-filled {
  border-color: rgba(176, 38, 255, 0.60) !important;
  background: rgba(22, 11, 53, 0.90) !important;
  box-shadow: 0 0 10px rgba(140, 46, 255, 0.35) !important;
}

/* OTP countdown timer */
.vn-countdown {
  font-size: 0.88rem;
  color: var(--vn-text-muted);
  text-align: center;
  margin-bottom: 0.5rem;
}
.vn-countdown .vn-time {
  color: rgba(176, 38, 255, 0.90);
  font-weight: 700;
  font-size: 1.0rem;
}
.vn-countdown.vn-expired .vn-time {
  color: var(--vn-error);
}

/* ==================================================
   15. SPLASH SCREEN
   ================================================== */
.vn-splash-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 10;
  padding: 2rem 1.5rem;
  text-align: center;
}

/* Large 3D Violet Logo Badge */
.vn-splash-logo-badge {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 32px;
  background: radial-gradient(circle at 35% 30%, rgba(22, 11, 53, 0.95) 0%, rgba(7, 5, 24, 0.98) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(176, 38, 255, 0.60);
  box-shadow:
    0 0 40px rgba(140, 46, 255, 0.60),
    0 0 80px rgba(109, 40, 255, 0.30),
    0 20px 40px rgba(0, 0, 0, 0.75);
  animation: vnSplashLogoPulse 3.5s ease-in-out infinite alternate;
  margin-bottom: 1.75rem;
}

.vn-splash-logo-badge img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}

@keyframes vnSplashLogoPulse {
  0%   { box-shadow: 0 0 35px rgba(140, 46, 255, 0.55), 0 0 70px rgba(109, 40, 255, 0.25); transform: scale(1); }
  100% { box-shadow: 0 0 55px rgba(176, 38, 255, 0.80), 0 0 100px rgba(140, 46, 255, 0.40); transform: scale(1.025); }
}

/* Orbital ring around splash logo */
.vn-splash-orbital {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--vn-bg-void), var(--vn-bg-void)) padding-box,
              linear-gradient(135deg, rgba(176, 38, 255, 0.70), rgba(0, 212, 255, 0.40), rgba(176, 38, 255, 0.70)) border-box;
  animation: vnOrbitalSpin 8s linear infinite;
}

.vn-splash-orbital::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.90), rgba(109, 40, 255, 0.70));
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.90);
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
}

@keyframes vnOrbitalSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.vn-splash-brand-name {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--vn-text-white);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 30px rgba(140, 46, 255, 0.5);
}

.vn-splash-brand-name span {
  background: linear-gradient(135deg, #B026FF 0%, #8B2EFF 40%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vn-splash-tagline {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--vn-text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* NFT Showcase Stage */
.vn-splash-stage {
  position: relative;
  width: 260px;
  height: 160px;
  margin-bottom: 2.5rem;
}

.vn-splash-pedestal {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 50px;
  background: radial-gradient(ellipse at 50% 50%, rgba(140, 46, 255, 0.35) 0%, rgba(109, 40, 255, 0.10) 60%, transparent 100%);
  border-radius: 50%;
  box-shadow:
    0 0 40px rgba(140, 46, 255, 0.45),
    0 0 80px rgba(109, 40, 255, 0.25),
    0 0 120px rgba(176, 38, 255, 0.12);
  animation: vnPedestalGlow 3s ease-in-out infinite alternate;
}

@keyframes vnPedestalGlow {
  0%   { box-shadow: 0 0 35px rgba(140, 46, 255, 0.40), 0 0 70px rgba(109, 40, 255, 0.20); }
  100% { box-shadow: 0 0 55px rgba(176, 38, 255, 0.65), 0 0 100px rgba(140, 46, 255, 0.35); }
}

/* Holographic NFT Cards */
.vn-nft-cards {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.vn-nft-card {
  width: 60px;
  height: 80px;
  border-radius: 10px;
  border: 1.5px solid rgba(176, 38, 255, 0.50);
  background: linear-gradient(145deg, rgba(22, 11, 53, 0.90) 0%, rgba(13, 8, 36, 0.95) 100%);
  box-shadow:
    0 0 16px rgba(140, 46, 255, 0.40),
    0 8px 20px rgba(0, 0, 0, 0.60);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  backdrop-filter: blur(8px);
}

.vn-nft-card:nth-child(1) {
  transform: rotate(-6deg) translateY(6px);
  animation: vnCardBob1 4s ease-in-out infinite alternate;
}
.vn-nft-card:nth-child(2) {
  transform: scale(1.08);
  z-index: 2;
  animation: vnCardBob2 3.5s ease-in-out infinite alternate;
  width: 68px;
  height: 90px;
}
.vn-nft-card:nth-child(3) {
  transform: rotate(6deg) translateY(6px);
  animation: vnCardBob1 5s ease-in-out infinite alternate-reverse;
}

@keyframes vnCardBob1 {
  0%   { transform: rotate(-6deg) translateY(6px); }
  100% { transform: rotate(-6deg) translateY(-4px); }
}
@keyframes vnCardBob2 {
  0%   { transform: scale(1.08) translateY(0px); }
  100% { transform: scale(1.08) translateY(-8px); }
}

/* Splash Loading Bar */
.vn-splash-loader {
  width: 220px;
  margin-bottom: 2.5rem;
}

.vn-loader-track {
  width: 100%;
  height: 6px;
  background: rgba(22, 11, 53, 0.65);
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid rgba(176, 38, 255, 0.20);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.vn-loader-fill {
  height: 100%;
  background: linear-gradient(90deg, #6D28FF, #B026FF, #00D4FF);
  border-radius: 100px;
  box-shadow: 0 0 10px rgba(176, 38, 255, 0.70), 0 0 20px rgba(0, 212, 255, 0.40);
  animation: vnLoadBar 2.4s ease-in-out forwards;
  width: 0%;
}

@keyframes vnLoadBar {
  0%   { width: 0%; }
  30%  { width: 35%; }
  65%  { width: 72%; }
  90%  { width: 92%; }
  100% { width: 100%; }
}

.vn-loader-text {
  color: var(--vn-text-dim);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: 0.6rem;
  text-transform: uppercase;
}

/* Splash CTA Buttons */
.vn-splash-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 280px;
}

.vn-splash-get-started {
  width: 100%;
  height: 50px;
  background: var(--vn-gradient) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border: none !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 0 24px rgba(140, 46, 255, 0.60), 0 4px 16px rgba(0,0,0,0.5) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}
.vn-splash-get-started:hover {
  background: var(--vn-gradient-hover) !important;
  box-shadow: 0 0 36px rgba(176, 38, 255, 0.80), 0 6px 22px rgba(0,0,0,0.6) !important;
  transform: translateY(-2px);
  color: #fff !important;
}

.vn-splash-sign-in {
  width: 100%;
  height: 46px;
  background: transparent !important;
  color: var(--vn-text-muted) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  border: 1.5px solid rgba(176, 38, 255, 0.28) !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  backdrop-filter: blur(8px);
}
.vn-splash-sign-in:hover {
  border-color: rgba(176, 38, 255, 0.55) !important;
  color: var(--vn-text-white) !important;
  background: rgba(22, 11, 53, 0.50) !important;
}

/* Platform tagline below logo */
.vn-splash-subtext {
  color: var(--vn-text-dim);
  font-size: 0.84rem;
  margin-bottom: 2rem;
}

/* ==================================================
   16. DESKTOP CARD TILT
   ================================================== */
/* Applied via JS on .vn-card / .galaxy-card */

/* ==================================================
   17. RESPONSIVE BREAKPOINTS
   ================================================== */

/* Large tablets / small desktops */
@media (max-width: 1200px) {
  .vn-nebula-top-right  { width: 450px; height: 450px; }
  .vn-nebula-top-left   { width: 380px; height: 380px; }
}

/* Tablets */
@media (max-width: 991.98px) {
  .vn-crystal-1,
  .vn-crystal-2,
  .vn-crystal-3,
  .vn-crystal-6 { opacity: 0.5 !important; }
}

/* Mobile landscape + small tablet */
@media (max-width: 767.98px) {
  .vn-content-container { padding: 1.5rem 1rem; }

  .authentication-wrapper.authentication-basic {
    min-height: calc(100vh - 3rem);
  }

  .authentication-wrapper.authentication-basic .authentication-inner,
  .authentication-wrapper.authentication-basic .authentication-inner.inner-wide {
    max-width: 100% !important;
  }

  .vn-card .card-body,
  .galaxy-card .card-body {
    padding: 1.9rem 1.5rem !important;
  }

  .vn-logo-badge,
  .galaxy-logo-badge {
    width: 80px;
    height: 80px;
  }

  .vn-title,
  .galaxy-title {
    font-size: 1.3rem !important;
  }

  .vn-nebula-top-right,
  .vn-nebula-top-left,
  .vn-nebula-bottom {
    display: none;
  }

  .vn-crystal-1,
  .vn-crystal-2,
  .vn-crystal-4,
  .vn-crystal-5 {
    display: none;
  }

  .vn-splash-logo-badge {
    width: 130px;
    height: 130px;
    border-radius: 26px;
  }

  .vn-splash-brand-name { font-size: 1.9rem; }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .vn-content-container { padding: 1rem 0.65rem; }

  .vn-card .card-body,
  .galaxy-card .card-body {
    padding: 1.6rem 1.2rem !important;
  }

  .vn-logo-badge,
  .galaxy-logo-badge {
    width: 72px;
    height: 72px;
  }

  .vn-title,
  .galaxy-title {
    font-size: 1.2rem !important;
  }

  .vn-input-group,
  .galaxy-input-group,
  .galaxy-card .input-group-merge,
  .btn.vn-btn-primary,
  .btn.galaxy-btn-primary {
    height: 46px !important;
  }

  .galaxy-card .form-control.galaxy-input {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
  }

  .vn-otp-input {
    width: 40px !important;
    height: 50px !important;
    font-size: 1.3rem !important;
  }

  .vn-otp-container { gap: 0.4rem; }

  .vn-splash-stage { width: 220px; height: 130px; }
  .vn-splash-cta { max-width: 100%; }
}

/* Extra small — 320px guarantee */
@media (max-width: 360px) {
  .vn-otp-input {
    width: 36px !important;
    height: 46px !important;
    font-size: 1.2rem !important;
  }
  .vn-otp-container { gap: 0.3rem; }
}

/* Accessibility — Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .vn-bg-backdrop,
  .vn-nebula-cloud,
  .vn-crystal,
  .vn-card,
  .vn-logo-badge,
  .galaxy-card,
  .galaxy-logo-badge,
  .vn-splash-logo-badge,
  .vn-splash-orbital,
  .vn-nft-card,
  .vn-loader-fill,
  .vn-otp-input {
    animation: none !important;
    transition: none !important;
  }
}


/* =====================================================
   VIOLET NFT — Supplemental Components (Phase 1 additions)
   ===================================================== */

/* OTP Email Hint */
.vn-otp-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(109, 40, 255, 0.08);
  border: 1px solid rgba(109, 40, 255, 0.2);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  margin-bottom: 1.25rem;
  color: var(--vn-text-secondary, #a78bda);
  font-size: 0.875rem;
}
.vn-otp-hint i {
  font-size: 1.1rem;
  color: var(--vn-accent, #00D4FF);
  flex-shrink: 0;
}

/* OTP Countdown Wrapper */
.vn-countdown-wrap {
  margin-bottom: 0.75rem;
}
.vn-countdown {
  font-size: 0.875rem;
  color: var(--vn-text-secondary, #a78bda);
}
.vn-countdown .vn-time {
  font-weight: 700;
  background: linear-gradient(90deg, #6D28FF, #00D4FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Info / Warning Banner */
.vn-info-banner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
  color: rgba(0, 212, 255, 0.85);
  margin-bottom: 1rem;
}
.vn-info-banner i {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Resend OTP button (link-style inside form) */
#btnResendOtp {
  color: var(--vn-primary, #6D28FF) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
#btnResendOtp:hover {
  color: var(--vn-secondary, #B026FF) !important;
}

/* Uppercase input (user_code forgot password field) */
input[style*="text-transform: uppercase"],
input.vn-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =====================================================
   VIOLET NFT — OTP & Email Verified Components
   ===================================================== */
.vn-verify-badge-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.85rem auto 1rem;
}

.vn-verify-badge-glow {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(109, 40, 255, 0.15) 60%, transparent 80%);
  border: 2px solid rgba(16, 185, 129, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 0 30px rgba(16, 185, 129, 0.45),
    0 0 50px rgba(109, 40, 255, 0.25),
    inset 0 0 15px rgba(16, 185, 129, 0.25);
  animation: vnVerifyPulse 3s infinite ease-in-out;
}

.vn-verify-badge-glow i {
  font-size: 2.5rem;
  color: #10B981;
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.85);
}

@keyframes vnVerifyPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4), inset 0 0 12px rgba(16, 185, 129, 0.2);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.65), 0 0 60px rgba(109, 40, 255, 0.35), inset 0 0 20px rgba(16, 185, 129, 0.35);
  }
}

.vn-verify-info-box {
  background: rgba(109, 40, 255, 0.08);
  border: 1px solid rgba(109, 40, 255, 0.25);
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.1rem;
}
