/* ============================================================================
 * Account layer - styles for the optional sign-in and backup.
 *
 * Loaded after assets/style.css. Everything here uses the same variables
 * the rest of the site uses, so the account panel looks like part of the
 * page rather than something bolted on.
 * ========================================================================== */

/* ------------------------------------------------------------ the chip
 * A small button in the top bar. It says whether the work is backed up,
 * because that is the one thing worth showing without being asked. */

.acct-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  min-width: 44px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.acct-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.acct-chip.on { color: var(--brand-2); border-color: var(--brand); background: var(--brand-soft); }
.acct-chip-icon { font-size: .95rem; line-height: 1; }

@media (max-width: 720px) {
  .acct-chip-text { display: none; }
  .acct-chip { padding: 6px 9px; }
}

/* ----------------------------------------------------------- the banner
 * A quiet line, only for a student with work and no account, and only
 * until they dismiss it. */

.acct-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 11px 16px;
  background: var(--brand-soft);
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
  color: var(--ink-2);
}
.acct-banner-text { flex: 1 1 320px; min-width: 0; }
.acct-banner-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acct-banner-no {
  font: inherit;
  font-size: .82rem;
  color: var(--ink-3);
  background: none;
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
  text-decoration: underline;
}
.acct-banner-no:hover { color: var(--ink); }

/* -------------------------------------------------------------- the tabs */

.acct-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px;
  background: var(--line-2);
  border-radius: 10px;
}
.acct-tab {
  flex: 1;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.acct-tab:hover { color: var(--ink); }
.acct-tab.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

.acct-pane.hidden { display: none; }

/* ------------------------------------------------------------- the form */

.acct-field { display: block; margin-bottom: 12px; }
.acct-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 5px;
}
.acct-field .setup-input { width: 100%; }

.acct-msg {
  min-height: 1.2em;
  margin: 10px 0 0;
  font-size: .88rem;
}
.acct-msg.bad { color: var(--hot); }
.acct-msg.good { color: var(--green); }
