/* The sign-in pages: login, invite, forgot, set-password. Needs tokens.css
   first. No framework and no build step: this is the front door to every
   customer's negotiations, and it has to render before any bundle exists. */

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(32px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--ground-wash), var(--surface-ground);
}

.shell {
  width: 100%;
  max-width: 400px;
  animation: fade-up 320ms var(--ease-mat) both;
}

.shell > .brand-lockup {
  display: block;
  height: 72px;
  margin: 0 auto 26px;
  color: var(--color-chalk);
}

.card {
  padding: 28px;
  border-radius: var(--r-5);
  box-shadow: var(--shadow-md);
}

h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lede {
  margin: 6px 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-mute);
}

.field {
  margin-bottom: 16px;
}

/* 16px everywhere rather than only on touch: a sign-in field is typed into on
   every device, and it keeps iOS from zooming on focus. */
.field input {
  min-height: 44px;
  font-size: 16px;
}

.hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-faint);
}

form .con-btn {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  font-size: 15px;
}

form .error {
  margin-bottom: 16px;
}

/* What /auth/forgot answers replaces its form (auth.js), and it is good news. */
.card p.lede[role="status"] {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r-3);
  color: var(--color-good-ink);
  background: var(--color-good-tint);
  box-shadow: inset 0 0 0 1px var(--color-good-line);
  animation: fade-up var(--t-lift) var(--ease-mat) both;
}

.foot {
  margin: 20px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--color-faint);
}

.foot a {
  font-weight: 500;
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

/* On a phone the keyboard takes the lower half, so the card sits high. */
@media (max-width: 480px) {
  body {
    justify-content: flex-start;
    padding-top: max(40px, env(safe-area-inset-top));
  }

  .shell > .brand-lockup {
    height: 60px;
    margin-bottom: 22px;
  }

  .card {
    padding: 22px 18px;
  }
}
