body {
  font-family: Arial, sans-serif;
  background-color: #FFF9EF;
  color: #333;
  margin: 0;
  padding: 0;
  display: block;
  min-height: 100vh;
}

.container {
  text-align: left;
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative;
  min-height: 100vh;
  padding: 2rem;
  box-sizing: border-box;
  overflow: hidden;
}

.welcome-section {
  position: relative;
  padding-left: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
  width: min(90%, 400px);
}

.welcome-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: rgba(249, 172, 107, 0.6);
  border-radius: 2px;
}

.welcome-section h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
  color: #000;
  text-align: left;
}

.subtitle {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #555;
  text-align: left;
}

.form-section {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(95%, 600px);
  text-align: center;
  margin: 0;
  padding: clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 12px;
  box-shadow: none;
}

.label {
  display: block;
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
  text-align: center;
}

.input {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin: 1rem 0;
  background-color: #F9AC6B;
  color: #FFF;
  outline: none;
  text-align: center;
}

.button-group {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.back-button,
.next-button {
  display: block;
  width: fit-content;
  background-color: #4CAF50;
  color: #FFF;
  border: none;
  padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: 5px;
  font-size: clamp(0.875rem, 2vw, 1rem);
  cursor: pointer;
  text-transform: capitalize;
  opacity: 1;
  transition: opacity 0.3s ease;
  margin: 0;
}

.back-button:hover,
.next-button:hover {
  background-color: #45A049;
}

.show-pw-button {
  background: #FFB347;
  color: #FFF;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: -10px;
}

.show-pw-button:hover {
  background: #FFA500;
}

.existing-email-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  border-radius: 15px;
  text-align: center;
  z-index: 2000;
  width: 90%;
  max-width: 400px;
  font-family: Arial, sans-serif;
}

.existing-email-popup h2 {
  margin-top: 0;
  color: #F9AC6B;
  font-size: 1.5rem;
}

.existing-email-popup p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #333;
}

.existing-email-popup button {
  margin: 10px;
  padding: 10px 20px;
  border: none;
  background-color: #F9AC6B;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.existing-email-popup button:hover {
  background-color: #F78C28;
}

@keyframes float {
  0% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px);
  }
  100% {
      transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .welcome-section {
    width: min(95%, 500px);
    margin-bottom: 1.5rem;
  }
  
  .form-section {
    width: min(75%, 500px);
    padding: clamp(1rem, 4vw, 2rem);
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 2rem;
  }
  
  .welcome-section h1 {
    font-size: 2rem;
  }
  
  .button-group {
    gap: 0.5rem;
  }
}

.button-group {
  margin-bottom: 1rem; /* Added to create space before the login button */
}

.login-button {
  display: block;
  width: fit-content;
  background-color: #4CAF50;
  color: #FFF;
  border: none;
  padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: 5px;
  font-size: clamp(0.875rem, 2vw, 1rem);
  cursor: pointer;
  text-transform: capitalize;
  opacity: 1;
  transition: opacity 0.3s ease;
  margin: 0 auto; /* Center horizontally */
}

.login-button:hover {
  background-color: #45A049;
}

.login-link {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 0.9em;
}

.login-link a {
    color: #007AFF;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}
