img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}
 /* Futuristic Blue Color Scheme Variables */
        :root {
            --primary-blue: #0052ff;
             --logo-text: #0077ffff;
            --electric-blue: #00d4ff;
            --electric-orange: #ff7300ff;
            --cyan-glow: #00ffff;
            --dark-navy: #0a0f1c;
            --deep-blue: #1a2332;
            --steel-blue: #2d3e57;
            --ice-blue: #e3f2fd;
            --neon-blue: #4fc3f7;
            --gradient-primary: linear-gradient(135deg, #0052ff 0%, #00d4ff 100%);
            --gradient-secondary: linear-gradient(145deg, #1a2332 0%, #2d3e57 100%);
            --glass-blue: rgba(0, 82, 255, 0.1);
            --glow-effect: 0 0 20px rgba(0, 212, 255, 0.3);
            --transition: all 0.4s cubic-bezier(0.16, 0.84, 0.44, 1);
        }



/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.error-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.81); /* deep navy */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.error-modal.active {
  opacity: 1;
  visibility: visible;
}

.error-modal.active .error-content {
  animation: slideIn 0.4s ease;
}

.error-content {
  background: #1e293b; /* dark slate */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px #3b82f6; /* vivid blue */
  text-align: center;
  max-width: 400px;
  width: 90%;
}

@keyframes slideIn {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.error-content h2 {
  font-size: 1.5rem;
  color: #60a5fa; /* lighter blue */
  margin-bottom: 20px;
  font-weight: bold;
}

.error-content p {
  font-size: 1.3rem;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.modal-logo {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
}

.error-content button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #2563eb; /* bright blue */
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.error-content button:hover {
  background-color: #3b82f6;
  box-shadow: 0 8px 40px #38bdf8;
}

.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
  transition: opacity 1.5s ease;
  will-change: opacity;
}

/* Background Video */
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill; /* You may change to 'cover' if you want to preserve aspect ratio */
  z-index: -3;
  backface-visibility: hidden;
  transform: translateZ(0); /* Optimized for GPU rendering */
  transition: opacity 1.5s ease;
  will-change: opacity;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 
  z-index: -1;
  pointer-events: none;
  transition: background-color 1.5s ease;
  will-change: background-color;
}


/* Optional fade class when form appears */
.video-container.fade video {
  opacity: 0.1; /* Faded video */
}

.video-container.fade .video-overlay {
  background-color: rgba(0, 0, 0, 0.829); /* Darker overlay fade */
}


.logo-container {

  display: flex;
  align-items: center;
  position: fixed;
  top: 15%;
  left: 32%;
  z-index: 100;
  padding-bottom: 0.5rem;
}

.logo {
  height: 50px;
  width: auto;
  margin-right: -5.5rem;
  z-index: 100;
}

.logo-text {
  font-size: 1.1rem;
color: rgb(236, 236, 236);
  font-style: italic;
  font-weight: bold;
  font-family: 'Arial Black', Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 1.9rem;
  margin-left: 4.1rem;

   
}
.form-container {
    display: flex;
    flex-direction: row;
    width: 360px;
    min-height: 460px;
    padding: 9rem 2rem 3rem;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    background: rgb(0, 8, 24); /* Transparent dark */
    
   border-radius: 20px;
    
    /* Fade-in properties */
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.25s ease, all 0.6s ease-in-out;
    overflow: hidden;
    z-index: 10;
    
    /* Add the animated glow directly to the container */
   
}

/* Add a visible class for fade-in effect */
.form-container.visible {
    opacity: 1;
    visibility: visible;
}

/* Add static inset shadows via pseudo-element */
.form-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 22px;
    box-shadow:
        inset 0 4px 12px rgb(119, 119, 119), /* Top inset */
        inset 0 8px 12px rgb(119, 119, 119);
    pointer-events: none;
    z-index: 1;
}

/* Futuristic Glow Animation - now includes both outer glow and inset shadows */
@keyframes neon-glow {
    0%, 100% {
        box-shadow:
            0 0 20px rgb(179, 179, 179),
            0 0 12px rgba(0, 247, 255, 0.2);
    }
    50% {
        box-shadow:
            0 0 5px rgba(230, 230, 230, 0.568),
            0 0 1px rgba(133, 133, 133, 0.925);
            
    }
}


input[type="text"],
input[type="password"],
input[type="number"],
button {
  width: 100%;
  padding: 0.75rem;
  margin-top: 1.5rem;
  border-radius: 10px;
  border: 2px;
  border-color: #1e88e5;
  font-size: 1rem;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.5);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0px #3490ff;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

input::placeholder {
  color: #93c5fd;
}

button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(59, 130, 246, 0.5),
    rgba(59, 130, 246, 0.8),
    rgba(59, 130, 246, 0.5)
  );
  transform: skewX(-20deg);
  opacity: 0;
  transition: all 1s ease;
}

button:hover::before {
  left: 150%;
  opacity: 1;
}

button:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0px #60a5fa, 0 0 30px #60a5fa;
}

button[type="submit"],
.complete-button {
  background: transparent;
  color: white;
  border: 2px solid #1e88e5;
            box-shadow: 0 0px 0px rgba(0, 110, 255, 0.93);
}

button[type="submit"]:hover,
.complete-button:hover {
  color: #38bdf8;;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3);
}

