/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }
  
  form {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
  }
  
  form h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #1f2937;
    text-align: center;
  }
  
  form p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #6b7280;
    text-align: center;
  }
  
  .input-container {
    position: relative;
    margin-bottom: 20px;
  }
  
  .input-container input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }
  
  .input-container input:focus {
    outline: none;
    border-color: #6366f1;
  }
  
  .toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 1rem;
  }
  
  :root {
    --primary-color: #4f46e5;
    --primary-hover: #3730a3;
  }
  
  #reset-button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
  }
  
  #reset-button:hover {
    background-color: var(--primary-hover);
  }
  
  /* Loading state */
  #reset-button.loading {
    pointer-events: none;
    background-color: #a5b4fc;
    position: relative;
  }
  
  #reset-button.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
    transform: translate(-50%, -50%);
  }
  
  @keyframes spinner {
    to {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }
  
  .message {
    margin-top: 15px;
    color: green;
    font-size: 0.9rem;
    text-align: center;
  }
  
  #send-otp-btn, #verify-otp-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    background-color: #10b981;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
  }

  #send-otp-btn:hover, #verify-otp-btn:hover {
    background-color: #059669;
  }

  .error {
    margin-top: 10px;
    color: red;
    font-size: 0.9rem;
    text-align: center;
  }
  
  a {
    display: block;
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #4f46e5;
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
