/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Colours from Lisa's interactive prototype (docs/spec/2026-10-31_vfp_update).
   A practice's own colours will come from its settings later (#53). */
:root {
  --navy: #16445c;
  --teal: #1695a9;
  --ink: #193746;
  --bg: #f3f8f9;
  --pale: #e6f4f5;
  --line: #d5e4e9;
  --warn: #ad4d24;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: var(--navy);
  color: #fff;
}
.app-header__practice { font-weight: 600; }
.app-header__sign-out { margin: 0; }
.app-header .link-button { color: #fff; }

.page { max-width: 480px; margin: 0 auto; padding: 16px; }

.brand-logo { display: flex; justify-content: center; padding: 28px 16px 4px; padding-top: max(28px, env(safe-area-inset-top)); }
.brand-logo img { width: 260px; height: auto; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
}
.card h1 { margin-top: 0; font-size: 1.4rem; color: var(--navy); }

.form { display: grid; gap: 8px; }
.form label { font-weight: 600; margin-top: 8px; }
.form input[type="email"], .form input[type="password"], .form input[type="text"] {
  font: inherit;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
}
.form input:focus { outline: 3px solid var(--pale); border-color: var(--teal); }

.button {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}
.link-button { background: none; border: 0; padding: 4px; font: inherit; text-decoration: underline; cursor: pointer; }

.flash { padding: 12px 14px; border-radius: 10px; margin: 0 0 12px; }
.flash--notice { background: var(--pale); }
.flash--alert { background: #fbeee8; color: var(--warn); border: 1px solid #f0cdbd; }

.small { font-size: 0.9rem; }
.empty-state { color: #4b6573; }
.steps { padding-left: 1.2rem; margin-bottom: 4px; }
.qr-box { display: flex; justify-content: center; padding: 12px; }
.qr { width: 200px; height: 200px; }
.setup-key, .recovery-codes code { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.05em; }
.recovery-codes { columns: 2; padding-left: 1.4rem; }
