@font-face {
  font-family: "Inter Variable";
  src: url("/brochad/assets/fonts/inter-latin-variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #090909;
  --muted: #777570;
  --line: #d7d5cf;
  --paper: #fffefa;
  font-family: "Inter Variable", Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 43%, rgba(255,255,255,.98), rgba(255,255,255,.68) 38%, rgba(248,246,239,.2)),
    var(--paper);
  color: var(--ink);
  font-optical-sizing: auto;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 108px;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.wordmark {
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .86em;
  font-kerning: normal;
  text-rendering: geometricPrecision;
  transform: scaleX(.87) scaleY(1.08);
  transform-origin: left center;
}

.pilot-chrome {
  display: flex;
  align-items: center;
  gap: 30px;
}

.pro-mark {
  font-size: 11px;
  line-height: 1;
  font-weight: 640;
  letter-spacing: .3em;
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #050505;
  color: white;
  font-size: 13px;
  font-weight: 550;
}

.login-document {
  width: min(550px, calc(100vw - 40px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(118px, 14vh, 154px) 0 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chad-mark {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: contain;
}

.brand-name {
  margin-top: 15px;
  font-size: 13px;
  line-height: 1;
  font-weight: 680;
  letter-spacing: 1.39em;
  font-kerning: normal;
  text-rendering: geometricPrecision;
  transform: translateX(.55em) scaleX(.87) scaleY(1.08);
  transform-origin: center;
}

.identity-rule {
  width: 31px;
  height: 1px;
  margin: 26px 0 0;
  background: #202020;
}

.login-copy { margin-top: 37px; }

.login-copy h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: -.032em;
}

.login-copy p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .055em;
}

.login-form {
  position: relative;
  width: 100%;
  height: 56px;
  margin-top: 48px;
  border: 1px solid #72726f;
  border-radius: 5px;
  background: rgba(255,255,255,.8);
  box-shadow: 0 10px 28px rgba(23,21,16,.035), 0 1px 3px rgba(23,21,16,.025);
  display: flex;
  align-items: center;
  transition: border-color .15s, box-shadow .15s;
}

.login-form:focus-within {
  border-color: #363635;
  box-shadow: 0 12px 32px rgba(23,21,16,.05), 0 0 0 1px rgba(0,0,0,.025);
}

.login-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.login-form input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 66px 0 17px;
  color: var(--ink);
  font: 390 13px/1 "Inter Variable", Inter, Arial, sans-serif;
  letter-spacing: -.012em;
}

.login-form input::placeholder { color: #777; opacity: 1; }

.login-form button {
  position: absolute;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 4px;
  background: #050505;
  color: white;
  display: grid;
  place-items: center;
  font: 400 19px/1 "Inter Variable", Inter, Arial, sans-serif;
  cursor: pointer;
  transition: transform .15s, background .15s;
}

.login-form button:hover { background: #222; }
.login-form button:active { transform: translateY(1px); }

.error {
  min-height: 17px;
  margin: 16px 0 0;
  color: #8b3028;
  font-size: 11px;
  line-height: 1.5;
}

.site-footer {
  position: fixed;
  inset: auto 20px 30px;
  text-align: center;
  white-space: nowrap;
  color: #222;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 720px) {
  .masthead { height: 62px; padding: 0 20px; }
  .wordmark { font-size: 12px; }
  .pro-mark { display: none; }
  .avatar { width: 32px; height: 32px; }
  .login-document { width: calc(100vw - 40px); padding-top: 94px; padding-bottom: 54px; }
  .chad-mark { width: 112px; height: 112px; }
  .brand-name { font-size: 11px; }
  .login-copy { margin-top: 33px; }
  .login-copy h1 { font-size: 26px; }
  .login-form { height: 58px; margin-top: 40px; }
  .login-form input { font-size: 15px; }
  .login-form button { width: 42px; height: 42px; }
  .site-footer { bottom: 22px; font-size: 8px; letter-spacing: .28em; }
}

@media (max-height: 700px) and (min-width: 721px) {
  .login-document { padding-top: 84px; }
  .login-copy { margin-top: 28px; }
  .login-form { margin-top: 34px; }
}
