  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;

  }

  section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: url('bg.jpg') no-repeat;
    background-size: cover;
    background-position: center;
    animation: animateBg 5s linear infinite;
  }

  @keyframes animateBg {
    100% {
      filter: hue-rotate(360deg);
    }
  }


  .login-box {
    position: relative;
    width: 90%;
    max-width: 400px;
    min-height: 450px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
    padding: 20px;
  }

  h2 {
    font-size: 2em;
    color: white;
    text-align: center;
  }


  .input-box {
    position: relative;
    width: 100%;
    max-width: 310px;
    margin: 30px auto;
    border-bottom: 2px solid #fff
  }

  .input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: #fff;
    pointer-events: none;
    transition: .5s;

  }

  .input-box input:focus~label,
  .input-box input:valid~label {
    top: -5px;

  }

  .input-box input {
    width: 100%;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #fff;
    padding: 0 35px 0 5px;
  }

  .input-box .icon {
    position: absolute;
    right: 8px;
    color: #fff;
    font-size: 1.2em;
    line-height: 57px;
  }

  .input-box .toggle-password {
    position: absolute;
    right: 35px;
    color: #fff;
    font-size: 1.2em;
    line-height: 57px;
    cursor: pointer;
    transition: opacity 0.3s;
  }

  .input-box .toggle-password:hover {
    opacity: 0.7;
  }

  .remember-forget {
    margin: -15px 0 15px;
    font-size: .9em;
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
  }

  .remember-forget label input {
    margin-right: 3px;

  }

  .remember-forget a {
    color: #fff;
    text-decoration: none;
  }

  .remember-forget a:hover {
    text-decoration: underline;

  }

  button {
    width: 100%;
    height: 40px;
    background: #fff;
    border: none;
    outline: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1em;
    color: #000;
    font-weight: 500;
  }

  .register-link {
    font-size: .9em;
    color: #fff;
    text-align: center;
    margin: 25px 0 10px;
  }

  .register-link p a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
  }

  .register-link p a:hover {
    text-decoration: underline;
  }

  /* Hint link */
  .hint-link {
    text-align: center;
    margin-top: 12px;
    font-size: .85em;
  }

  .hint-link a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
  }

  .hint-link a:hover {
    color: #fff;
    text-decoration: underline;
  }

  /* Credentials Popup */
  .credentials-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
  }

  .credentials-popup.active {
    display: flex;
  }

  .credentials-popup-content {
    background: rgba(30, 30, 60, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px 35px;
    text-align: center;
    color: #fff;
    max-width: 350px;
    width: 90%;
    animation: fadeIn 0.3s ease;
  }

  .credentials-popup-content h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
  }

  .credentials-popup-content p {
    font-size: 1em;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    word-break: break-all;
  }

  .riddle-label {
    margin-top: 12px;
    word-break: normal;
  }

  .riddle-text {
    font-style: italic;
    line-height: 1.5;
    word-break: normal;
    color: rgba(255, 255, 255, 0.85);
  }

  .riddle-hint {
    margin-top: 10px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
    word-break: normal;
  }

  .credentials-popup-content p strong {
    color: #fff;
  }

  .credentials-close {
    margin-top: 20px;
    width: 120px;
    height: 38px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.95em;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .credentials-close:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
  }

  /* Error message styling */
  .error-message {
    display: none;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.5);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    margin-top: 10px;
    text-align: center;
    font-size: 0.9em;
  }

  /* Welcome page styling */
  #confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
  }

  .welcome-box {
    position: relative;
    width: 90%;
    max-width: 500px;
    min-height: 400px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
    padding: 40px 20px;
    z-index: 5;
  }

  .welcome-content {
    text-align: center;
    color: #fff;
  }

  .welcome-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #fff;
    animation: scaleIn 0.6s ease-out;
  }

  .trophy-icon {
    font-size: 4em;
    margin-bottom: 10px;
    animation: bounceIn 0.8s ease-out;
  }

  .welcome-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 25px 0;
    animation: fadeIn 2.2s ease-in;
  }

  .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .stat-number {
    font-size: 2em;
    font-weight: 700;
    color: #feca57;
  }

  .stat-label {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .welcome-message {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeIn 1.5s ease-in;
  }

  .welcome-subtitle {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeIn 2s ease-in;
  }

  .logout-btn {
    width: 200px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    outline: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1em;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeIn 2.5s ease-in;
  }

  .logout-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes scaleIn {
    from {
      opacity: 0;
      transform: scale(0.5);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes bounceIn {
    0% {
      opacity: 0;
      transform: scale(0.3);
    }
    50% {
      transform: scale(1.15);
    }
    70% {
      transform: scale(0.9);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }

  @media (max-width: 480px) {
    .login-box {
      width: 95%;
      min-height: auto;
      padding: 30px 15px;
    }

    h2 {
      font-size: 1.5em;
    }

    .input-box {
      max-width: 100%;
    }

    .welcome-box {
      width: 95%;
      padding: 30px 15px;
    }

    .welcome-title {
      font-size: 2em;
    }

    .welcome-message {
      font-size: 1.1em;
    }

    .welcome-subtitle {
      font-size: 1em;
    }

    .remember-forget {
      font-size: 0.8em;
    }
  }

  @media (max-width: 360px) {
    .login-box {
      width: 100%;
      border: none;
      border-radius: 0;
    }

    .welcome-box {
      width: 100%;
      border: none;
      border-radius: 0;
    }

    .welcome-title {
      font-size: 1.75em;
    }
  }