/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
  }
  
  .container {
    width: 100%;
    max-width: 500px;
    background: #fff;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden; /* Ensure the form doesn't overflow outside the container */
  }
  
  /* Close Button */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4d4d;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .close-btn:hover {
    background: #d11a1a;
  }
  
  /* Toggle Buttons */
  .toggle {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  
  .toggle button {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: transparent;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, border-bottom 0.3s ease;
  }
  
  .toggle button.active {
    color: #2196f3;
    border-bottom: 2px solid #2196f3;
  }
  
  /* Forms Wrapper */
  .forms-wrapper {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
  }
  
  /* Form Styling */
  .form {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .form.active-form {
    opacity: 1;
    transform: scale(1);
  }
  
  /* Register Form Slide Animation */
  .form-container .forms-wrapper.show-register {
    transform: translateX(-50%);
  }
  
  /* Form Inputs */
  input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
  }
  
  input[type="password"] {
    letter-spacing: 1px;
  }
  
  /* Button Styling */
  button {
    padding: 10px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
  }
  
  button:hover {
    background-color: #45a049;
  }
  
  /* Error Message */
  .error {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  /* Responsive Design */
  @media (max-width: 600px) {
    .container {
      width: 90%;
      padding: 20px;
    }
  
    .toggle button {
      font-size: 14px;
    }
  
    input,
    button {
      font-size: 14px;
      padding: 8px;
    }
  }
  

 
