:root {
  color-scheme: dark;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: #010c1b;
}

body {
  overflow-x: hidden;
}

.landing {
  position: relative;
  width: 100%;
  min-height: 100svh;
  background: #010c1b url("/assets/landing-background-generated.png") center / cover no-repeat;
}

.landing::after {
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: #010c1b url("/assets/sign-in-background.png") center / cover no-repeat;
  transition: opacity 700ms ease;
}

body.auth-open .landing::after { opacity: 1; }

.header,
.hero {
  position: absolute;
}

.header {
  top: 4.8vh;
  left: 9.8%;
  right: 10.3%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #c69d71;
  font-family: "Instrument Serif", serif;
  font-size: 1.274vw;
  font-weight: 400;
  line-height: 1.875;
  white-space: nowrap;
}

.sign-in {
  appearance: none;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.links {
  display: flex;
  gap: 4.1vw;
}

.hero {
  top: calc(57vh - 40px);
  left: 8.9%;
  color: #c69d71;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}

.hero h1,
.hero p {
  margin: 0;
  font-weight: 400;
}

.auth-dialog {
  width: min(886px, calc(100vw - 32px));
  height: 383px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 17px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.01);
  box-shadow: none;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.auth-dialog::backdrop { background: transparent; }
.auth-card { position: relative; width: 475px; margin: 0 auto; padding-top: 78px; font-family: Arial, sans-serif; }
.auth-card h2 { margin: 0; font-size: 35px; font-weight: 400; }
.auth-subtitle { margin: 2px 0 38px; font-size: 15px; }
.auth-close { position: absolute; top: 14px; right: 18px; border: 0; color: #fff; background: transparent; font-size: 28px; cursor: pointer; }
.auth-form { display: grid; gap: 15px; }
.auth-row { display: grid; grid-template-columns: 62px 1fr; gap: 16px; height: 50px; }
.provider-tile, .field-wrap { border-radius: 6px; }
.provider-tile { border: 1px solid #403e39; color: #171719; background: transparent; font: 700 28px Arial, sans-serif; cursor: pointer; transition: background 160ms ease; }
.provider-tile.apple:hover { background: #d9d9d9; }
.provider-tile.google { color: #4285f4; font-size: 26px; }
.provider-tile.google:hover { background: #d9d9d9; }
.field-wrap { position: relative; display: flex; align-items: center; border: 1px solid #403e39; color: #f5e5d7; }
.auth-row:first-child .field-wrap { border: 0; background: #d9d9d9; color: #483d33; }
.field-icon { width: 62px; text-align: center; font-size: 24px; }
.auth-input { width: 100%; height: 48px; border: 0; outline: 0; padding: 0 56px 0 0; color: inherit; background: transparent; font: 500 15px Arial, sans-serif; }
.auth-input::placeholder { color: currentColor; opacity: 1; }
.provider-hover-label { position: absolute; left: 62px; opacity: 0; color: #483d33; font: 500 15px Arial, sans-serif; pointer-events: none; transition: opacity 120ms ease; }
.auth-row:has(.provider-tile:hover) .auth-input, .auth-row:has(.provider-tile:hover) .field-icon { opacity: 0; }
.auth-row:has(.provider-tile:hover) .provider-hover-label { opacity: 1; }
.submit-arrow { position: absolute; right: 0; width: 50px; height: 48px; border: 0; color: #b3a79b; background: transparent; font-size: 29px; cursor: pointer; }
.forgot-password { display: block; margin: 10px auto 0; border: 0; color: rgba(255,255,255,.82); background: transparent; font: 13px Arial, sans-serif; cursor: pointer; }
.auth-message { min-height: 18px; margin: 10px 0 0; text-align: center; font-size: 14px; }
.auth-message[data-error="true"] { color: #ffb3a7; }

.hero h1 {
  font-size: 6.741vw;
  line-height: 1.3;
}

.hero p {
  margin-left: 2.071vw;
  margin-top: -0.5vw;
  font-size: 1.168vw;
  line-height: 1.318;
  transform: translateY(-5px);
}

@media (max-width: 640px) {
  .header {
    font-size: 12px;
  }

  .links {
    gap: 4.5vw;
  }

  .hero h1 {
    font-size: max(40px, 6.741vw);
  }

  .hero p {
    font-size: max(10px, 1.168vw);
  }

  .auth-dialog { height: auto; min-height: 383px; }
  .auth-card { width: min(475px, calc(100% - 44px)); padding: 64px 0 34px; }
}
