@font-face {
  font-family: "Peanut";
  src: url("../font/heebo.ttf") format("truetype");
}

.label {
  font-size: 24px;
  font-family: "Peanut", sans-serif;
  font-weight: bold;
}

body,
html {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.87);
  margin: 0;
  height: 100%;
}

.login-content {
  background-size: cover;
  background-position: center;
  min-height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

@media (max-width: 768px) {
  .login-content {
    padding-left: 16px; /* Equivalent to px-4 */
    padding-right: 16px; /* Equivalent to px-4 */
  }
}

.gray-text {
  color: gray;
}

.bg {
  opacity: 60%;
  position: Fixed;
  z-index: -1;
  top: 50%;
  height: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.login-content .box {
  width: 100%; /* Full width */
  max-width: 448px; /* Fixed max width */
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24), 0 0 2px 0 rgba(0, 0, 0, 0.12);
  margin: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center items horizontally */
}

.form-title {
  font-family: "Peanut", sans-serif;
  font-size: 28px !important;
  font-weight: 700;
  color: black;
  margin-top: 20px;
  text-align: center;
}

.login-field {
  width: 100%;
  height: 40px;
  font-weight: 500;
  font-size: 14px;
  color: #000000;
  border: none;
  border-bottom: 1px solid #ccc;
  outline: none;
  margin-bottom: 10px; /* Adjust margin to prevent excess space */
  box-sizing: border-box;
}

input[readonly] {
  background-color: white;
}

.submit,
.register-button {
  width: 100%;
  border-radius: 7px;
  display: flex;
  items-align: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  border: none;
  margin-bottom: 10px;
  box-sizing: border-box;
  cursor: pointer !important;
  transition: all 500ms;
}
.submit {
  margin-top: 10px;
}

.submit,
.register-button {
  background: linear-gradient(45deg, #377dbb, rgba(82, 180, 250, 0.75)) !important;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: white;
}

.remember-me-container {
  display: flex;
  justify-content: left;
  align-items: center;
  padding: 10px 0;
}

.submit,
.register-button a {
  background: black;
  padding: 0.8rem 1rem;
  border-radius: 50px;
}

.submit,
.register-button a:hover {
}

.submit:hover,
.register-button:hover {
  filter: brightness(110%);
}

.logo {
  height: 72px;
}

.instruction {
  font-family: "Mulish", sans-serif;
}

.logo-container {
  display: flex;
  justify-content: center;
}

.error-message {
  width: 100%;
  color: red !important;
  font-family: "Mulish", sans-serif;
  font-size: 14px;
  text-align: center;
  margin: 10px 0; /* Space for error message */
  min-height: 20px; /* Fixed height for the error message */
}

.success-message {
  width: 100%;
  color: black;
  font-family: "Mulish", sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin: 10px 0; /* Space for error message */
  min-height: 20px; /* Fixed height for the error message */
}

@media (max-width: 480px) {
  .login-content .box {
    padding: 15px;
    width: 90%; /* Ensure it doesn't exceed the screen */
  }

  .form-title {
    font-size: 20px;
  }

  .login-field,
  .submit,
  .register-button {
    font-size: 12px;
    cursor: pointer !important;
  }
}

input {
  display: flex;
  align-items: center;
  font-size: 16px !important;
}

.login-with-google-btn {
  transition: background-color 0.3s, box-shadow 0.3s;

  padding: 12px 16px 12px 42px;
  border: none;
  border-radius: 3px;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.25);

  color: #757575;
  font-size: 14px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;

  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTcuNiA5LjJsLS4xLTEuOEg5djMuNGg0LjhDMTMuNiAxMiAxMyAxMyAxMiAxMy42djIuMmgzYTguOCA4LjggMCAwIDAgMi42LTYuNnoiIGZpbGw9IiM0Mjg1RjQiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik05IDE4YzIuNCAwIDQuNS0uOCA2LTIuMmwtMy0yLjJhNS40IDUuNCAwIDAgMS04LTIuOUgxVjEzYTkgOSAwIDAgMCA4IDV6IiBmaWxsPSIjMzRBODUzIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNCAxMC43YTUuNCA1LjQgMCAwIDEgMC0zLjRWNUgxYTkgOSAwIDAgMCAwIDhsMy0yLjN6IiBmaWxsPSIjRkJCQzA1IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNOSAzLjZjMS4zIDAgMi41LjQgMy40IDEuM0wxNSAyLjNBOSA5IDAgMCAwIDEgNWwzIDIuNGE1LjQgNS40IDAgMCAxIDUtMy43eiIgZmlsbD0iI0VBNDMzNSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTAgMGgxOHYxOEgweiIvPjwvZz48L3N2Zz4=);
  background-color: white;
  background-repeat: no-repeat;
  background-position: 12px 11px;

  &:hover {
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.25);
  }

  &:active {
    background-color: #eeeeee;
  }

  &:focus {
    outline: none;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 0 3px #c8dafc;
  }

  &:disabled {
    filter: grayscale(100%);
    background-color: #ebebeb;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.25);
    cursor: not-allowed;
  }
}

body {
  text-align: center;
  padding-top: 2rem;
}
