/* ============================================================
   Healthvocate — Global Stylesheet
   ============================================================ */

:root {
  --ink:   #0f1c2e;
  --slate: #2c4a6e;
  --sky:   #4a90c4;
  --ice:   #dbeeff;
  --frost: #f4f8fc;
  --gold:  #c9924a;
  --rule:  #d0dde8;
  --body:  #3a4f66;
  --error: #c0392b;
  --success: #27ae60;
  --warning: #e67e22;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--frost);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Auth Layout ─────────────────────────────────────────────── */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.auth-card {
  background: #fff;
  border: 1.5px solid var(--rule);
  width: 100%;
  max-width: 420px;
  padding: 40px;
}

.auth-logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
}

.auth-logo span { color: var(--sky); }

.auth-tagline {
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: block;
}

.auth-heading {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}

.form-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--rule);
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus { border-color: var(--sky); }
.form-input.is-invalid { border-color: var(--error); }

.form-hint {
  font-size: 12px;
  color: var(--body);
  margin-top: 4px;
}

.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 11px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.88; text-decoration: none; }

/* Baseline interactive feedback for any <button> or .btn — catches
   classless inline-styled buttons (e.g. the Delete button on /documents)
   and ensures keyboard-focused buttons get the same visual state mouse
   users see on hover. Class-specific :hover rules (.btn-back, .btn-add,
   etc.) compose on top of this without conflict. */
button:not(:disabled),
.btn:not(:disabled) {
    transition: opacity 0.15s, border-color 0.15s, background 0.15s, color 0.15s;
}
button:not(:disabled):hover,
button:not(:disabled):focus-visible,
.btn:not(:disabled):focus-visible {
    opacity: 0.88;
}
button:not(:disabled):active,
.btn:not(:disabled):active {
    opacity: 0.78;
}

.btn-primary {
  background: var(--sky);
  color: #fff;
  width: 100%;
  text-align: center;
  padding: 13px 24px;
  font-size: 14px;
}

.btn-secondary {
  background: transparent;
  color: var(--sky);
  border: 1.5px solid var(--sky);
}

/* ── Flash Messages ──────────────────────────────────────────── */
.flash {
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  border-left: 4px solid;
}

.flash-error   { background: #fdf0ef; color: var(--error);   border-color: var(--error);   }
.flash-success { background: #edfaf1; color: var(--success); border-color: var(--success); }
.flash-warning { background: #fef9ef; color: var(--warning); border-color: var(--warning); }
.flash-info    { background: var(--ice); color: var(--slate); border-color: var(--sky);    }

/* ── Auth Footer Links ───────────────────────────────────────── */
.auth-links {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--body);
  text-align: center;
}

.auth-links a { color: var(--sky); }

/* ── Trial Banner ────────────────────────────────────────────── */
.trial-banner {
  background: var(--ink);
  color: #e8f0f8;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
}

.trial-banner strong { color: #fff; }
