@font-face {
  font-family: Jost;
  src: url("/assets/fonts/jost-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f2ed;
  --panel: #fffaf6;
  --ink: #2c2029;
  --muted: #624c5b;
  --accent: #811356;
  --line: #ddcbd4;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: Jost, "Segoe UI", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  min-width: 0;
  margin: 0;
  background: radial-gradient(ellipse at top left, #f3e4e6 0%, var(--paper) 62%);
  color: var(--ink);
  font: 1rem/1.55 var(--body);
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(100% - 3rem, 77rem);
  min-height: 5.25rem;
  margin-inline: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  text-decoration: none;
}

.wordmark img {
  display: block;
}

.wordmark small, .wordmark strong {
  display: block;
}

.wordmark small {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.wordmark strong {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 650;
  line-height: 0.94;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2.5vw, 1.4rem);
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}

.back-link {
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 550;
}

.language {
  min-width: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 0.81rem;
  font-weight: 650;
}

.app-main {
  width: min(100% - 3rem, 77rem);
  margin: clamp(0.5rem, 3vw, 2.85rem) auto 3rem;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  background: var(--panel);
  box-shadow: 0 22px 55px rgba(69, 30, 51, 0.10);
}

.app-cover {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 31rem;
  isolation: isolate;
  background: #62432f;
  color: #fff9f3;
}

.app-cover picture, .app-cover img, .app-cover::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.app-cover picture {
  z-index: -2;
}

.app-cover img {
  object-fit: cover;
  object-position: 55% center;
}

.app-cover::after {
  z-index: -1;
  background: linear-gradient(180deg, transparent 32%, rgba(30, 13, 19, 0.89) 100%);
  content: "";
}

.cover-copy {
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.cover-copy h1, .account-panel h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.028em;
}

.cover-copy h1 {
  font-size: clamp(3rem, 6.2vw, 5.7rem);
}

.cover-copy p {
  max-width: 32ch;
  margin: 0.7rem 0 0;
  color: #fff3e7;
  font-size: 1.04rem;
}

.account-panel {
  display: grid;
  align-content: center;
  gap: 1.13rem;
  min-width: 0;
  padding: clamp(1.5rem, 5.1vw, 4.6rem);
}

.account-panel h2 {
  color: var(--accent);
  font-size: clamp(2.35rem, 4vw, 3.25rem);
}

.demo-note {
  justify-self: start;
  margin: 0;
  padding: 0.2rem 0.65rem;
  border-radius: 0.4rem;
  background: #f1e4ed;
  color: #6b224f;
  font-size: 0.82rem;
  font-weight: 650;
}

.panel-copy, .form-note {
  margin: 0;
  color: var(--muted);
}

.account-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.account-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 550;
  text-decoration: none;
}

.account-switch a[aria-current] {
  border-color: var(--accent);
  color: var(--accent);
}

.account-form, .form-field {
  display: grid;
}

.account-form {
  gap: 0.9rem;
}

.form-field {
  gap: 0.3rem;
}

.form-field label {
  font-weight: 600;
}

.form-field input {
  min-width: 0;
  min-height: 46px;
  padding: 0.55rem 0.8rem;
  border: 1px solid #b693a6;
  border-radius: 0.55rem;
  background: #fffdfa;
  color: inherit;
  font: inherit;
}

.form-field input[readonly] {
  border-color: var(--line);
  background: #f8eff2;
}

.form-field small {
  color: var(--muted);
}

.account-form .action {
  margin-top: 0.35rem;
}

.action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  justify-self: start;
  min-height: 48px;
  padding: 0.55rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf6;
  font: 600 1rem/1.25 var(--body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.action.secondary {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}

.form-error {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-inline-start: 2px solid #84243d;
  background: #f9e6e7;
  color: #672039;
}

.account-details {
  display: grid;
  gap: 0.65rem;
  margin: 0.25rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #faf2f3;
}

.account-details div {
  display: grid;
  grid-template-columns: minmax(6.5rem, auto) minmax(0, 1fr);
  gap: 0.65rem;
}

.account-details dt {
  font-weight: 600;
}

.account-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.leave-demo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.install-help {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.91rem;
}

.install-help summary {
  min-height: 44px;
  padding-block: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.install-help p {
  margin: 0 0 0.5rem;
}

@media (hover: hover) {
  .action:hover {
    background: #661246;
  }

  .action.secondary:hover, .language:hover {
    background: #f1e4ed;
  }

  .back-link:hover, .account-switch a:hover {
    color: var(--accent);
    text-decoration: underline;
  }
}

@media (max-width: 760px) {
  .app-header, .app-main {
    width: calc(100% - 2rem);
  }

  .app-shell {
    grid-template-columns: 1fr;
    border-radius: 1.2rem;
  }

  .app-cover {
    min-height: clamp(12rem, 40vw, 17rem);
  }

  .app-cover img {
    object-position: 62% 52%;
  }

  .cover-copy {
    padding: 1.4rem;
  }

  .account-panel {
    padding: 1.45rem;
  }

  .account-form .action {
    width: 100%;
  }
}

@media (max-width: 375px) {
  .app-header {
    gap: 0.5rem;
  }

  .header-nav {
    gap: 0.35rem;
  }

  .back-link {
    max-width: 6rem;
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .wordmark img {
    width: 38px;
    height: 38px;
  }
}

.login-method {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.login-method a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 550;
  text-decoration: none;
}

.login-method a[aria-current] {
  border-color: var(--accent);
  background: #f1e4ed;
}

@media (hover: hover) {
  .login-method a:hover {
    border-color: var(--accent);
    text-decoration: underline;
  }
}

.password-control {
  position: relative;
}

.password-control input {
  width: 100%;
  padding-inline-end: 3.25rem;
}

.password-toggle {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 1px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.password-toggle[hidden] {
  display: none;
}

.password-toggle:focus-visible {
  outline-offset: -3px;
}

.password-eye {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 75% 75%;
}

.password-eye::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.password-toggle[data-visible="true"] .password-eye::after {
  position: absolute;
  width: 23px;
  height: 2px;
  transform: rotate(-43deg);
  background: currentColor;
  box-shadow: 0 0 0 1px var(--panel);
  content: "";
}

.privacy-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.form-note {
  overflow-wrap: anywhere;
}

.privacy-content {
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--panel);
  overflow-wrap: anywhere;
}

.privacy-content h1,
.privacy-content h2 {
  color: var(--accent);
  font-family: var(--display);
  line-height: 1.08;
}

.privacy-content h1 {
  margin: 0;
  font-size: clamp(2.75rem, 5.5vw, 4.3rem);
}

.privacy-content h2 {
  margin: 1.7rem 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
}

.privacy-content p {
  max-width: 70ch;
  margin: 0.6rem 0;
}

@media (hover: hover) {
  .password-toggle:hover {
    background: #f1e4ed;
  }
}
