.s2w-auth-logo {
  display: inline-flex;
  align-items: center;
  margin: 0 0 20px;
}

.s2w-auth-logo img {
  display: block;
  width: min(190px, 100%);
  max-height: 108px;
  object-fit: contain;
  object-position: left center;
}

.s2w-auth-layout {
  border-color: #ead4da;
}

.s2w-auth-layout .s2b-auth-panel {
  min-width: 0;
  color: #582432;
}

.s2w-auth-layout .s2b-auth-panel h1 {
  color: #8b293e;
  line-height: 1.15;
}

.s2w-auth-layout .s2b-auth-brand {
  background: linear-gradient(145deg, #702034, #9b354c);
  border-color: #d9a0af;
}

.s2w-auth-layout .s2b-auth-brand > span {
  color: #ffdae3;
}

.s2w-auth-layout .s2b-auth-brand h2 {
  font-size: 36px;
  line-height: 1.1;
}

.s2w-auth-layout .s2b-provider-button {
  border-color: #dcb8c2;
  color: #8b293e;
  background: #fff;
}

.s2w-auth-layout input[type="submit"]:not(.s2b-auth-secondary) {
  border-color: #8b293e;
  background: #8b293e;
  color: #fff;
}

.s2w-auth-layout input.s2b-auth-secondary {
  border-color: #dcb8c2;
  background: #fff;
  color: #8b293e;
}

.s2w-auth-layout a {
  color: #8b293e;
}

.s2w-auth-layout :focus-visible {
  outline-color: #b34862;
}

.s2w-signup-heading {
  max-width: 860px;
  margin: 24px auto 18px;
  padding: 0 20px;
  color: #582432;
}

.s2w-signup-heading h1 {
  color: #8b293e;
}

.s2w-registration-form {
  max-width: 900px;
  margin: 32px auto 52px;
  padding: 28px 36px;
  border: 1px solid #ead4da;
  border-radius: 24px;
  background: #fff;
  color: #582432;
  box-shadow: 0 16px 42px rgba(89, 35, 51, 0.10);
}

.s2w-registration-form .s2w-signup-heading {
  max-width: none;
  margin: 0 0 24px;
  padding: 0;
}

.s2w-registration-form .form-item label,
.s2w-registration-form legend {
  color: #582432;
  font-weight: 650;
}

.s2w-registration-form input[type="text"],
.s2w-registration-form input[type="email"],
.s2w-registration-form input[type="password"],
.s2w-registration-form input[type="tel"],
.s2w-registration-form input[type="number"],
.s2w-registration-form select,
.s2w-registration-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  border: 1px solid #dcb8c2;
  border-radius: 10px;
  padding: 10px 12px;
  color: #38232a;
  background: #fff;
}

.s2w-registration-form input[type="submit"] {
  min-height: 48px;
  border: 1px solid #8b293e;
  border-radius: 12px;
  padding: 11px 20px;
  background: #8b293e;
  color: #fff;
  font-weight: 700;
  white-space: normal;
}

.s2w-registration-form .s2b-google-registration .s2b-provider-button {
  border-color: #dcb8c2;
  color: #8b293e;
}

.s2w-registration-form a {
  color: #8b293e;
}

.s2w-registration-form :focus-visible {
  outline: 3px solid #b34862;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .s2w-auth-layout {
    display: block;
    margin: 16px 10px 28px;
    border-radius: 20px;
  }

  .s2w-auth-layout .s2b-auth-panel {
    padding: 22px 20px;
  }

  .s2w-auth-layout .s2b-auth-panel h1 {
    font-size: clamp(26px, 7vw, 32px);
  }

  .s2w-auth-layout .s2b-auth-brand {
    padding: 22px 20px;
    border-top: 4px solid #d9a0af;
    border-left: 0;
  }

  .s2w-auth-layout .s2b-auth-brand h2 {
    margin: 12px 0;
    font-size: 28px;
  }

  .s2w-auth-logo img {
    width: min(160px, 70vw);
    max-height: 90px;
  }

  .s2w-auth-layout .s2b-provider-button,
  .s2w-auth-layout input[type="submit"] {
    min-height: 48px;
    white-space: normal;
  }

  .s2w-registration-form {
    margin: 16px 10px 30px;
    padding: 22px 20px;
    border-radius: 20px;
  }

  .s2w-registration-form .s2w-signup-heading h1 {
    font-size: clamp(26px, 7vw, 32px);
  }

  .s2w-registration-form .form-actions,
  .s2w-registration-form .form-actions input[type="submit"] {
    width: 100%;
  }
}
