/* ==========================================================================
   The redesign, for the sign-in page.

   One card on the soft ground the workspace sits on: the blush side carries
   the logo and the name, the white side the form, with a serif title and
   the black pill the rest of the redesign uses for its main button. On a
   phone the blush side sits on top.

   Loaded after login.css and redesign-base.css, and only overrides them.
   The colours go through login.css's own --gate-* names, so the page still
   works before the workspace knows who you are.
   ========================================================================== */

/* Both schemes, so this wins over login.css's own dark values too. */
:root:not([data-scheme="dark"]),
:root[data-scheme="dark"] {
  --gate-bg: var(--ground);
  --gate-panel: var(--bg);
  --gate-raised: var(--bg-panel);
  --gate-border: var(--edge);
  --gate-text: var(--text);
  --gate-dim: var(--text-dim);
  --gate-accent: var(--accent);
  --gate-shadow: var(--card-shadow);
}

body {
  font-family: var(--font);
  letter-spacing: 0.01em;
}

.gate {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  max-width: 840px;
  overflow: hidden;
  background: var(--gate-panel);
  border-radius: 34px;
  box-shadow: var(--gate-shadow);
}

/* The blush side. */
.gate-brand {
  grid-row: 1 / span 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 48px 32px;
  background: var(--blush);
  color: var(--blush-ink);
}
.gate-brand .logo-holder {
  margin-bottom: 18px;
}
.gate-brand .logo {
  max-width: 150px;
}
.gate-name {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0;
}
.gate-name::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 14px auto 0;
  background: currentColor;
}
.gate-sub {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.8;
}

/* The white side. */
.gate-form {
  grid-column: 2;
  padding: 48px 46px 8px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.gate-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
}
.gate-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 14px 0 26px;
  background: var(--gate-text);
}
.gate-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.gate-input {
  padding: 12px 16px;
  border-radius: 14px;
}
.gate-peek {
  border-radius: 999px;
}
.gate-go {
  height: 50px;
  margin-top: 8px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--ink-text);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gate-go:hover {
  background: var(--gate-accent);
  color: var(--accent-contrast);
  filter: none;
}
.gate-alt {
  height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gate-first {
  background: var(--tint-blush);
  border-color: transparent;
  border-radius: 14px;
}
.gate-error {
  border-radius: 14px;
}
.gate-foot {
  grid-column: 2;
  margin: 0;
  padding: 10px 46px 34px;
  text-align: left;
  font-size: 12px;
}

/* A phone: the blush side on top, everything in one column. */
@media (max-width: 720px) {
  body {
    padding: 14px;
  }
  .gate {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 28px;
  }
  .gate-brand {
    grid-row: auto;
    padding: 30px 24px 26px;
  }
  .gate-brand .logo {
    max-width: 96px;
  }
  .gate-name {
    font-size: 32px;
  }
  .gate-form,
  .gate-foot {
    grid-column: auto;
  }
  .gate-form {
    padding: 28px 24px 4px;
  }
  .gate-title {
    font-size: 30px;
  }
  .gate-foot {
    padding: 8px 24px 26px;
  }
}
