@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
*,
body {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
body {
  background-color: #f7f8fb;
}
section {
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.logo__detail {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  height: 78px;
}

.logo > img {
  width: auto;
  object-fit: contain;
}
.logo__divider {
  width: 2px;
  height: 48px;
  background-color: #d4d4d4;
}

.signup {
  background-color: #ffffff;
  /* Using clamp function to improve responsiveness */
  padding: clamp(4px, 2rem, 4rem);
  display: flex;
  flex-direction: column;
  width: clamp(200px, 90%, 450px);
  gap: 2rem;
  border-radius: 16px;
  box-shadow: 5px 10px 20px rgba(150, 150, 220, 0.362);
}

.signup__title {
  font-weight: 600;
}

button {
  background-color: #eeee;
  border: none;
  border-radius: 8px;
  align-items: center;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 1rem;
  transition: opacity 0.1s;
}

button:hover {
  opacity: 0.8;
  cursor: pointer;
}

.signup__separator {
  text-align: center;
  display: flex;
  font-size: 14px;
  align-items: center;
  gap: 1.2rem;
  color: #616161;
}

.signup__separator::after,
.signup__separator::before {
  content: "";
  height: 2px;
  background-color: #d4d4d4;
  flex: 1;
  width: 20%;
}

.signup__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}

.signup__input-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.7rem;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.signup__input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  font-size: 14px;
}

.eye-icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.signup__submit-button {
  background-color: #be263b;
  color: white;
  width: 100%;
}
.signup__login-link {
  padding-top: 1em;
  text-align: center;
  justify-content: center;
  color: #676767;
}
.signup__login-link a {
  color: #be263b;
}

.signup__checkbox-group,
.signup__checkbox-group a {
  color: #676767;
  font-size: 14px;
  font-weight: 400;
  padding: 10px 0;
}

.signup-error-message {
  color: #be263b;
  font-size: 0.875rem;
  margin-top: 4px;
  display: none;
}
.signup__input.invalid {
  border-color: #be263b;
}

.signup-image-preview {
  margin-top: 15px;
  width: 100%;
  height: 150px;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 14px;
  position: relative;
}

.signup-image-preview__image {
  max-width: 100%;
  max-height: 100%;
}