.back-button,
.signup-button {
  background: transparent;
  color: white;
  border: 2px solid #60a5fa66;
  box-shadow: 0 0px 0px #60a5fa99;
}

.back-button:hover,
.signup-button:hover {
  color: #38bdf8;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.2);
}

button:active::after {
  content: '';
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.8s linear;
  opacity: 0;
}

@keyframes ripple {
  to {
    transform: scale(20);
    opacity: 0;
  }
}

input#username,
input#password {
  background-color: #1e293b;
  color: #fff;
  border: 1px solid #334155;
  padding: 10px;
  border-radius: 10px;
}

.video-container.fade video {
  opacity: 0.1;
}
.video-container.fade .video-overlay {
  background-color: rgba(0, 0, 0, 0.829);
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Tablets and smaller desktops */
@media screen and (max-width: 1024px) {
  .logo-container {
    left: 20%;
    top: 5%;
  }
  
  .logo {
    height: 90px;
  }
  
  .logo-text {
    font-size: 0.65rem;
  }
}

/* Large mobile devices */
@media screen and (max-width: 768px) {
  .logo-container {
    left: 15%;
    top: 4%;
  }
  
  .logo {
    height: 80px;
    margin-right: -4.5rem;
  }
  
  .logo-text {
    font-size: 0.6rem;
    margin-left: 3rem;
  }
  
  .form-container {
    width: 340px;
    min-height: 440px;
    padding: 8rem 2rem 2.5rem;
  }
}

/* Mobile phones */
@media screen and (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .logo-container {
    position: fixed;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  
  .logo {
    height: 70px;
    margin-right: -3.5rem;
  }
  
  .logo-text {
    font-size: 0.55rem;
    margin-left: 2.5rem;
    margin-top: 1rem;
  }
  
  .form-container {
    width: 90% !important;
    max-width: 320px !important;
    min-height: 420px !important;
    padding: 7rem 1.5rem 2rem !important;
    border-radius: 20px;
  }
  
  input[type="text"],
  input[type="password"],
  input[type="number"],
  button {
    padding: 0.65rem;
    margin-top: 1.2rem;
    font-size: 0.9rem;
  }
  
  .error-content {
    width: 90%;
    max-width: 300px;
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .error-content h2 {
    font-size: 1.3rem;
  }
  
  .error-content p {
    font-size: 1rem;
  }
  
  .modal-logo {
    width: 200px;
  }
}

/* Small phones (Honor 90 Lite, etc.) */
@media screen and (max-width: 360px) {
  .logo {
    height: 60px;
    margin-right: -3rem;
  }
  
  .logo-text {
    font-size: 0.5rem;
    margin-left: 2.2rem;
    margin-top: 0.8rem;
  }
  
  .form-container {
    width: 92% !important;
    max-width: 280px !important;
    min-height: 400px !important;
    padding: 6rem 1rem 1.5rem !important;
  }
  
  input[type="text"],
  input[type="password"],
  input[type="number"],
  button {
    padding: 0.6rem;
    margin-top: 1rem;
    font-size: 0.85rem;
  }
  
  .modal-logo {
    width: 180px;
  }
}

/* Very small phones */
@media screen and (max-width: 320px) {
  .form-container {
    width: 95% !important;
    max-width: 260px !important;
    min-height: 380px !important;
    padding: 5.5rem 0.8rem 1.2rem !important;
  }
  
  .logo {
    height: 55px;
    margin-right: -2.5rem;
  }
  
  .logo-text {
    font-size: 0.45rem;
    margin-left: 2rem;
  }
}

/* Landscape orientation */
@media screen and (max-height: 600px) and (orientation: landscape) {
  .logo-container {
    top: 2%;
  }
  
  .logo {
    height: 50px;
  }
  
  .form-container {
    min-height: 350px !important;
    padding: 5rem 1.5rem 1rem !important;
    margin: 1rem auto;
  }
  
  input[type="text"],
  input[type="password"],
  input[type="number"],
  button {
    margin-top: 0.8rem;
    padding: 0.5rem;
  }
}

/* Tall phones optimization */
@media screen and (max-width: 480px) and (min-height: 800px) {
  .form-container {
    min-height: 450px !important;
    padding: 8rem 1.5rem 2rem !important;
  }
  
  .logo-container {
    top: 5%;
  }
}

/* High DPI screens */
@media screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 480px) {
  .form-container {
    border-width: 1.5px;
  }
  
  input[type="text"],
  input[type="password"],
  input[type="number"],
  button {
    border-width: 1.5px;
  }
}

/* Safe area insets for notch phones */
@supports(padding: max(0px)) {
  @media screen and (max-width: 480px) {
    .form-container {
      padding-left: max(1rem, env(safe-area-inset-left)) !important;
      padding-right: max(1rem, env(safe-area-inset-right)) !important;
      padding-top: max(6rem, env(safe-area-inset-top)) !important;
      padding-bottom: max(1.5rem, env(safe-area-inset-bottom)) !important;
    }
    
    .logo-container {
      top: max(3%, env(safe-area-inset-top));
    }
  }
}

/* Chrome mobile optimizations */
@media screen and (max-width: 480px) {
  input[type="text"],
  input[type="password"],
  input[type="number"] {
  
    border-radius: 8px;
  }
  
  button {
    -webkit-tap-highlight-color: transparent;
  }
}