/* ============================================================================
   /signin — artboard 1a of docs/design/"Annota.dc.html". The parts (brand,
   fields, buttons, status, the drawing detail) come from design-system.css;
   what is here is this page's LAYOUT and the two things only it has.

   The page owns its whole paint: it links neither styles.css nor
   the editor's stylesheet, so nothing it does can reach in and
   repaint a control.
   ========================================================================== */

.ds-signin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ---- Left: the plate ------------------------------------------------------
   Paper, not surface. */

.ds-signin-plate {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 44px;
  background: var(--ds-paper);
  overflow: hidden;
}

.ds-pitch {
  max-width: 400px;
}

.ds-pitch-headline {
  margin: 0;
  font: var(--ds-text-display);
  letter-spacing: var(--ds-tracking-section);
  color: var(--ds-ink);
}

.ds-pitch-lead {
  margin: 14px 0 0;
  font: var(--ds-text-helper);
  color: var(--ds-ink-secondary);
}

/* ---- Right: the panel ---------------------------------------------------- */

.ds-signin-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 92px;
}

.ds-signin-column {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.ds-title {
  margin: 0;
  font: var(--ds-text-page-title);
  letter-spacing: var(--ds-tracking-title);
  color: var(--ds-ink);
}

.ds-subtitle {
  margin: 9px 0 0;
  font: var(--ds-text-helper);
  color: var(--ds-ink-tertiary);
}

.ds-signin .ds-form {
  margin-top: 34px;
}

.ds-signin .ds-submit {
  margin-top: 10px;
}

.ds-alternatives {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}

.ds-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font: var(--ds-text-meta);
  letter-spacing: 0.1em;
  color: var(--ds-ink-meta);
}

.ds-rule::before,
.ds-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ds-hairline);
}

/* Blocked, not hidden: the guide's rule is that a way in the product will
   offer stays on the page at ink .22 with the reason stated beneath it. */
.ds-provider {
  height: var(--ds-height-hero-action);
  border: 1px solid var(--ds-hairline-strong);
  border-radius: var(--ds-radius-well);
  background: var(--ds-surface);
  font-family: var(--ds-font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-ink-blocked);
  cursor: default;
}

.ds-provider-reason {
  margin: 0;
  font: var(--ds-text-helper);
  font-size: 12px;
  color: var(--ds-ink-tertiary);
}

/* The field label carries an action on the right — "Forgot?" belongs beside
   the thing it is about, not adrift at the bottom of the form. */
.ds-field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ds-field-aside {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--ds-font-sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ds-accent);
  cursor: pointer;
}

.ds-field-aside:hover {
  color: var(--ds-accent-hover);
}

/* Stated before it can be failed. */
.ds-rule-note {
  margin: -4px 0 0;
  font: var(--ds-text-helper);
  font-size: 12px;
  color: var(--ds-ink-tertiary);
}

.ds-input-code {
  font: var(--ds-text-quantity);
  font-size: 16px;
  letter-spacing: 0.24em;
}

.ds-step-back {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  font: var(--ds-text-helper);
  color: var(--ds-ink-tertiary);
  cursor: pointer;
}

.ds-step-back:hover {
  color: var(--ds-ink);
}

.ds-signin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--ds-hairline);
  font: var(--ds-text-helper);
  color: var(--ds-ink-secondary);
}

.ds-signin-footer a {
  font-weight: 500;
  color: var(--ds-accent);
  text-decoration: none;
}

.ds-signin-footer a:hover {
  color: var(--ds-accent-hover);
}

/* ---- Narrow -------------------------------------------------------------
   The form is the errand, so it comes first and the plate follows as a strip.
   The illustration is the first thing to go: it is the joke, not the door. */

@media (max-width: 900px) {
  .ds-signin {
    grid-template-columns: 1fr;
  }

  .ds-signin-panel {
    order: -1;
    padding: 40px 28px;
  }

  .ds-signin-column {
    max-width: none;
  }

  .ds-signin-plate {
    gap: 28px;
    padding: 32px 28px 40px;
  }
}

@media (max-width: 560px) {
  .ds-signin .ds-detail {
    display: none;
  }

  .ds-signin .ds-brand,
  .ds-signin-footer a {
    min-height: 40px;
  }

  .ds-signin-footer a {
    display: inline-flex;
    align-items: center;
  }

  .ds-signin .ds-input-bare,
  .ds-signin .ds-reveal,
  .ds-field-aside,
  .ds-step-back {
    min-height: 40px;
  }

  .ds-signin .ds-reveal {
    min-width: 40px;
  }

  .ds-signin .ds-input-group {
    height: auto;
    min-height: 48px;
  }

  .ds-signin-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
