@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --auth-bg: #f5f6f8;
  --auth-surface: #ffffff;
  --auth-ink: #111318;
  --auth-muted: #60656f;
  --auth-faint: #8b9099;
  --auth-line: #dfe2e7;
  --auth-line-strong: var(--auth-line);
  --auth-accent: #000000;
  --auth-accent-hover: #000000;
  --auth-accent-soft: #f2f2f2;
  --auth-danger: #a83e39;
  --auth-danger-soft: #f8e9e7;
  --auth-success: #315f4b;
  --auth-success-soft: #e6eee9;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { color-scheme: light; }

body.contractorarea-auth {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--auth-bg);
  color: var(--auth-ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

button { cursor: pointer; }

body.contractorarea-auth button,
body.contractorarea-auth input[type="button"],
body.contractorarea-auth input[type="submit"],
body.contractorarea-auth input[type="reset"],
body.contractorarea-auth .auth-btn-social,
body.contractorarea-auth .auth-btn-primary {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px !important;
  letter-spacing: 1.32px;
  text-transform: uppercase;
}

a { color: inherit; }

.hidden { display: none !important; }

.auth-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  place-items: center;
}

.auth-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-bg-blob {
  position: absolute;
  width: min(38rem, 65vw);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .52;
}

.auth-bg-blob--purple {
  top: -24rem;
  left: -20rem;
  background: #d9e3dc;
}

.auth-bg-blob--blue {
  right: -22rem;
  bottom: -28rem;
  background: #e4dfcf;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 48px 24px 64px;
}

.auth-shell-inner {
  width: min(100%, 440px);
  margin: 0 auto;
}

.auth-brand {
  display: flex;
  width: max-content;
  margin: 0 auto 38px;
  align-items: center;
  gap: 10px;
  color: var(--auth-ink);
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -.02em;
  text-decoration: none;
}

.auth-brand__wordmark {
  display: inline-flex;
  align-items: baseline;
  color: #000;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.auth-brand__wordmark strong { display: inline-flex; gap: .35em; margin-left: .35em; color: #626775; font: inherit; }
.auth-brand__wordmark strong::before { color: #fe5b2a; content: "/"; }

.auth-form,
.auth-form-wrap { width: 100%; }

.auth-heading {
  margin-bottom: 28px;
  text-align: center;
}

.auth-title {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(30px, 7vw, 38px);
  font-weight: 640;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.auth-subtitle {
  margin: 10px auto 0;
  max-width: 38rem;
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 1.55;
}

.auth-card {
  padding: 30px;
  border: 1px solid var(--auth-line);
  border-radius: 18px;
  background: var(--auth-surface);
  box-shadow: 0 1px 2px rgb(25 25 24 / 4%), 0 18px 48px rgb(25 25 24 / 6%);
}

.auth-social + .auth-social { margin-top: 10px; }

.auth-btn-social,
.auth-btn-primary {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.auth-btn-social {
  border: 1px solid var(--auth-line-strong);
  background: #fff;
  color: var(--auth-ink);
}

.auth-btn-social:hover { border-color: #000; background: #000; color: #fff; }

.auth-btn-social-icon,
.auth-btn-primary-icon,
.auth-input-suffix-icon { width: 20px; height: 20px; flex: 0 0 auto; }

.auth-divider {
  display: flex;
  margin: 22px 0;
  align-items: center;
  gap: 14px;
}

.auth-divider-line { height: 1px; flex: 1; background: var(--auth-line); }

.auth-divider-text {
  color: var(--auth-faint);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-alert-error,
.auth-alert-success {
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.45;
}

.auth-alert-error { border-color: #e4bab6; background: var(--auth-danger-soft); color: #842e2a; }
.auth-alert-success { border-color: #b9c9bf; background: var(--auth-success-soft); color: #244738; }

.auth-form-fields { display: grid; gap: 20px; }
.auth-field { display: grid; gap: 8px; }

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

.auth-label {
  color: #45443f;
  font-size: 13px;
  font-weight: 620;
}

.auth-label-link,
.auth-alt-link {
  color: var(--auth-accent);
  font-size: 13px;
  font-weight: 620;
  text-underline-offset: 3px;
}

.auth-label-link:hover,
.auth-alt-link:hover { color: var(--auth-accent-hover); }

.auth-input-wrap { position: relative; }

.auth-input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--auth-line-strong);
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--auth-ink);
  font-size: 15px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.auth-input-password { padding-right: 48px; }
.auth-input::placeholder { color: #9c9a92; }

.auth-input:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgb(49 95 75 / 12%);
}

.auth-input--error { border-color: var(--auth-danger); }

.auth-input-suffix-btn {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: translateY(-50%);
  place-items: center;
}

.auth-input-suffix-btn:hover { background: #f0efea; }

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

.auth-btn-primary {
  border: 1px solid #000;
  background: #000;
  color: #fff;
}

.auth-btn-primary:hover { border-color: #000; background: #fff; color: #000; }
.auth-btn-primary:hover .auth-btn-primary-icon { filter: invert(1); }
.auth-btn-primary:active { transform: translateY(1px); }

.auth-btn-primary:focus-visible,
.auth-btn-social:focus-visible,
.auth-input-suffix-btn:focus-visible,
.auth-alt-link:focus-visible,
.auth-brand:focus-visible {
  outline: 3px solid rgb(49 95 75 / 22%);
  outline-offset: 2px;
}

.auth-alt { margin-top: 24px; text-align: center; }
.auth-alt-text { margin: 0; color: var(--auth-muted); font-size: 14px; }

.auth-check-email { text-align: center; }

.auth-check-email-icon-wrap {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--auth-accent-soft);
  place-items: center;
}

.auth-check-email-icon { width: 26px; height: 26px; }
.auth-check-email-email { color: var(--auth-ink); overflow-wrap: anywhere; }
.auth-page--confirm-email .auth-card { text-align: center; }

@media (max-width: 520px) {
  .auth-shell { padding: 32px 16px 48px; }
  .auth-brand { margin-bottom: 30px; }
  .auth-card { padding: 24px 20px; border-radius: 14px; }
}

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