/* Shared with home.css's :root tokens -- this file adds the components
   used by login.html and index.html (the "app" onboarding page), so both
   match the homepage's brand instead of the old dark theme. */

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------------------------------------------------------- top bar (app) */
.topbar { max-width: 640px; width: 100%; margin: 0 auto; padding: 24px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-brand img { width: 32px; height: 32px; object-fit: contain; }
.topbar-brand span { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 19px; color: var(--ink); }
.ghost-btn { background: none; border: 1px solid var(--border); color: var(--ink-soft); font-size: 13.5px; font-weight: 500; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.ghost-btn:hover { border-color: var(--leaf); color: var(--leaf-dark); }

/* ---------------------------------------------------------------- auth */
.auth-page { align-items: center; justify-content: center; padding: 40px 20px; flex: 1; }
.auth-hero { text-align: center; max-width: 420px; margin: 0 auto 28px; }
.auth-hero img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 14px; }
.auth-hero .wordmark { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 26px; color: var(--ink); margin-bottom: 10px; }
.auth-hero .tagline { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px; max-width: 380px; width: 100%; margin: 0 auto; box-shadow: 0 20px 50px -24px rgba(23,48,31,0.18); }
.auth-card h2 { font-size: 19px; margin-bottom: 20px; text-align: center; }
.auth-card input {
  width: 100%; padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; border: 1px solid var(--border);
  font-size: 14.5px; font-family: "Inter", sans-serif; background: var(--paper); color: var(--ink);
}
.auth-card input:focus { outline: none; border-color: var(--leaf); background: #fff; }
.primary-btn { width: 100%; background: var(--leaf); color: #fff; font-weight: 600; font-size: 15px; padding: 13px; border: none; border-radius: 999px; cursor: pointer; margin-top: 4px; }
.primary-btn:hover { background: var(--leaf-dark); }
.primary-btn:disabled { opacity: 0.6; cursor: default; }
.primary-btn.done-btn { background: var(--paper-2); color: var(--leaf-dark); }
.error { font-size: 13.5px; color: #c0392b; margin-top: 10px; min-height: 1px; line-height: 1.5; }
.toggle { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; }

/* "Continue with Google" -- outlined rather than filled, so the green
   primary button stays the one obvious action for people who already have a
   password. Google's brand guidelines want their mark unmodified on a white
   or light surface, which is what this is. */
.google-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 14.5px; font-family: "Inter", sans-serif;
  padding: 12px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
}
.google-btn:hover { border-color: var(--leaf); background: var(--paper); }
.google-btn:disabled { opacity: 0.6; cursor: default; }
.google-btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-soft); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.auth-loading { text-align: center; color: var(--ink-soft); font-size: 14px; padding: 8px 0 14px; }
.toggle a { color: var(--leaf-dark); font-weight: 600; cursor: pointer; }
.hidden { display: none !important; }

/* --------------------------------------------------------------- onboard */
.onboard { max-width: 560px; width: 100%; margin: 0 auto; padding: 40px 24px 30px; flex: 1; }
.onboard-intro { margin-bottom: 30px; }
.onboard-intro h1 { font-size: 28px; margin-bottom: 8px; }
.muted { color: var(--ink-soft); font-size: 14.5px; }

.steps { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.step.done { background: var(--paper-2); border-color: var(--paper-2); }
.step-badge {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--sky-light); color: #fff;
  font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: center;
}
.step.done .step-badge { background: var(--leaf); }
.step-title { font-weight: 600; font-size: 15.5px; margin-bottom: 4px; }
.step-desc { color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; margin-bottom: 12px; }
.step.done .step-desc { margin-bottom: 0; }
.code-hint { margin-top: 12px; font-size: 13px; color: var(--ink-soft); background: var(--paper); border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
.code-hint strong { color: var(--leaf-dark); }

.safety-note { font-size: 13px; color: var(--ink-soft); background: var(--paper-2); border-radius: 14px; padding: 16px; line-height: 1.6; }

/* --------------------------------------------------------------- footer */
.page-footer { text-align: center; padding: 30px 24px 40px; }
.page-footer .wordmark { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 1.2px; color: var(--ink-soft); }
.page-footer .by-line { font-size: 12px; color: var(--ink-soft); opacity: 0.7; margin-top: 3px; }

/* ---------------------------------------------------------- account panel */
.account-panel { margin: 34px 0 8px; }
.account-panel h2 { font-size: 17px; margin-bottom: 12px; }
.account-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--paper-2); border: 1px solid var(--border);
  border-radius: 14px; margin-bottom: 8px;
}
.account-label { color: var(--ink-soft); font-size: 12.5px; }
.account-value { font-weight: 600; font-size: 14.5px; margin-top: 2px; word-break: break-all; }

/* Destructive actions get their own colour, deliberately outside the amber
   palette -- amber is the brand's "look here" colour and would read as an
   invitation. This is the only red in the product. */
.danger-zone {
  margin-top: 22px; padding: 18px 20px;
  border: 1px solid #f0d3d0; border-radius: 16px; background: #fdf6f5;
}
.danger-head { font-weight: 700; font-size: 15px; color: #a8332a; margin-bottom: 6px; }
.danger-copy { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; margin: 0 0 14px; }
.danger-copy strong { color: var(--ink); }
.danger-btn {
  background: #c0392b; color: #fff; border: none; padding: 10px 18px;
  border-radius: 999px; font-weight: 600; font-size: 13.5px; cursor: pointer;
  font-family: "Inter", sans-serif;
}
.danger-btn:hover { background: #a8332a; }
.danger-btn:disabled { background: #e0bab5; cursor: default; }
.delete-confirm { margin-top: 16px; }
.delete-confirm input {
  width: 100%; max-width: 240px; background: #fff; border: 1px solid #e6c6c2;
  border-radius: 10px; padding: 10px 12px; font-size: 14px; letter-spacing: .06em;
  font-family: "Inter", sans-serif; color: var(--ink);
}
.delete-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------- user chip */
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 9px; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--amber); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; font-family: "Baloo 2", sans-serif;
  text-transform: uppercase;
}
.user-chip-name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.user-chip-email { color: var(--ink-soft); font-size: 11.5px; line-height: 1.2; }
/* The email is redundant next to the name on a phone, and the chip is the
   first thing that overflows a 375px topbar. */
@media (max-width: 560px) { .user-chip-text { display: none; } }

/* Used by login.html, admin.html and feedback.html and defined in none of
   them -- those buttons have never actually been full-width. Found by
   checking every class on a new page against the stylesheets. */
.primary-btn.full, .google-btn.full { width: 100%; display: block; }
.google-btn.full { display: flex; }
