/* Mimir LIMS – portal styles v3.2 */
:root {
  --petrol: #0d4a55;
  --petrol-d: #08343c;
  --teal: #1d8a8a;
  --mint: #e3f1ef;
  --ink: #17252a;
  --muted: #5b6b70;
  --line: #d7e0e2;
  --bg: #f5f7f8;
  --white: #fff;
  --err: #a8322d;
  --err-bg: #fbecea;
  --ok: #1f6b45;
  --ok-bg: #e6f4ec;
  --radius: 6px;
  --font: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
a { color: var(--teal); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.2; color: var(--petrol-d); }
h1 { font-size: 2.1rem; margin: 0 0 .6rem; }
h2 { font-size: 1.35rem; }
code { background: var(--mint); padding: 1px 5px; border-radius: 3px; font-size: .9em; }

/* topbar */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--petrol); }
.brand-mark { width: 34px; height: 34px; }
.brand-text { font-size: 1.15rem; letter-spacing: .2px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink); font-size: .95rem; }
.nav a:hover { color: var(--teal); }

/* buttons */
.btn { display: inline-block; background: var(--petrol); color: var(--white) !important; border: 0; border-radius: var(--radius);
  padding: 11px 20px; font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--petrol-d); }
.btn-small { padding: 7px 14px; font-size: .88rem; }
.btn-ghost { background: transparent; color: var(--petrol) !important; box-shadow: inset 0 0 0 1.5px var(--petrol); }
.btn-ghost:hover { background: var(--mint); }
.btn-block { width: 100%; margin-top: 18px; }

/* hero */
.hero { background: linear-gradient(135deg, var(--petrol-d), var(--petrol) 60%, #145f6a); color: var(--white); }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding: 72px 24px; align-items: center; }
.hero h1 { color: var(--white); font-size: 2.6rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem; color: #9fd3cf; margin: 0 0 12px; }
.lead { font-size: 1.07rem; color: inherit; opacity: .92; max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; }
.hero .btn { background: var(--white); color: var(--petrol) !important; }
.hero .btn:hover { background: var(--mint); }
.hero .btn-ghost { background: transparent; color: var(--white) !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 26px; }
.hc-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: .95rem; }
.hc-row strong { font-size: 1.15rem; }
.hc-bar { height: 6px; background: rgba(255,255,255,.15); border-radius: 3px; margin: 20px 0 10px; overflow: hidden; }
.hc-bar span { display: block; height: 100%; background: #6cc7bd; }
.hc-note { font-size: .8rem; opacity: .7; margin: 0; }

/* sections */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -36px; position: relative; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 24px; box-shadow: 0 2px 6px rgba(13,74,85,.05); }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }
.docs { padding: 44px 24px 60px; }
.doclist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 560px; }
.doclist a { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px; text-decoration: none; color: var(--ink); }
.doclist a:hover { border-color: var(--teal); }
.doc-ico { font: 700 .68rem var(--font); background: var(--err); color: #fff; border-radius: 3px; padding: 3px 6px; }

.page { padding: 56px 24px 72px; }
.page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.page .lead { color: var(--muted); opacity: 1; }
.facts { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin-top: 28px; }
.facts dt { font-weight: 600; color: var(--petrol); }
.facts dd { margin: 0; }
.checklist { padding-left: 18px; color: var(--muted); }
.checklist li { margin: 6px 0; }

/* forms */
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid #bccacd; border-radius: var(--radius); font: inherit; background: #fff; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(29,138,138,.35); border-color: var(--teal); }
input[type=file] { font: inherit; margin: 4px 0 18px; }
.form-card form .btn { margin-top: 18px; }
.pw { position: relative; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--teal);
  font: 600 .82rem var(--font); cursor: pointer; padding: 6px; }
.code-input { letter-spacing: 8px; font-size: 1.3rem; text-align: center; }

.alert { padding: 11px 14px; border-radius: var(--radius); font-size: .93rem; margin-bottom: 8px; }
.alert-error { background: var(--err-bg); color: var(--err); border: 1px solid #efc7c3; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe0cc; }

/* auth */
body.auth main { background: linear-gradient(180deg, var(--mint), var(--bg) 320px); }
.auth-wrap { min-height: calc(100vh - 68px - 120px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 32px;
  box-shadow: 0 10px 30px rgba(13,74,85,.08); }
.auth-head { border-bottom: 1px solid var(--line); margin-bottom: 14px; padding-bottom: 12px; }
.auth-head h1 { font-size: 1.45rem; margin: 0; }
.auth-head p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }
.auth-links { margin: 16px 0 0; font-size: .9rem; text-align: center; }
.auth-notice { margin: 18px 0 0; font-size: .78rem; color: var(--muted); text-align: center; }
.auth-version { font-size: .75rem; color: var(--muted); margin-top: 14px; }

/* error */
.error-page { padding: 90px 24px 110px; text-align: center; }
.error-code { font-size: 4.5rem; font-weight: 700; color: var(--line); margin: 0; line-height: 1; }
.error-page .lead { color: var(--muted); margin: 0 auto 26px; }

/* footer */
.footer { background: var(--petrol-d); color: #c4d8db; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding: 28px 24px; }
.footer strong { color: #fff; }
.footer-meta { text-align: right; }
.version { opacity: .7; }

@media (max-width: 820px) {
  .hero-inner, .page-grid, .services { grid-template-columns: 1fr; }
  .services { margin-top: 24px; }
  .nav a:not(.btn) { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}
