/* Pure White Studios Staff PWA — base theme.
   Design tokens lifted from website/styles/theme.css for visual consistency
   with the customer site. */

:root {
  --navy:       #1B2D4F;
  --navy-light: #2a4270;
  --bg:         #F2F2F0;
  --white:      #FFFFFF;
  --text:       #1B2D4F;
  --muted:      #5a6a80;
  --border:     #d8d8d4;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Jost', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── UTILITIES ── */
.muted { color: var(--muted); }
.error-msg {
  color: #b00020;
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
  max-width: 320px;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover:not(:disabled) { background: var(--navy-light); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-text {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 12px;
}
.btn-text:hover { color: var(--navy); }

/* ── LOADING STATE (shared) ── */
#view-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

/* ── LOGIN PAGE ── */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 24px;
}
.login-logo {
  height: 80px;
  width: auto;
}
.login-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--navy);
}
.login-btn {
  min-width: 200px;
}

/* ── APP CHROME (authenticated pages) ── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-logo {
  height: 32px;
  width: auto;
}
.app-main {
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.app-main h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
}
