:root {
  color-scheme: light;
  --account-ink: #17211d;
  --account-muted: #58645f;
  --account-green: #17352f;
  --account-green-deep: #0d2722;
  --account-cream: #f6f1e7;
  --account-paper: #fffdf8;
  --account-gold: #f2ad32;
  --account-coral: #bf4c38;
  --account-line: rgba(23, 53, 47, 0.16);
  --account-danger: #a82f24;
  --account-success: #176b4d;
  --account-shadow: 0 28px 80px rgba(13, 39, 34, 0.16);
  --account-radius: 28px;
  --account-font: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --account-display: Georgia, "Times New Roman", serif;
}

.account-entry,
.account-entry *,
.account-entry *::before,
.account-entry *::after {
  box-sizing: border-box;
}

.account-entry {
  min-width: 0;
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 10%, rgba(242, 173, 50, 0.18), transparent 26rem),
    radial-gradient(circle at 96% 90%, rgba(191, 76, 56, 0.1), transparent 24rem),
    var(--account-cream);
  color: var(--account-ink);
  font-family: var(--account-font);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

.account-entry a {
  color: inherit;
}

.account-skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 10;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--account-paper);
  color: var(--account-green-deep);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
  transition: transform 160ms ease;
}

.account-skip-link:focus-visible {
  transform: translateY(0);
}

.account-layout {
  display: grid;
  width: min(calc(100% - 40px), 1120px);
  min-height: calc(100dvh - 40px);
  margin: 20px auto;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--account-line);
  border-radius: var(--account-radius);
  background: var(--account-paper);
  box-shadow: var(--account-shadow);
}

.account-story {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--account-green-deep);
  color: #fff;
}

.account-story::before,
.account-story::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.account-story::before {
  width: 22rem;
  height: 22rem;
  inset: auto -10rem -10rem auto;
}

.account-story::after {
  width: 14rem;
  height: 14rem;
  inset: auto -6rem -6rem auto;
}

.account-brand,
.account-story__content,
.account-story__footer {
  position: relative;
  z-index: 1;
}

.account-brand {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.account-brand img {
  display: block;
  width: min(15.5rem, 100%);
  height: auto;
  max-height: 7.25rem;
  border-radius: inherit;
  object-fit: contain;
}

.account-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  color: var(--account-coral);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.account-story .account-eyebrow {
  color: #f7c35f;
}

.account-eyebrow::before {
  width: 2rem;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.account-story h1,
.account-panel h2 {
  margin: 0;
  font-family: var(--account-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}

.account-story h1 {
  max-width: 10ch;
  color: #fff;
  font-size: clamp(2.45rem, 6vw, 4.65rem);
}

.account-story__lede {
  max-width: 35rem;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.account-trust-list {
  display: grid;
  margin: 1.65rem 0 0;
  padding: 0;
  gap: 0.75rem;
  list-style: none;
}

.account-trust-list li {
  position: relative;
  padding-left: 1.55rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.93rem;
}

.account-trust-list li::before {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  inset: 0.38rem auto auto 0;
  border: 2px solid var(--account-gold);
  border-radius: 50%;
  content: "";
}

.account-story__footer {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.87rem;
}

.account-story__footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 750;
  text-underline-offset: 0.22em;
}

.account-panel {
  display: grid;
  min-width: 0;
  align-content: center;
  padding: clamp(2rem, 6vw, 5.25rem);
  background: var(--account-paper);
}

.account-panel__inner {
  width: min(100%, 31rem);
  margin-inline: auto;
}

.account-panel h2 {
  color: var(--account-green-deep);
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.account-intro {
  margin: 0.85rem 0 1.65rem;
  color: var(--account-muted);
  text-wrap: pretty;
}

.account-form {
  display: grid;
  gap: 1rem;
}

.account-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.account-field__label {
  color: var(--account-green-deep);
  font-size: 0.88rem;
  font-weight: 800;
}

.account-field input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(23, 53, 47, 0.24);
  border-radius: 13px;
  background: #fff;
  color: var(--account-ink);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease,
    background-color 160ms ease;
}

.account-field input::placeholder {
  color: #7d8782;
}

.account-field input:hover {
  border-color: rgba(23, 53, 47, 0.42);
}

.account-field input:focus-visible {
  border-color: var(--account-green);
  outline: none;
  box-shadow: 0 0 0 4px rgba(23, 53, 47, 0.13);
}

.account-hint {
  margin: -0.25rem 0 0;
  color: var(--account-muted);
  font-size: 0.82rem;
}

.account-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  color: var(--account-muted);
  font-size: 0.88rem;
}

.account-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.18rem 0 0;
  accent-color: var(--account-green);
}

.account-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.15rem;
}

