* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}
html {
  font-size: 62.5%;
}
body {
  color: rgb(247, 237, 237);
  background-color: black;
  width: 100%;
  max-height: 100vh;
  font-size: 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding: 0 2rem; */
}
.sign_in-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 5rem;
  padding: 5rem;
  gap: 1rem;
  height: 100%;
  width: 80%;
}
/* FORM HEADING */
img,
.logo_image {
  width: 4rem;
  height: 4rem;
}
.form_section-header {
  font-size: 4rem;
}
.header_container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}
.main_section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  padding: 3rem;
  width: 40rem;
  height: 90%;
  background-color: rgba(44, 43, 43, 0.411);
  border: solid 3px black;
  box-shadow: 0 20px 25px 5px rgb(0 0 0 / 0.1), 0 8px 10px 6px rgb(0 0 0 / 0.1);
  border-radius: 1.6rem;
}

.username {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.mail {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.password {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.goals {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
label {
  font-size: 1rem;
  font-weight: 700;
}
input,
select {
  padding: 1rem;
  width: 100%;
  background-color: black;
  border: solid 2px rgb(247, 237, 237);
  color: rgb(247, 237, 237);
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.5s;
}
input:hover {
  transform: translateY(-2px);
  border: solid 2.5px rgb(247, 237, 237);
}

::placeholder {
  color: rgb(238, 233, 233);
}
.submit-btn {
  padding: 0.8rem;
  background-color: rgb(247, 237, 237);
  border: 2px solid rgb(247, 237, 237);
  border-radius: 0.5rem;
  width: 100%;
  display: inline-block;
  margin-top: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s;
}
.submit-btn:hover {
  background-color: black;
  border: 3px solid rgb(247, 237, 237);
  transform: translateY(-2px);
  color: rgb(247, 237, 237);
}
.login_link {
  text-decoration: none;
  color: black;
  font-weight: 500;
  width: 100%;
  display: inline-block;
}
.login_link:hover {
  color: rgb(247, 237, 237);
}

/* ADDED CLASS STYLING */
.error-message {
  font-size: 0.7rem;
  color: #ff6b6b;
  margin-top: -0.2rem;
  display: none;
}

.error-message.show {
  display: block;
}

input.error,
select.error {
  border-color: #ff6b6b !important;
}

.success-message {
  font-size: 0.85rem;
  color: #51cf66;
  text-align: center;
  margin-top: 1rem;
  display: none;
}

.success-message.show {
  display: block;
}

@media (max-width: 600px) {
  html {
    font-size: 57%;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 53%;
  }
}
@media (max-width: 400px) {
  html {
    font-size: 49%;
  }
}
@media (max-width: 340px) {
  html {
    font-size: 45%;
  }
}
