/* Stage Accedi — layout Wix sign-up */

body.body-stage.body-stage-accedi {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--stage-accedi-bg);
  background-image: var(--stage-accedi-bg-image);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

body.body-stage.body-stage-accedi main {
  min-height: 100vh;
}

.stage-accedi {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 88px 20px 48px;
}

/* Logo pagina — alto sinistra come Wix */
.stage-accedi__brand {
  position: fixed;
  top: 28px;
  left: 36px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: max-content;
  text-decoration: none;
  color: var(--stage-accedi-text);
}

.stage-accedi__brand-logo {
  display: block;
  width: 3.35rem;
  height: 1.75rem;
  flex: 0 0 auto;
  fill: #000;
}

.stage-accedi__shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 504px;
}

.stage-accedi__card {
  background: var(--stage-accedi-card-bg);
  border: 1px solid var(--stage-accedi-card-border);
  border-radius: var(--stage-accedi-radius);
  box-shadow: var(--stage-accedi-shadow);
  padding: 48px 56px 40px;
}

.stage-accedi__header {
  margin-bottom: 28px;
  text-align: center;
}

body.body-stage.body-stage-accedi .stage-accedi__title {
  margin: 0;
  font-size: var(--stage-accedi-title-fs);
  font-weight: 700;
  line-height: 1.14;
  color: var(--stage-accedi-text);
  letter-spacing: -0.026em;
}

.stage-accedi__subtitle {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--stage-accedi-muted);
}

.stage-accedi__subtitle a {
  color: var(--stage-accedi-link);
  text-decoration: none;
  font-weight: 400;
}

.stage-accedi__subtitle a:hover {
  color: var(--stage-accedi-link-hover);
  text-decoration: underline;
}

.stage-accedi__alert {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: var(--stage-accedi-btn-radius);
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
}

.stage-accedi__alert--error {
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  color: var(--stage-accedi-alert-error-text);
}

.stage-accedi__alert--success {
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--stage-accedi-alert-success-text);
}

.stage-accedi__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stage-accedi__field {
  display: flex;
  flex-direction: column;
}

.stage-accedi__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--stage-accedi-text);
  margin-bottom: 6px;
}

.stage-accedi__input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--stage-accedi-border);
  border-radius: var(--stage-accedi-btn-radius);
  background: var(--stage-accedi-card-bg);
  color: var(--stage-accedi-text);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.stage-accedi__input::placeholder {
  color: var(--stage-accedi-placeholder);
}

.stage-accedi__input:focus {
  outline: none;
  border-color: var(--stage-accedi-link);
  box-shadow: 0 0 0 1px var(--stage-accedi-link);
}

.stage-accedi__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--stage-accedi-btn-radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.body-stage-accedi .stage-accedi__card .primary-button {
  margin-top: 4px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--stage-accedi-btn-radius);
  background-color: var(--color-primary-500);
  color: var(--color-third-100);
  font-weight: 600;
}

body.body-stage-accedi .stage-accedi__card .primary-button:hover {
  background-color: var(--color-primary-700);
  color: var(--color-third-100);
}

.stage-accedi__btn--social {
  background: var(--stage-accedi-btn-social-bg);
  border-color: var(--stage-accedi-btn-social-border);
  color: var(--stage-accedi-text);
}

.stage-accedi__btn--social:hover {
  background: var(--stage-accedi-btn-social-hover-bg);
  border-color: var(--stage-accedi-btn-social-border);
  color: var(--stage-accedi-text);
}

.stage-accedi__btn--ghost {
  background: var(--stage-accedi-btn-ghost-bg);
  border-color: var(--stage-accedi-border);
  color: var(--stage-accedi-text);
}

.stage-accedi__btn--ghost:hover {
  background: var(--stage-accedi-btn-ghost-hover-bg);
  color: var(--stage-accedi-text);
}

.stage-accedi__google-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}

.stage-accedi__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--stage-accedi-muted);
  font-size: 0.875rem;
  margin: 8px 0;
}

.stage-accedi__divider::before,
.stage-accedi__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--stage-accedi-divider);
}

.stage-accedi__link {
  display: inline-flex;
  align-self: center;
  color: var(--stage-accedi-link);
  font-size: 0.875rem;
  text-decoration: none;
}

.stage-accedi__link:hover {
  color: var(--stage-accedi-link-hover);
  text-decoration: underline;
}

.stage-accedi__hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--stage-accedi-muted);
  text-align: center;
}

body.body-stage.body-stage-accedi .stage-accedi__legal {
  margin: 24px 0 0;
  font-size: var(--stage-fs-legal);
  line-height: 1.45;
  color: var(--stage-accedi-muted);
  text-align: center;
}

body.body-stage.body-stage-accedi .stage-accedi__legal a {
  font-size: inherit;
  color: var(--stage-accedi-text);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.body-stage.body-stage-accedi .stage-accedi__legal a:hover {
  color: var(--stage-accedi-link);
}

.stage-accedi__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  body.body-stage.body-stage-accedi {
    background-attachment: scroll;
    background-position: center top;
  }

  .stage-accedi {
    padding: 72px 16px 32px;
  }

  .stage-accedi__brand {
    top: 20px;
    left: 20px;
  }

  .stage-accedi__brand-logo {
    width: 2.85rem;
    height: 1.5rem;
  }

  .stage-accedi__card {
    padding: 32px 24px 28px;
  }
}
