* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.calculator-container {
    background: rgba(116, 226, 82, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(236, 96, 96, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease;
}

.calculator-container:hover {
    transform: translateY(-5px);
}

.input-group {
    margin: 1.5rem 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ff0606;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #4ecdc4;
}

button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #4ecdc4, #45b7af);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

button:hover {
    transform: scale(1.02);
}

.result-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 10px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
function signUp() {
    const email = document.getElementById('signup-email').value;
    const password = document.getElementById('signup-password').value;
  
    auth.createUserWithEmailAndPassword(email, password)
      .then((userCredential) => {
        // Send email verification
        userCredential.user.sendEmailVerification();
        alert('Sign up successful! Please check your email for verification.');
      })
      .catch((error) => {
        document.getElementById('signup-error').textContent = error.message;
      });
  }
  #signup-section, #login-section, #reset-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  button {
    background: #4ecdc4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
  }
  
  button:hover {
    background: #e7e973;
  }
  /* BMI Section */
.bmi-section {
    margin-top: 40px;
    padding: 30px;
    background: #78f373;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(3, 2, 2, 0.1);
  }
  
  .bmi-section h1 {
    margin-bottom: 15px;
    color: #f80e0e;
  }
  
  .bmi-result {
    margin-top: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
  }
  
  .bmi-result p {
    margin: 5px 0;
    color: #555;
  }
/* Equalize box sizes for auth forms */
.auth-forms .form-box {
    width: 100% !important; /* Full width of parent */
    max-width: 300px !important; /* Set a fixed maximum width */
    padding: 20px !important; /* Consistent padding */
    background: #fff !important; /* White background */
    border-radius: 10px !important; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important; /* Consistent shadow */
    margin-bottom: 20px !important; /* Space between boxes */
  }
  
  /* Ensure input fields and buttons are consistent */
  .auth-forms .form-box input,
  .auth-forms .form-box button {
    width: 100% !important; /* Full width of container */
    padding: 10px !important; /* Consistent padding */
    margin-bottom: 10px !important; /* Space between elements */
    border: 1px solid #ddd !important; /* Consistent border */
    border-radius: 5px !important; /* Rounded corners */
  }
  
  .auth-forms .form-box button {
    background: #4ecdc4 !important; /* Consistent button color */
    color: white !important; /* White text */
    border: none !important; /* No border */
    cursor: pointer !important; /* Pointer cursor */
  }
  
  .auth-forms .form-box button:hover {
    background: #45b7af !important; /* Hover effect */
  }
  /* Ensure the auth container stays in the top-right corner */
.auth-container {
    position: fixed;
    top: 20px;
    right: 20px;
  }
