.fullPageWrapper {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.signUpBox {
  display: flex;
  flex-direction: row;
  background-color: #2e236b;
  border-radius: 15px;
  width: min(calc(100vw - 1rem), 72em);
  height: min(calc(100dvh - 1rem), 38em);
  min-width: 320px;
  min-height: 400px;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.leftPanel {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 2rem;
  box-sizing: border-box;
  overflow-y: auto;
}

.visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 26em;
  height: min(43em, 90%);
  margin-left: 1em;
  background: linear-gradient(
    0deg,
    rgba(67, 61, 139, 1) 38%,
    rgba(200, 172, 214, 1) 91%
  );
  border-radius: 15px;
  transition: box-shadow 0.2s ease-in-out;
  overflow: hidden;
}

.visual:hover {
  box-shadow: 0 0 10px #c6aad5;
}

.GiftHubTitle {
  position: sticky;
  top: 0;
  font-family: Jura, sans-serif;
  margin-bottom: 0.6em;
  font-size: clamp(2rem, 6vw, 5rem);
  color: white;
  text-shadow: 3px 5px 5px #917da8;
}

.cloudPNG {
  width: 26em;
  margin-top: -12em;
}

.rightPanel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 60%;
  padding: 1rem 2.5rem 2.5rem;
  box-sizing: border-box;
  height: 100%;
  max-height: 100%;

  overflow: hidden;
}

.top {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.title {
  color: #ffffff;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 0;
  margin-block-end: 0;
}

.resetPasswordPage .title {
  margin-top: 0.3em;
}

.aboveTitle {
  color: #ffffff;
  opacity: 50%;
  font-size: 1.1em;
  margin-bottom: -0.2em;
}

.belowTitle {
  color: #ffffff;
  opacity: 50%;
  font-size: 1.1em;
  margin-top: 0.5em;
}

.middle {
  margin-top: -1em;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.formContainer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 32em;
  gap: 1rem;

  flex-grow: 1;
  max-height: 100%;
  overflow-y: auto;
}

.signupPage .formContainer {
  gap: 0;
}

.formGroup {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.inputTitle {
  font-size: clamp(1rem, 0.5vw, 1.5rem);
  margin-left: 0.5em;
  font-weight: 500;
}

.inputField {
  width: 100%;
  max-height: 3rem;
  height: clamp(2.5rem, 5vh, 3rem);
  padding: 0 1rem;
  font-weight: 500;
  background-color: #433d8a;
  border: 3px solid #c7acd5;
  border-radius: 10px;
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
}

.inputField::placeholder {
  color: #ffffff;
  font-weight: 500;
  opacity: 50%;
  font-size: clamp(0.85rem, 0.9vw, 0.95rem);
}

.inputField:focus {
  outline: none;
  border: 3px solid white;
  box-shadow: 0 0 5px rgba(160, 120, 228, 0.5);
}

.passwordInput {
  position: relative;
  display: flex;
  align-items: center;
}

.passwordToggleButton {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  position: absolute;
  right: 1em;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.passwordToggleButton svg {
  width: 100%;
  height: 100%;
  filter: invert(1);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.passwordToggleButton:hover svg {
  opacity: 1;
}

.forgotPassword {
  margin-top: -0.3em;
  color: white;
  text-decoration: none;
  display: flex;
  justify-content: flex-end;
  opacity: 80%;
  transition: opacity 0.2s ease;
}

.forgotPassword:hover {
  opacity: 1;
}

.bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  margin-top: 0;
}

.rememberMe {
  margin-top: 0;
  display: flex;
  align-items: center;
  color: white;
  opacity: 0.7;
  font-size: 1em;
  gap: 0.5em;
  cursor: pointer;
  user-select: none;
}

.primaryButton {
  margin-bottom: 0;
  margin-top: 0;
  padding: 0.6em 1.2em;
  background: radial-gradient(
    circle at bottom right,
    #a078e4 0%,
    #8d80ec 57%,
    #738bf8 100%
  );
  width: 11em;
  height: 3em;
  border-radius: 10px;
  outline: none;
  border: none;
  color: white;
  font-size: 1.1em;
  font-weight: 600;
  transition: transform 0.1s ease;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(208, 195, 254, 0.5);
  box-sizing: border-box;
  cursor: pointer;
}

.primaryButton:hover {
  transform: scale(1.1);
}

.primaryButton:active {
  transform: scale(1);
}

.divider {
  display: flex;
  align-items: center;
  width: 20em;
  margin: 0.5em 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

.dividerText {
  margin: 0 0.6em;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1em;
  white-space: nowrap;
}

.inputError {
  border: 1px solid #e01c1e;
}

.errorText {
  color: #e01c1e;
  font-size: 0.85rem;
  margin-left: 8px;
}

.serverError {
  color: #e01c1e;
  border: 1px solid #e01c1e;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.forgotPasswordMessage {
  color: #ffffff;
  font-size: 1.1em;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.footer {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2em;
  margin-bottom: 0;
  margin-top: 0.5em;
}

.termsPrivacy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65em;
  margin-bottom: -1.5em;
  text-align: center;
}

.secondaryButton {
  background: none;
  border: none;
  padding: 0;
  margin-left: 0.4em;
  color: #ffffff;
  opacity: 1;
  font-size: 1em;
  cursor: pointer;
}

.secondaryButton:hover {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

@media (max-width: 1000px) {
  .fullPageWrapper {
    background-image: linear-gradient(#17153b, #433d8b);
  }

  .signUpBox {
    flex-direction: column;
    width: 90vw;
    height: 85vh;
    padding: 1em;
    min-width: 0;
    position: static;
  }

  .leftPanel {
    display: none;
  }

  .rightPanel {
    width: 100%;
    justify-content: flex-start;
    padding-top: 0;
    overflow-y: auto;
  }

  .primaryButton {
    margin-top: 3em;
  }

  .alternativeButtons {
    flex-direction: row;
  }

  .discordButton {
    width: 13em;
  }

  .googleButton {
    width: 13em;
  }
}

@media (max-width: 850px) {
  .signUpBox {
    height: 85vh;
    min-width: 0;
    width: 90vw;
  }
}

@media (max-width: 600px) {
  .alternativeButtons {
    flex-direction: column;
  }

  .discordButton {
    width: 16em;
  }

  .googleButton {
    width: 16em;
  }
}

@media (max-width: 500px) {
  .signUpBox {
    width: 90vw;
  }

  .rightPanel {
    justify-content: flex-start;
    padding-top: 0;
  }

  .footer {
    flex-direction: column;
  }
}
