:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.account-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(236, 23, 101, 0.12), transparent 28rem),
    #f6f3f7;
  color: #24202a;
  min-height: 100vh;
  min-height: 100dvh;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.82fr) minmax(0, 1.18fr);
  margin: 0 auto;
  max-width: 1160px;
  min-height: 100vh;
  min-height: 100dvh;
}

.account-intro {
  background: linear-gradient(145deg, #ec1765 0%, #c60c61 58%, #7e154f 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(30px, 5vw, 62px);
  position: relative;
}

.account-intro::after {
  border: 34px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  bottom: -150px;
  content: "";
  height: 320px;
  position: absolute;
  right: -150px;
  width: 320px;
}

.account-brand {
  display: inline-flex;
  position: relative;
  width: fit-content;
  z-index: 1;
}

.account-brand img {
  filter: drop-shadow(0 12px 25px rgba(77, 0, 37, 0.22));
  height: 138px;
  object-fit: contain;
  width: 138px;
}

.account-intro-copy,
.account-support {
  position: relative;
  z-index: 1;
}

.account-eyebrow,
.account-heading > p {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin: 0 0 12px;
}

.account-intro h1 {
  font-size: clamp(34px, 4.3vw, 58px);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
  max-width: 560px;
}

.account-intro-copy > p:not(.account-eyebrow) {
  font-size: 17px;
  line-height: 1.55;
  margin: 24px 0;
  max-width: 510px;
}

.account-benefits {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.account-benefits li {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 10px;
}

.account-benefits li::before {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  content: "✓";
  display: inline-flex;
  flex: 0 0 25px;
  height: 25px;
  justify-content: center;
}

.account-support {
  font-size: 13px;
  margin: 36px 0 0;
}

.account-support a {
  font-weight: 900;
}

.account-panel {
  align-self: center;
  padding: clamp(30px, 6vw, 76px);
}

.account-back {
  color: #6d6571;
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 38px;
  text-decoration: none;
}

.account-back:hover,
.account-back:focus-visible {
  color: #ec1765;
}

.account-heading > p {
  color: #ec1765;
}

.account-heading h2 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 10px;
}

.account-heading > span {
  color: #716a75;
  font-size: 14px;
}

.account-form {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.account-field-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-field {
  display: grid;
  gap: 7px;
}

.account-field > span:first-child {
  color: #423b46;
  font-size: 13px;
  font-weight: 850;
}

.account-field input,
.account-field select {
  background: #fff;
  border: 1px solid #d9d2dc;
  border-radius: 13px;
  color: #28222b;
  min-height: 50px;
  outline: none;
  padding: 0 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.account-field input:focus,
.account-field select:focus {
  border-color: #ec1765;
  box-shadow: 0 0 0 4px rgba(236, 23, 101, 0.11);
}

.account-field small {
  color: #7a737e;
  font-size: 12px;
}

.account-password {
  display: block;
  position: relative;
}

.account-password input {
  padding-right: 84px;
}

.account-password button {
  background: transparent;
  border: 0;
  color: #b30c55;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 10px;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}

.account-password button:focus-visible,
.account-submit:focus-visible,
.account-check a:focus-visible {
  outline: 3px solid rgba(236, 23, 101, 0.3);
  outline-offset: 3px;
}

.account-privacy-note {
  background: #fff;
  border: 1px solid #eadfe8;
  border-left: 4px solid #ec1765;
  border-radius: 13px;
  color: #625b65;
  font-size: 12px;
  line-height: 1.55;
  padding: 15px 17px;
}

.account-privacy-note strong {
  color: #352e38;
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.account-privacy-note p {
  margin: 0;
}

.account-privacy-note a,
.account-check a {
  color: #b30c55;
  font-weight: 850;
}

.account-check {
  align-items: flex-start;
  color: #514a54;
  display: grid;
  font-size: 13px;
  gap: 11px;
  grid-template-columns: 20px 1fr;
  line-height: 1.5;
}

.account-check input {
  accent-color: #ec1765;
  height: 18px;
  margin: 2px 0 0;
  width: 18px;
}

.account-check strong {
  color: #d6004f;
}

.account-form-status {
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.account-form-status[data-state="error"],
.account-form-status[data-state="success"] {
  padding: 12px 14px;
}

.account-form-status[data-state="error"] {
  background: #fff0f3;
  color: #a6003c;
}

.account-form-status[data-state="success"] {
  background: #eaf8f0;
  color: #17643a;
}

.account-submit {
  background: linear-gradient(135deg, #ec1765, #c60c61);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(198, 12, 97, 0.24);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  min-height: 53px;
}

.account-submit:hover {
  filter: brightness(1.04);
}

.account-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.account-honeypot {
  left: -10000px;
  position: absolute;
}

.legal-layout {
  margin: 0 auto;
  max-width: 880px;
  padding: clamp(24px, 6vw, 72px) 20px;
}

.legal-card {
  background: #fff;
  border: 1px solid #ece5ec;
  border-radius: 24px;
  box-shadow: 0 20px 70px rgba(77, 44, 67, 0.1);
  padding: clamp(24px, 6vw, 64px);
}

.legal-card h1 {
  font-size: clamp(32px, 6vw, 52px);
  letter-spacing: -0.045em;
  margin: 20px 0 8px;
}

.legal-updated {
  color: #817883;
  font-size: 13px;
  margin: 0 0 34px;
}

.legal-card h2 {
  font-size: 20px;
  margin: 30px 0 10px;
}

.legal-card p,
.legal-card li {
  color: #554e57;
  line-height: 1.7;
}

.legal-card a {
  color: #b30c55;
  font-weight: 800;
}

@media (max-width: 780px) {
  .account-layout {
    display: block;
  }

  .account-intro {
    min-height: auto;
    padding: 26px 22px 32px;
  }

  .account-brand img {
    height: 92px;
    width: 92px;
  }

  .account-intro-copy {
    margin-top: 24px;
  }

  .account-intro h1 {
    font-size: 36px;
  }

  .account-intro-copy > p:not(.account-eyebrow) {
    font-size: 15px;
    margin: 18px 0;
  }

  .account-support {
    margin-top: 24px;
  }

  .account-panel {
    padding: 32px 20px calc(38px + env(safe-area-inset-bottom, 0px));
  }

  .account-back {
    margin-bottom: 28px;
  }
}

@media (max-width: 520px) {
  .account-field-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
