/* ==========================================================================
   Auth — the sign-in page, and the session chrome in the top bar
   ========================================================================== */

.auth-body {
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: var(--plane-sunken);
}

.auth {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth__card { padding: 26px 26px 22px; box-shadow: var(--shadow-pop); }

.auth__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }

.auth__title { font-size: var(--t-h2); margin-bottom: 4px; }

.auth__lede {
  margin: 0 0 20px;
  color: var(--ink-secondary);
  font-size: var(--t-body);
}

.auth__form { display: flex; flex-direction: column; gap: 14px; }

.auth__submit { width: 100%; height: 36px; margin-top: 4px; }

.auth__error {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--critical);
  border-radius: var(--r-md);
  background: var(--critical-soft);
  color: var(--critical-text);
  font-size: var(--t-body);
}

.auth__foot {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: var(--t-small);
}

.auth__legal { margin: 0; text-align: center; color: var(--ink-muted); font-size: var(--t-small); }

.auth__foot a, .auth__legal a { color: var(--accent); }

/* -- session chrome in the app shell --------------------------------------- */

.session {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  margin-left: 2px;
  border-left: 1px solid var(--rule);
}

.session__who {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  max-width: 190px;
}

.session__email {
  font-size: var(--t-small);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session__scope {
  font-size: var(--t-micro);
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session__role {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* The whole shell stays hidden until the session is known, so a signed-out
   browser never sees a flash of the application chrome. */
.is-booting .topbar,
.is-booting .view { visibility: hidden; }

@media (max-width: 720px) {
  .session__who { display: none; }
}
