@font-face {
font-family: 'Philo';
src: url('../fonts/Philosopher-Regular.ttf') format('truetype');
}

@font-face {
font-family: 'Mont';
src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
}

@font-face {
font-family: 'DolceVita';
src: url('../fonts/Dolce_Vita_Heavy_Bold.ttf') format('truetype');
}

@font-face {
font-family: 'Museo';
src: url('../fonts/Museo300-Regular.otf') format('opentype');
}
  * {
    box-sizing: border-box;
  }
  body, html {
    height: 100%;
    margin: 0;
    background: #000;
    font-family: 'Mont';
    color: #e0e6f3;
    overflow: hidden;
  }

  /* Neural lines background - Subtle Glitzy Silver */
  #neural-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: black;
  }
  svg {
    width: 100%;
    height: 100%;
  }
  .line {
    stroke: #c0c0c07d;
    stroke-width: 1;
    opacity: 0.12;
    filter: drop-shadow(0 0 1.5px silver);
    animation: subtleGlitter 6s ease-in-out infinite alternate;
    transform-origin: center;
    transform-box: fill-box;
  }
  .line:nth-child(even) {
    animation-delay: 3s;
  }
  @keyframes subtleGlitter {
    0%, 100% {
      opacity: 0.12;
      stroke-width: 1;
      filter: drop-shadow(0 0 1.5px silver);
      transform: scale(1);
    }
    50% {
      opacity: 0.38;
      stroke-width: 1.6;
      filter: drop-shadow(0 0 4px #ccc);
      transform: scale(1.015);
    }
  }

  /* Loading screen */
  #loading-screen {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: #aaa;
    user-select: none;
  }
  #loading-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-align: center;
    color: silver;
    font-family: 'Philo';
  }
  #progress-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    height: 10px;
    box-shadow: 0 0 8px silver;
    width: 60vw;
    max-width: 400px;
  }
  #progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c0c0c0, #f0f0f0);
    border-radius: 20px;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px silver;
  }

  /* Login container */
  #login-container {
    display: none;
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  /* Glass morphism login box */
  #login-box {
    background: white;
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px 30px 35px 30px;
    color: white;
    position: relative;
    overflow: hidden;
    user-select: none;
    border-radius: 24px;
    max-width: 400px;
    width: 100%;
    border-bottom: 1px solid white;
    border-top: 1px solid white;
    box-shadow: 0 2px 15px 2px #00000085;
    transform: scaleY(0.5);
    opacity: 0;
    transition: transform 0.8s ease, opacity 2s ease, background 0.8s ease;
    transform-origin: top;
  }
  #login-box.show {
    background: black;
    transform: scaleY(1);
    opacity: 1;
  }
  @keyframes gradientFlow {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  #login-box::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 0%, rgb(255 255 255 / 18%) 25%, transparent 50%);
    animation: shine 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    filter: blur(88px);
    transform: rotate(25deg);
  }
  @keyframes shine {
    0% {
      transform: translateX(-100%) rotate(25deg);
    }
    100% {
      transform: translateX(100%) rotate(25deg);
    }
  }


  #login-box * {
    position: relative;
    z-index: 1;
  }

  #login-box h2{
    color: white;
    font-family: 'Philo';
    font-size: 3.5em;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight:bold;
    margin-bottom: 0px !important;
  }
  #login-box h3{
    color: #d3d3d3;
    font-family: 'Mont';
    text-transform: uppercase;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
  }

  /* Elegant Form fields without labels */
  .form-control {
    background: rgba(255 255 255 / 0.08);
    border: 1.5px solid rgba(192, 192, 192, 0.4);
    border-radius: 50px;
    color: #e0e6f3;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    box-shadow: inset 0 0 10px rgba(192, 192, 192, 0.2);
    transition:
      background 0.3s ease,
      border-color 0.4s ease,
      box-shadow 0.4s ease;
    font-size: 1rem;
  }
  .form-control::placeholder {
    color: #b0b0b0;
    opacity: 1;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.8px;
  }
  .form-control:focus {
    background: rgba(224, 224, 224, 0.15);
    border-color: #c0c0c0;
    box-shadow: 0 0 14px 3px #c0c0c0bb;
    outline: none;
    color: #fff;
  }

  /* Password toggle */
  .input-group-text {
    background: rgba(255 255 255 / 0.1);
    border: none;
    cursor: pointer;
    color: silver;
    border-radius: 0 50px 50px 0;
    padding: 0 14px;
    transition: color 0.3s ease;
    font-size: 1.25rem;
  }
  .input-group-text:hover {
    color: #e0e0e0;
  }
  .input-group-text i {
    line-height: 1;
  }

  /* Elegant submit button */
  #login-btn {
    background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
    border: none;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 14px 0;
    border-radius: 50px;
    width: 100%;
    color: black;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(224, 224, 224, 0.8), inset 0 -2px 12px rgba(255, 255, 255, 0.6);
    cursor: pointer;
    user-select: none;
    transition: box-shadow 0.3s ease, transform 0.15s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 6px #fff;
    border: 1px solid #727272;
    border-bottom: 3px solid #666565b3;
  }
  #login-btn:hover {
    box-shadow:
      0 6px 30px rgba(224, 224, 224, 1),
      inset 0 -2px 15px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    color: #111;
  }
  #login-btn:active {
    transform: translateY(1px);
    box-shadow:
      0 2px 10px rgba(192, 192, 192, 0.7),
      inset 0 -1px 6px rgba(255, 255, 255, 0.4);
  }
  span#togglePass {
      border: 1.5px solid rgba(192, 192, 192, 0.4);
  }
  .logtxt{
    margin-top: 20px;
    color: silver;
    padding-bottom: 10px;
    font-size: 0.6em;
    font-family: 'Philo';
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
  }

  /* Shake animation for invalid input */
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
  }
  .shake {
    animation: shake 0.4s;
  }

  /* Responsive */
  @media (max-width: 480px) {
    #login-box {
      padding: 35px 20px 30px 20px;
      max-width: 320px;
    }
    #loading-text {
      font-size: 1.6rem;
    }
    #progress-container {
      width: 70%;
      height: 8px;
    }
  }
