@font-face {
  font-family: "Haffer";
  src: url("/fonts/Haffer-Regular.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Haffer Variable";
  src: url("/fonts/HafferVF.ttf") format("truetype-variations");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Bogue";
  src: url("/fonts/Bogue-Thin.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

:root {
  color-scheme: dark;
  --page: #111113;
  --surface: rgba(18, 18, 20, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.065);
  --border: rgba(255, 255, 255, 0.18);
  --border-strong: rgba(255, 255, 255, 0.3);
  --text: #f4f4f4;
  --muted: rgba(244, 244, 244, 0.66);
  --quiet: rgba(244, 244, 244, 0.44);
  --orange: #f4824d;
  --red: #f42919;
  --danger: #ff9a86;
  --focus: #ffd3bf;
  font-family: "Haffer", Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(8, 8, 9, 0.14), rgba(8, 8, 9, 0.3)),
    url("/fs.cdn.poly.app/assets/landingpage/ec628e3/public/images/hero-loading.webp") center / cover no-repeat fixed;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--page);
  background: var(--text);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.login-page {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 12px 28px;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.72), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: "Haffer Variable", "Haffer", sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.brand img {
  display: block;
  width: 32px;
  height: 34px;
  object-fit: contain;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.back-link:hover {
  color: var(--text);
}

.login-main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24vh 24px 5vh;
}

.login-surface {
  width: min(440px, 100%);
  min-width: 0;
  padding: 28px 30px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--orange);
  font-family: "Haffer Variable", "Haffer", sans-serif;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(244, 130, 77, 0.12);
}

.login-heading h1 {
  max-width: 390px;
  margin: 0;
  font-family: "Haffer Variable", "Haffer", sans-serif;
  font-size: 34px;
  font-weight: 520;
  line-height: 1.02;
  letter-spacing: 0;
}

.login-page:not(.signup-page) .login-heading h1 {
  white-space: nowrap;
}

.login-heading h1 em {
  font-family: "Bogue", Georgia, serif;
  font-style: normal;
  font-weight: 300;
}

.login-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

form {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 7px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

label {
  color: var(--text);
  font-size: 13px;
  font-weight: 620;
}

.password-toggle {
  padding: 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--text);
}

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: 0;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

input::placeholder {
  color: var(--quiet);
}

input:hover {
  border-color: var(--border-strong);
}

input:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(255, 211, 191, 0.12);
}

input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 15px;
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.25;
}

.form-status {
  min-height: 18px;
  margin-top: -4px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.35;
}

.verification-notice {
  margin-top: 18px;
  padding: 11px 13px;
  color: #bdf2ce;
  font-size: 12px;
  background: rgba(112, 211, 145, 0.1);
  border: 1px solid rgba(112, 211, 145, 0.24);
  border-radius: 6px;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  color: #fff;
  font-weight: 680;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  box-shadow:
    2px 3px 8px rgba(0, 0, 0, 0.3),
    inset 1px 1px 3px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: filter 150ms ease, transform 150ms ease;
}

.submit-button:hover:not(:disabled) {
  filter: brightness(1.08);
}

.submit-button:active:not(:disabled) {
  transform: translateY(1px);
}

.submit-button:disabled {
  cursor: wait;
  filter: saturate(0.55);
  opacity: 0.78;
}

.account-note {
  margin-top: 22px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  border-top: 1px solid var(--border);
}

.support-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.support-copy a {
  color: var(--text);
  font-weight: 650;
}

.support-copy {
  margin-top: 12px;
  color: var(--quiet);
  text-align: center;
}

@media (min-width: 701px) and (max-height: 800px) {
  .login-main {
    padding-top: 21vh;
    padding-bottom: 2vh;
  }

  .login-surface {
    padding: 18px 24px;
  }

  .login-heading h1 {
    font-size: 29px;
  }

  .login-heading > p:last-child {
    margin-top: 8px;
    font-size: 13px;
  }

  form {
    gap: 9px;
    margin-top: 14px;
  }

  input {
    height: 44px;
  }

  .field-error {
    min-height: 13px;
  }

  .submit-button {
    min-height: 46px;
  }

  .account-note {
    margin-top: 12px;
    padding-top: 11px;
  }

  .support-copy {
    margin-top: 8px;
  }
}

@media (max-width: 700px) {
  body {
    background:
      linear-gradient(rgba(7, 7, 8, 0.08), rgba(7, 7, 8, 0.34)),
      url("/fs.cdn.poly.app/assets/landingpage/ec628e3/public/images/hero-loading-mobile.webp") center top / cover no-repeat fixed;
  }

  .site-header {
    height: 66px;
    padding: 10px 16px;
  }

  .brand {
    font-size: 19px;
  }

  .brand img {
    width: 28px;
    height: 30px;
  }

  .back-link {
    font-size: 0;
  }

  .back-link span {
    font-size: 22px;
  }

  .login-main {
    place-items: start center;
    min-height: 100dvh;
    padding: 90px 14px max(28px, env(safe-area-inset-bottom));
  }

  .login-surface {
    padding: 24px 20px 22px;
    background: rgba(16, 16, 18, 0.96);
  }

  .login-heading h1 {
    font-size: clamp(21.5px, 6.9vw, 28px);
  }
}

@media (max-width: 380px) {
  .login-main {
    padding-top: 84px;
  }

  .login-surface {
    padding-inline: 16px;
  }

  .login-heading h1 {
    font-size: clamp(21.5px, 6.9vw, 26px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
