/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #f4f7fb;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Container */
.app-container {
  width: 100%;
  max-width: 420px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.header h2 {
  font-size: 2rem;
  color: #2d2d2d;
}

.header p {
  font-size: 0.95rem;
  color: #666;
}

/* Card */
.card {
  background-color: #f9f9f9;
  border-radius: 16px;
  padding: 1rem;
}

/* Toggle Buttons */
.form-toggle {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  background-color: #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
}

.form-toggle button {
  flex: 1;
  padding: 0.75rem;
  border: none;
  background: none;
  color: #444;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-toggle button.active {
  background-color: #00c992;
  color: #fff;
}

/* Form Styles */
form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: #333;
}

form input {
  width: 100%;
  padding: 0.65rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  color: #333;
  font-size: 0.95rem;
}

/* Password field */
.password-field {
  position: relative;
}

.password-field input {
  padding-right: 2.5rem;
}

.toggle-eye {
  position: absolute;
  right: 10px;
  top: 35%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.1rem;
  color: #888;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 0.8rem;
  background-color: #00c992;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background-color: #0056d2;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #444;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

.toast.success {
  background-color: #28a745;
}

.toast.error {
  background-color: #dc3545;
}

/* Responsive Enhancements */
@media (max-width: 480px) {
  .app-container {
    padding: 1.5rem 1rem;
  }

  .header h2 {
    font-size: 1.7rem;
  }

  .submit-btn {
    font-size: 0.95rem;
  }
}


.popup-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}

.popup-box {
  background: #fff;
  color: #333;
  padding: 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.popup-box h3 {
  margin-bottom: 1rem;
  color: #28a745;
}

.popup-box input {
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 100%;
  text-align: center;
  font-weight: bold;
}
