:root {
  color-scheme: dark;
  --auth-ground: #082d27;
  --auth-surface: #123d35;
  --auth-surface-hover: #18483e;
  --auth-text: #f5f6f1;
  --auth-muted: #9fb3aa;
  --auth-line: rgb(235 245 239 / 14%);
  --auth-lime: #b3ef45;
  --auth-lime-hover: #a6e23d;
  --auth-on-lime: #08231d;
  --auth-danger: #ffd0cb;
  /* Compatibility aliases for the password recovery pages while they share
     the same flat entry system. */
  --studio-ground: var(--auth-ground);
  --studio-panel: transparent;
  --studio-field: var(--auth-surface);
  --studio-paper: var(--auth-text);
  --studio-muted: var(--auth-muted);
  --studio-line: var(--auth-line);
  --studio-lime: var(--auth-lime);
  --studio-lime-hover: var(--auth-lime-hover);
  --studio-ink: var(--auth-on-lime);
}

* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  min-height: 100%;
  background: var(--auth-ground);
}
body {
  min-height: 100svh;
  margin: 0;
  background: var(--auth-ground);
  color: var(--auth-text);
  font-family: "Instrument Sans", "Instrument Sans Fallback", system-ui, sans-serif;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
.hidden {
  display: none !important;
}

.auth-entry-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 76px 24px 64px;
}
.auth-entry-language {
  position: fixed;
  z-index: 2;
  top: 22px;
  right: 24px;
  display: flex;
  gap: 2px;
}
.auth-entry-language button {
  min-width: 42px;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--auth-muted);
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}
.auth-entry-language button[aria-pressed="true"] {
  background: rgb(255 255 255 / 7%);
  color: var(--auth-text);
}
.auth-entry {
  width: min(100%, 360px);
  text-align: center;
}
.auth-entry-logo {
  position: relative;
  display: inline-block;
  margin-bottom: 38px;
  padding-right: 0.2em;
  color: var(--auth-text);
  font-family: "Space Grotesk", "Space Grotesk Fallback", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1;
  text-decoration: none;
}
.auth-entry-logo::after {
  position: absolute;
  top: -0.05em;
  right: 0;
  width: 0.18em;
  height: 0.18em;
  border-radius: 50%;
  background: #21a365;
  content: "";
}
.auth-entry h1 {
  margin: 0;
  font-family: "Space Grotesk", "Space Grotesk Fallback", system-ui, sans-serif;
  font-size: clamp(1.55rem, 5vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.auth-entry-lead {
  margin: 10px auto 26px;
  color: var(--auth-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.auth-entry-actions,
.auth-entry-form {
  display: grid;
  gap: 10px;
}
.auth-entry-email-options {
  margin-top: 10px;
}
.auth-entry-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--auth-surface);
  color: var(--auth-text);
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    color 140ms ease;
}
.auth-entry-button:hover {
  background: var(--auth-surface-hover);
}
.auth-entry-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.auth-entry-button-primary {
  background: var(--auth-lime);
  color: var(--auth-on-lime);
}
.auth-entry-button-primary:hover {
  background: var(--auth-lime-hover);
}
.auth-entry-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}
.auth-entry-button[aria-busy="true"] {
  cursor: wait;
}
.auth-entry-provider {
  justify-content: flex-start;
  padding: 0 16px;
  text-align: left;
}
.auth-entry-button-label {
  min-width: 0;
}
.auth-entry-button-status {
  margin-left: auto;
  color: var(--auth-muted);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.auth-entry-provider-unavailable {
  background: rgb(18 61 53 / 58%);
}
.auth-entry-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--auth-muted);
  font-size: 0.74rem;
}
.auth-entry-separator::before,
.auth-entry-separator::after {
  height: 1px;
  background: var(--auth-line);
  content: "";
}
.auth-entry-form {
  text-align: left;
}
.auth-entry-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-entry-form label {
  color: #dce7e1;
  font-size: 0.8rem;
  font-weight: 650;
}
.auth-entry-form input {
  width: 100%;
  min-height: 53px;
  border: 1px solid transparent;
  border-radius: 12px;
  outline: 0;
  background: var(--auth-surface);
  padding: 0 15px;
  color: var(--auth-text);
  font-size: 1rem;
  transition:
    border-color 140ms ease,
    background-color 140ms ease;
}
.auth-entry-form input::placeholder {
  color: #789087;
}
.auth-entry-form input:hover {
  background: var(--auth-surface-hover);
}
.auth-entry-form input:focus {
  border-color: var(--auth-lime);
}
.auth-entry-code {
  text-align: center;
  font-family: "Space Grotesk", "Space Grotesk Fallback", system-ui, sans-serif;
  font-size: 1.35rem !important;
  font-weight: 600;
  letter-spacing: 0.32em;
}
.auth-entry-link,
.auth-entry-switch a {
  color: var(--auth-text);
  font-weight: 650;
  text-decoration-color: rgb(245 246 241 / 40%);
  text-underline-offset: 4px;
}
.auth-entry-link {
  font-size: 0.76rem;
}
.auth-entry-secondary {
  margin-top: 18px;
  border: 0;
  background: transparent;
  color: var(--auth-muted);
  font-size: 0.82rem;
  cursor: pointer;
}
.auth-entry-dev-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--auth-muted);
  font-size: 0.68rem;
  line-height: 1;
}
.auth-entry-dev-label {
  opacity: 0.82;
}
.auth-entry-dev-actions {
  display: inline-flex;
  gap: 4px;
}
.auth-entry-dev-fill button {
  min-height: 26px;
  border: 1px solid var(--auth-line);
  border-radius: 7px;
  background: transparent;
  padding: 0 8px;
  color: var(--auth-text);
  font-size: 0.68rem;
  font-weight: 650;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease;
}
.auth-entry-dev-fill button:hover {
  border-color: rgb(245 246 241 / 24%);
  background: rgb(255 255 255 / 5%);
}
.auth-entry-switch,
.auth-entry-terms {
  margin: 24px auto 0;
  color: var(--auth-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}
.auth-entry-terms {
  max-width: 33rem;
}
.auth-entry-error,
.auth-entry-notice {
  margin-bottom: 16px;
  border-radius: 10px;
  padding: 11px 13px;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.4;
}
.auth-entry-error {
  background: #482824;
  color: var(--auth-danger);
}
.auth-entry-notice {
  background: rgb(255 255 255 / 7%);
  color: #dce8e1;
}
:where(a, button, input):focus-visible {
  outline: 3px solid var(--auth-lime);
  outline-offset: 3px;
}

@media (max-width: 540px) {
  .auth-entry-page {
    align-items: start;
    padding: 86px 20px 44px;
  }
  .auth-entry-language {
    top: 14px;
    right: 14px;
  }
  .auth-entry-logo {
    margin-bottom: 32px;
  }
  .auth-entry-dev-fill {
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-entry-button,
  .auth-entry-form input {
    transition-duration: 0.01ms;
  }
}