.account-button {
  display: inline-flex;
  min-width: 10.5rem;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.78rem 1.15rem;
  border: 1px solid var(--account-green);
  border-radius: 999px;
  background: var(--account-green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease,
    background-color 160ms ease;
}

.account-button:hover {
  background: var(--account-green-deep);
  box-shadow: 0 10px 24px rgba(13, 39, 34, 0.2);
  transform: translateY(-1px);
}

.account-button:active {
  transform: translateY(0);
}

.account-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.account-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: 6px;
  color: var(--account-green-deep);
  font-weight: 750;
  text-decoration-color: rgba(23, 53, 47, 0.38);
  text-underline-offset: 0.22em;
}

.account-link:hover {
  text-decoration-color: currentColor;
}

.account-button:focus-visible,
.account-link:focus-visible,
.account-brand:focus-visible,
.account-check input:focus-visible {
  outline: 3px solid var(--account-gold);
  outline-offset: 3px;
}

.account-message {
  min-height: 1.6rem;
  margin-top: 0.9rem;
  color: var(--account-ink);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.account-message:empty {
  visibility: hidden;
}

.account-message.ok {
  color: var(--account-success);
}

.account-message.err {
  color: var(--account-danger);
}

.account-next {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--account-line);
  border-radius: 16px;
  background: #f8f4ea;
  color: var(--account-muted);
  font-size: 0.9rem;
}

.account-next p {
  margin: 0;
}

.account-next p + p {
  margin-top: 0.35rem;
}

.account-footer {
  margin-top: 1.2rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--account-line);
  color: var(--account-muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.account-footer p {
  margin: 0;
}

.account-footer p + p {
  margin-top: 0.4rem;
}

.account-footer .account-link,
.account-check .account-link,
.account-next .account-link {
  min-height: auto;
}

.account-panel [hidden] {
  display: none !important;
}

.account-providers {
  display: grid;
  gap: 0.65rem;
  margin-block: 1.25rem;
}

.account-providers .account-button {
  width: 100%;
  min-width: 0;
  min-height: 48px;
}

.account-button--google {
  border: 1px solid var(--account-line);
  background: #fff;
  color: #17211d;
}

.account-button--google:hover {
  background: #f0f3f1;
  color: #17211d;
}

.account-button--apple {
  border: 1px solid #17211d;
  background: #17211d;
  color: #fff;
}

.account-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--account-muted);
  font-size: 0.85rem;
}

.account-divider::before,
.account-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--account-line);
}

@media (max-width: 860px) {
  .account-layout {
    width: min(calc(100% - 28px), 42rem);
    grid-template-columns: minmax(0, 1fr);
  }

  .account-story {
    min-height: auto;
    gap: 1.6rem;
    padding: clamp(1.6rem, 7vw, 2.7rem);
  }

  .account-story h1 {
    max-width: 14ch;
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .account-trust-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-story__footer {
    display: none;
  }

  .account-panel {
    padding: clamp(1.6rem, 7vw, 3rem);
  }
}

@media (max-width: 600px) {
  .account-layout {
    width: min(calc(100% - 20px), 36rem);
    min-height: calc(100dvh - 20px);
    margin-block: 10px;
    border-radius: 20px;
  }

  .account-story,
  .account-panel {
    padding: 1.35rem;
  }

  .account-brand img {
    width: min(12rem, 100%);
    max-height: 5.5rem;
  }

  .account-story__lede {
    margin-top: 0.8rem;
  }

  .account-trust-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    margin-top: 1rem;
  }

  .account-panel h2 {
    font-size: clamp(1.9rem, 10vw, 2.5rem);
  }

  .account-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-button,
  .account-actions .account-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 340px) {
  .account-layout {
    width: calc(100% - 12px);
    margin-block: 6px;
  }

  .account-story,
  .account-panel {
    padding: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-entry *,
  .account-entry *::before,
  .account-entry *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
