:root {
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #080a09;
  color: #f2f3ec;
  font:
    16px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
.auth-header {
  max-width: 1140px;
  margin: auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.auth-brand {
  color: #ffe000;
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
}
.auth-back {
  font-size: 13px;
  color: #9ba39d;
  text-decoration: none;
}
.auth-main {
  width: min(1060px, 100%);
  min-height: calc(100svh - 90px);
  margin: auto;
  padding: 48px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 440px;
  align-items: center;
  gap: 84px;
}
.auth-story {
  position: relative;
}
.auth-art {
  width: 156px;
  height: 156px;
  object-fit: contain;
  margin: 0 0 26px -10px;
  filter: drop-shadow(0 0 45px #e6c70018);
}
.auth-eyebrow {
  color: #bcb16b;
  font:
    11px/1.5 ui-monospace,
    monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.auth-story h2 {
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.07;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0;
}
.auth-story h2 span {
  color: #ffe000;
}
.auth-story > p:last-child {
  max-width: 330px;
  color: #a0a8a1;
  font-size: 17px;
  margin: 24px 0 0;
}
.auth-card {
  position: relative;
  background: linear-gradient(145deg, #171b15, #111411 45%);
  border: 1px solid #30372c;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 20px 70px #0004;
}
.auth-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 26px;
  border: 1px solid #ffe00040;
  border-radius: 12px;
  color: #ffe000;
  background: #ffe0000a;
}
.auth-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}
.lede {
  color: #a6afa7;
  font-size: 15px;
  margin: 0 0 28px;
}
label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #dbe0d8;
}
input[type="email"],
input[type="text"] {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #424a3f;
  border-radius: 11px;
  background: #090c09;
  color: #f3f5ef;
  font: inherit;
  font-size: 16px;
  margin-bottom: 14px;
}
input::placeholder {
  color: #798277;
}
:focus-visible {
  outline: 2px solid #ffe000;
  outline-offset: 4px;
}
input:focus-visible {
  outline-offset: 2px;
}
.auth-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 11px;
  background: #ffe000;
  color: #121409;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}
.auth-submit:hover {
  background: #ffeb59;
}
.auth-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
/* Website Sign in with Apple (server/routes/webApple.ts): Apple's white button. */
.auth-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  border-radius: 11px;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.auth-apple:hover {
  background: #ececec;
}
.auth-apple svg {
  width: 16px;
  height: 19px;
  fill: currentColor;
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #909a90;
  font-size: 12px;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #2a302b;
}
.auth-note {
  text-align: center;
  color: #909a90;
  font-size: 12px;
  margin: 12px 0 0;
}
.auth-switch {
  text-align: center;
  color: #a6afa7;
  font-size: 13px;
  margin: 26px 0 0;
}
.auth-switch a {
  color: #edf0e6;
  font-weight: 600;
}
.auth-help {
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid #293127;
  font-size: 12px;
  color: #98a394;
}
.auth-help summary {
  cursor: pointer;
  width: fit-content;
}
.auth-help p {
  margin: 10px 0 0;
}
.error {
  color: #ffafa5;
  background: #43201d55;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 0 0 18px;
}
[hidden] {
  display: none !important;
}
.auth-email {
  overflow-wrap: anywhere;
  color: #f0eaa7;
  font-weight: 600;
  font-size: 17px;
  margin: -12px 0 24px;
}
.auth-instructions {
  font-size: 14px;
  color: #a6afa7;
  margin: 0 0 24px;
}
.auth-return {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #dbe0d8;
}
@media (max-width: 850px) {
  .auth-main {
    gap: 36px;
    grid-template-columns: 1fr 400px;
  }
  .auth-story h2 {
    font-size: 40px;
  }
}
@media (max-width: 700px) {
  .auth-header {
    padding: 22px;
  }
  .auth-main {
    min-height: auto;
    display: block;
    max-width: 484px;
    padding: 24px 22px 48px;
  }
  .auth-story {
    padding: 0 4px 28px;
  }
  .auth-art {
    width: 68px;
    height: 68px;
    margin: 0 0 14px;
  }
  .auth-eyebrow,
  .auth-story > p:last-child {
    display: none;
  }
  .auth-story h2 {
    font-size: 34px;
  }
  .auth-card {
    padding: 28px 24px;
    border-radius: 20px;
  }
  .auth-mark {
    margin-bottom: 20px;
  }
  h1 {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .auth-submit {
    transition: background 0.15s;
  }
}
.signup-terms {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 22px 0;
  font-size: 14px;
  font-weight: 400;
}
.signup-terms input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 3px 0 0;
}
.signup-terms a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
