body {
  background: radial-gradient(circle, #5290c9, #a1c8e3);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
}
.sign_main {
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 25px;
  text-align: center;
  font-family: "Playfair Display", serif;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  width: 60%;
  height: 65%;
  transition: all 0.4s linear;
}
.sign_main:hover {
  background: radial-gradient(circle, #5290c9, #a1c8e3); /* Smooth gradient */
  box-shadow: 0px 0px 15px white; /* Adds depth */
}
.signiin_title {
  font-size: 2rem;
  align-self: center;
}

.sign_form #email,
#password {
  border-bottom: 2px solid black;
  background: transparent;
  box-shadow: none;
  padding: 2px;
  margin: 1%;
  outline: none;
  transition: all 0.4s linear;
}

.sign_main:hover > .sign_form #email,
.sign_main:hover > .sign_form #password {
  border: 2px solid white;
  padding: 10px;
  border-radius: 10px;
  margin: 5px;
  box-shadow: 0px 0px 4px white;
}
#togglePassword {
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s linear;
  font-size: 1.5rem;
}

.sign_main:hover > .sign_form #togglePassword {
  opacity: 1;
}
.sign_form {
  font-size: 1.2rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
}
.sign_form button {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  background-color: transparent;
  color: black;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  padding: 10px;
  padding-left: 20px;
  padding-right: 20px;
  border: solid 2px white;
  border-radius: 15px;
  box-shadow: 6px 6px 4px black;
  transition: all 0.3s ease-in-out;
}
.sign_form button:hover {
  box-shadow: 4px 4px 2px rgba(251, 251, 251, 0.684);
}
.sign_form button:active {
  transform: scale(0.97);
  box-shadow: 6px 6px 4px white;
}
input {
  font-size: 1.1rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  color: #000; /* Text color inside the input */
  background: transparent;
  border: none;
  border-bottom: 2px solid #000;
  padding: 8px;
  outline: none;
  width: 50%;
}
.sign_main:hover > .stext a {
  padding-left: 5px;
  color: white;
}
.stext {
  font-family: "Open Sans", sans-serif;
  font-size: 1.2rem;
  height: 2em;
  background-color: transparent;
  color: black;
  font-weight: 600;
  transition: all 0.3s ease;
}
.stext a {
  text-decoration: none;
  color: #000;
  font-family: "Playfair Display", serif;
  transition: all 0.3s linear;
}
a:active {
  transform: scale(0.97);
}

.error h2 {
  color: red;
}
@media (min-width: 401px) and (max-width: 600px) {
  .sign_main {
    box-shadow: 0px 0px 15px white;
    border: 2px solid transparent;
    width: 90%;
    height: 70%;
    background: radial-gradient(circle, #5290c9, #a1c8e3); /* Smooth gradient */
  }
  .signiin_title {
    font-size: 1.5rem;
    align-self: center;
  }

  .sign_form {
    font-size: 1.05rem;
  }
  .sign_form #email,
  #password {
    border: 2px solid white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 4px white;
    width: 55%;
  }
  .sign_form #email {
    margin-left: 8%;
    margin: 1%;
  }
  .sign_form button {
    font-size: 1.05rem;
    border: solid 2px white;
    margin-top: 25px;
    border-radius: 15px;
    box-shadow: 4px 4px 2px black;
  }
  .sign_form button:hover {
    box-shadow: 4px 4px 2px black;
  }
  input {
    font-size: 1.05rem;
    width: 50%;
  }

  button:active {
    transform: scale(0.97);
  }

  .stext {
    font-size: 1.05rem;
    height: 100%;
  }
  .stext > * {
    position: relative;
    top: 30%;
  }
  .stext a {
    color: white;
    padding-left: 5px;
    transition: all 0.3s ease-in-out;
  }
  a:active {
    transform: scale(0.97);
  }
  .error h2 {
    font-size: 1.2rem;
  }
  #togglePassword {
    opacity:1;
  }
}

@media (min-width: 310px) and (max-width: 400px) {
  .sign_main {
    box-shadow: 0px 0px 15px white;
    border: 2px solid transparent;
    width: 90%;
    height: 60%;
    background: radial-gradient(circle, #5290c9, #a1c8e3);
  }
  .signiin_title {
    font-size: 1rem;
    align-self: center;
  }
  .sign_form {
    font-size: 1rem;
    display: flex;
    justify-content: center;
  }
  .sign_form #email,
  #password {
    border: 2px solid white;
    padding: 10px;
    margin: 5px;
    border-radius: 10px;
    box-shadow: 0px 0px 4px white;
    width: 70%;
  }
  #email{
    position: relative;
    right :  8px;
  }
  #password {
    position: relative;
    left: 5%;
  }

  .sign_form button {
    font-size: 1rem;
    border: 2px solid white;
    margin-top: 20px;
    border-radius: 15px;
    box-shadow: 4px 4px 2px black;
  }
  .sign_form button:hover {
    box-shadow: 4px 4px 2px black;
  }
  input {
    font-size: 1rem;
    width: 80%;
  }
  label {
    display: none;
  }
  button:active {
    transform: scale(0.97);
  }
  .stext {
    font-size: 1rem;
    height: 100%;
  }
  .stext > * {
    position: relative;
    top: 20%;
  }
  #togglePassword {
    opacity:1;
    position: relative;
   left: 5%;
  }
  .stext a {
    color: white;
    padding-left: 5px;
    transition: all 0.3s ease-in-out;
  }
  a:active {
    transform: scale(0.97);
  }
  .error h2 {
    font-size: 1rem;
  }

}

@media (max-width: 310px) {
  .sign_main {
    box-shadow: 0px 0px 15px white;
    border: 2px solid transparent;
    width: 90%;
    height: 60%;
    background: radial-gradient(circle, #5290c9, #a1c8e3);
  }
  #togglePassword {
    opacity:1;
    position: relative;
    left: 5%;
  }
   #email{
    position: relative;
    right: 8px;
  }
  #password {
    position: relative;
    left: 5%;
  }
  .signiin_title {
    font-size: 1rem;
    align-self: center;
  }
  .sign_form {
    font-size: 1rem;
    display: flex;
    justify-content: center;
  }
  .sign_form #email,
  #password {
    margin: 5px;
    border: 2px solid white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 4px white;
  }
  .sign_main:hover > .sign_form #email,
  .sign_main:hover > .sign_form #password {
    border: 2px solid white;
    padding: 5px;
    border-radius: 10px;
  }
  .sign_form button {
    font-size: 1rem;
    border: 2px solid white;
    margin-top: 20px;
    border-radius: 15px;
    box-shadow: 4px 4px 2px black;
  }
  .sign_form button:hover {
    box-shadow: 4px 4px 2px black;
  }
  input {
    font-size: 1rem;
    width: 70%;
  }
  label {
    display: none;
  }
  button:active {
    transform: scale(0.97);
  }
  .stext {
    font-size: 1rem;
    height: 100%;
  }
  .stext > * {
    position: relative;
    top: 20%;
  }
  .stext a {
    color: white;
    padding-left: 5px;
    transition: all 0.3s ease-in-out;
  }
  a:active {
    transform: scale(0.97);
  }
  .error h2 {
    font-size: 1rem;
  }
  .stext a:hover {
    padding-left: 5px;
  }
}
