/* security.css */

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111116;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f5f5f5;
  }
  
  .security-container {
    background-color: #1c1c24;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    max-width: 360px;
    width: 100%;
    text-align: center;
  }
  
  .security-container h1 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #f5f5f5;
  }
  
  .security-container input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #2b2b33;
    color: #f5f5f5;
  }
  
  .security-container button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: #3292b8;
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .security-container button:hover {
    background-color: #277a98;
  }
  
  .security-container .error-message {
    color: #ff4c4c;
    margin-top: 1rem;
    display: none;
  }

  #error-message.show {
    display: block;
    color: #ff4c4c;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(-45deg, #1f1f2e, #2c2c45, #1c344a, #472c49);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
  }
  
  @keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  .security-container {
    background: rgba(28, 28, 36, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  }

  .security-container button:hover {
    background-color: #29b8e3;
    box-shadow: 0 0 10px #29b8e3, 0 0 20px #29b8e3;
    transform: scale(1.05);
  }

  #vanta-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
  }

  .fade-out {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
  }
  
  .loader {
    border: 4px solid #333;
    border-top: 4px solid #29b8e3;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .loader.show {
    display: block;
    opacity: 1;
  }
  
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .loading-sequence {
    width: 100%;
    max-width: 400px;
    min-width:250px;
    margin: 2rem auto;
    padding: 1.5rem;
    text-align: center;
    border-radius: 16px;
    background: rgba(28, 28, 36, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .loading-sequence.show {
    opacity: 1;
    display: block;
  }
  
  .loading-sequence p {
    color: #f5f5f5;
    font-size: 1rem;
    margin-top: 1rem;
    min-height: 24px;
  }
  
  .progress-bar {
    width: 100%;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
  }
  
  .progress-fill {
    width: 0%;
    height: 100%;
    background-color: #29b8e3;
    transition: width 0.3s ease;
  }
  
  .fade-in {
    opacity: 0;
    animation: fadeIn 0.7s ease forwards;
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }

  body.fade-out-page {
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  .hidden {
    display: none;
  }
  
  #settings-container {
    background: rgba(28, 28, 36, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    padding: 2.5rem 2rem;
    max-width: 360px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 1;
    margin: auto;
    margin-top: 2rem;
  }
  
  #settings-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #f5f5f5;
  }
  
  #settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  #settings-form label {
    color: #ccc;
    font-size: 0.9rem;
    text-align: left;
  }
  
  #settings-form select {
    padding: 0.6rem;
    border-radius: 8px;
    border: none;
    background-color: #2b2b33;
    color: #f5f5f5;
    font-size: 1rem;
  }
  
  #settings-form button {
    margin-top: 1rem;
    padding: 0.75rem;
    font-size: 1rem;
    background-color: #29b8e3;
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  #settings-form button:hover {
    background-color: #1da7d3;
    transform: scale(1.05);
  }
  