* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Roboto', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #eeeeee;
}

.form-container {
  display: flex;
  width: 90vmin;
  height: 60vmin;
  margin: auto;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.intro-section {
  flex: 1;
  background-color: #fcbb30;
  color: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border-radius: 15px;
}

.intro-section img {
  height: auto;
  max-width: 100%;
  position: relative;
  top: -10px;
  left: 20px;
}

.intro-section p {
  font-size: 1rem;
}

.container {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 500px;
}

form {
  margin: 0 2rem;
}

.form-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 0.7rem;
}

.input-group {
  padding: 3% 0;
  position: relative;
}

input {
  color: inherit;
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #979792;
  padding-left: 0.35rem;
  padding-top: 0.3rem;
  font-size: 0.9375rem;
}

input:focus {
  background-color: transparent;
  outline: none;
  border-bottom: 3px solid #0056b3;
  padding-bottom: 2.5px;
}

input::placeholder {
  color: transparent;
}

.input-group label {
  color: #5f5f5f;
  position: relative;
  left: 0.3em;
  top: -1.3em;
  cursor: auto;
  transition: 0.3s ease all;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -3em;
  color: #0056b3;
  font-size: 0.9375rem;
  font-weight: bold;
}

.recover {
  text-align: right;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.recover a {
  text-decoration: none;
  color: rgb(78, 78, 78);
}

.recover a:hover {
  color: #0056b3;
}

.btn-submit {
  font-size: 1rem;
  padding: 0.5rem 0;
  border-radius: 0.3125rem;
  outline: none;
  border: none;
  width: 100%;
  background-color: #fcbb30;
  color: white;
  cursor: pointer;
}

.btn-submit:hover {
  background: #ffd16d;
}

.links {
  display: flex;
  justify-content: space-around;
  padding: 0 4rem;
  margin-top: 1rem;
  font-weight: bold;
}

button {
  border: none;
  background-color: transparent;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

#signUpButton, #signInButton {
  color: #fcbb30;
}

#signUpButton:hover, #signInButton:hover {
  color: #ffd16d;
}

.password-toggle-icon {
  position: absolute;
  top: 30%;
  right: 6px;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle-icon i {
  font-size: 1.125rem;
  color: black;
  transition: color 0.3s ease-in-out;
}

.password-toggle-icon i:hover {
  color: #0056b3;
}

#sign-up .password-toggle-icon {
  position: absolute;
  top: -20%;
  right: 6px;
  transform: translateY(-260%);
  cursor: pointer;
}

#sign-up .input-group {
  position: relative;
}

@media (max-width: 1598px), (max-height: 889px) {
  .form-container {
    flex-direction: column;
    width: 90vmin;
    height: auto;
    max-height: 100vh;
    overflow-y: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .container,
  .intro-section {
    width: 100%;
    padding: 1.5rem 1rem;
    flex: none;
  }

  form {
    margin: 0;
  }

  .links {
    padding: 0 1rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  #log-in .intro-section,
  #sign-up .intro-section {
    display: none;
  }
}

@media (max-width: 900px), (max-height: 872px) {
  .form-container {
    flex-direction: column;
    width: 90vmin;
    height: auto;
    max-height: 100vh;
    overflow-y: auto;
  }

  .container,
  .intro-section {
    width: 100%;
    padding: 2rem 1rem;
    flex: none;
  }

  .links {
    padding: 0 1rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  #log-in .intro-section,
  #sign-up .intro-section {
    display: none;
  }
}

.fe-container {
  background-color: #eee;
  display: flex;
  flex-direction: row;
  height: 100%;
}

.main-content {
  padding: .625rem;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex-grow: 1;
}



