body {
  /* Do not set font-family here — it overrides Webflow page fonts (e.g. Lato)
     when this stylesheet is linked on the parent page. */
  /* Lets the Webflow page background show around/behind the embed */
  background-color: transparent;
}
.group-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: start;
  position: relative;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .group-container {
    width: 380px;
  }
}

/* Homepage form: keep email/password/CTA shell ≤320px on narrow phones */
@media (max-width: 459px) {
  #keycloak-create-account-wrapper[data-form-style='homepage'] {
    max-width: 320px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

.description {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}
#keycloak-create-account-wrapper {
  border: none;
  border-radius: 0;
  overflow: visible;
  /* Avoid a blank white block before the iframe paints */
  min-height: 0;
  position: relative;
  background: transparent;
}
#keycloak-create-account-wrapper iframe {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

/* Email verification success message styles */
.email-verified-message {
  display: none;
  padding: 30px;
  text-align: center;
}

.email-verified-message.show {
  display: block;
}

.email-verified-message p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
}

.email-verified-message .login-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.email-verified-message .login-button:hover {
  background-color: #0056b3;
}

/* Fallback message styles (when Flagsmith flag is disabled) */
.fallback-message {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.fallback-message.show {
  display: flex;
}

.fallback-message p {
  margin: 0;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* Loading state styles */
/* Temporary delete */
/* #keycloak-create-account-wrapper[data-loading='true']::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
} */

/* #keycloak-create-account-wrapper[data-loading='true']::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
} */

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
