:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #253e35;
  background: #f5f3eb;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(16px, 5vw, 48px);
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 26%, #fffdf5, transparent 70%);
}
.card {
  width: min(100%, 32rem);
  overflow: hidden;
  border: 1px solid #d9ded2;
  border-radius: 20px;
  background: #fffef9;
  box-shadow: 0 18px 50px -30px #394b3980;
}
.landscape {
  aspect-ratio: 3.4;
  background:
    radial-gradient(ellipse 85% 106% at 100% 158%, #557a68 99%, transparent 100%),
    radial-gradient(ellipse 96% 122% at -8% 151%, #84a187 99%, transparent 100%),
    radial-gradient(ellipse 98% 126% at 97% 164%, #afbd9f 99%, transparent 100%),
    radial-gradient(circle at 67% 31%, #efbc75 0 6.3%, transparent 6.6%),
    linear-gradient(174deg, #e2e9dd, #f8ead3 74%);
}
.welcome .landscape { aspect-ratio: 2.7; }
.invitation { position: relative; }
.invitation .landscape { aspect-ratio: 4.8; }
.invitation h1 { font-size: clamp(2.1rem, 5vw, 2.8rem); }
.language-control { position: absolute; inset-block-start: 12px; inset-inline-end: 14px; }
.language-control span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.language-control select {
  appearance: none; min-height: 36px; padding: 5px 30px 5px 12px; border: 1px solid #a9bdb1;
  border-radius: 7px; background: #fffef9; color: #285d4b; font: 600 .88rem/1.5 Inter, system-ui, sans-serif; cursor: pointer;
}
.language-control::after { content: ""; position: absolute; right: 12px; top: calc(50% - 4px); width: 6px; height: 6px; border: solid #285d4b; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.language-control select:hover { background: #edf4ee; }
.language-control select:focus-visible, #state:focus-visible { outline: 3px solid #9e5f29; outline-offset: 3px; }
@media (forced-colors: active) {
  .language-control select { appearance: auto; padding-right: 5px; }
  .language-control::after { display: none; }
}
.content { padding: clamp(24px, 6vw, 44px); }
.welcome .content { text-align: center; }
h1 {
  margin: 0;
  font: 500 clamp(2.1rem, 6vw, 3.25rem)/1.1 Baskervville, Georgia, serif;
  letter-spacing: -.035em;
}
.content p { margin: 14px 0 0; color: #4d5f55; overflow-wrap: anywhere; }
#account-field { display: grid; gap: .4rem; margin-top: 20px; font-weight: 600; }
#account { width: 100%; min-height: 44px; padding: .5rem .75rem; border: 1px solid #899e91; border-radius: 7px; font: inherit; font-weight: 400; }
#account:focus-visible { outline: 3px solid #9e5f29; outline-offset: 2px; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 24px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: white;
  background: #285d4b;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.action::after {
  content: "";
  width: .43em;
  height: .43em;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}
.action:hover { background: #1d4839; }
.action:focus-visible { outline: 3px solid #9e5f29; outline-offset: 4px; }
.action:disabled { background: #50675d; cursor: wait; }
.action:disabled::after {
  width: .85em;
  height: .85em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .action:disabled::after { animation: turn 1s linear infinite; }
  @keyframes turn { to { transform: rotate(405deg); } }
}
#state[data-phase]:not([data-phase="ready"]) { padding: 12px 15px; border-inline-start: 3px solid; border-radius: 0 7px 7px 0; }
#state:is([data-phase="incomplete"], [data-phase="expired"], [data-phase="failed"], [data-phase="retry"]) { background: #faf1e9; color: #713c2d; }
#state[data-phase="waiting"] { background: #f0f4f1; color: #445b51; }
#state:is([data-phase="opened"], [data-phase="redirect"]) { background: #e9f5ee; color: #265d43; }
[hidden] { display: none !important; }
@media (max-width: 28rem) {
  .action { width: 100%; }
}

.welcome a { color: inherit; }
