* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f4f6fc;
  font-family: 'Lato', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1rem; /* add vertical padding for smaller screens */
}

header {
  position: absolute;
  top: 0;
  width: 100%;
  height: 10vh;
  background-color: #1a3e62;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.material-icons {
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

#mssg {
  font-family: 'Merriweather', serif;
  color: red;
  background-color: #FDF2F2;
  border: 1px solid red;
  padding: 0.5em;
  border-radius: 4px;
  display: inline-block;
}

#box {
  background-color: #1a3e62;
  width: 90%;
  max-width: 500px;
  padding: 3rem 2rem 4rem; /* extra bottom padding */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5vh;
  margin-bottom: 5vh;
}

.box-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4vh; /* slightly bigger gap */
  color: white;
  font-family: 'Merriweather', serif;
  text-align: center;
  width: 100%;
}

#title {
  font-size: 2rem;
  font-weight: 700;
  color: #edbd75;
}

#message {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 2vh;
  max-width: 90%;
  color: #f0e7d8; /* lighter than pure white for softness */
}

#email {
  background: transparent;
  border: none;
  border-bottom: 2px solid #f1cb93;
  padding: 0.6rem 0;
  font-size: 1.1rem;
  width: 80%;
  color: white;
  font-family: 'Lato', sans-serif;
  text-align: center;
  outline: none;
  cursor: text;
  transition: border-color 0.3s ease;
}

#email:focus {
  border-color: #edbd75;
}

#email::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

#enter-otp{
  width: auto;
  height: auto;
  padding: 2vh;
}

#enter-email,
#enter-otp {
  width: 15vw;
  padding: 1vh;
  border: none;
  border-bottom: 2.5px solid #f1cb93;
  border-radius: 0;
  background-color: transparent;
  outline: none;
  font-family: 'Merriweather', serif;
  color: white;
  text-align: center;
}

#enter-email::placeholder,
#enter-otp::placeholder {
  color: rgba(255, 255, 255, 0.6);
}


#enter-email:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
  -webkit-text-fill-color: white !important;
  transition: background-color 5000s ease-in-out 0s;
}

#enter-email:focus,
#enter-email:active {
  background-color: transparent;
  box-shadow: none;
}

#send-otp,
button[name="verify_otp"] {
  width: auto;
  padding: 0.6rem 1.2rem;
  margin-top: 1.5vh;
  background-color: #f1cb93;
  color: #1a3e62;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease-in;
  align-self: center;
  text-align: center;
}

#send-otp:hover,
button[name="verify_otp"]:hover {
  transform: scale(1.05);
  background-color: #edbd75;
}


form{
  display: flex;
  flex-direction: column;
}

form * {
  margin: 0;
  padding: 0;
}

#back-btn {
  width: auto;
  padding: 0.6rem 1.2rem;
  margin-top: 2vh;
  background-color: transparent;  /* transparent bg for subtle look */
  color: #f1cb93;                 /* match your accent color */
  border: 2px solid #f1cb93;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: center;
  text-align: center;
  display: block;
}

#back-btn:hover {
  background-color: #f1cb93;
  color: #1a3e62;
}

@media screen and (max-width:768px){

 

  #enter-email, #enter-otp{
    width: 60vw;
    font-size: 1rem;
  }
  
}

