/* ARTEMIS user dashboard — shared CSS. No inline styles allowed (CSP strict). */
:root {
  --primary: #c7172b;
  --primary-dark: #9c0f1f;
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-input: #232342;
  --text: #f0f0f5;
  --text-muted: #999;
  --border: #2d2d4d;
  --success: #19c37d;
  --warning: #f59e0b;
  --error: #ef4444;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.shell {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.card {
  width: 100%; max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.brand {
  text-align: center;
  margin-bottom: 24px;
}
.brand h1 {
  margin: 0; font-size: 28px; letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary), #ff4d62);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand .tagline {
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 2px; text-transform: uppercase;
  margin-top: 4px;
}
h2 { font-size: 18px; margin: 0 0 4px; }
.muted { color: var(--text-muted); font-size: 13px; margin: 0 0 24px; }

/* Form */
.field { margin-bottom: 16px; }
label {
  display: block; font-size: 13px; color: var(--text-muted);
  margin-bottom: 6px; font-weight: 500;
}
input[type=text], input[type=email], input[type=password], input[type=tel] {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px; border-radius: 6px;
  font-size: 14px; font-family: inherit;
}
input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(199,23,43,0.18);
}
.check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 12px;
}
.check input { margin-top: 3px; }
button.primary {
  width: 100%;
  background: var(--primary); color: #fff;
  padding: 12px 16px; border: none; border-radius: 6px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
button.primary:hover { background: var(--primary-dark); }
button.primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Messages */
.msg {
  padding: 10px 14px; border-radius: 6px;
  font-size: 13px; margin-bottom: 16px;
}
.msg.error { background: rgba(239,68,68,0.12); color: var(--error); border: 1px solid rgba(239,68,68,0.3); }
.msg.success { background: rgba(25,195,125,0.12); color: var(--success); border: 1px solid rgba(25,195,125,0.3); }
.msg.info { background: rgba(245,158,11,0.12); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }

/* Footer link */
.footer-link {
  text-align: center; margin-top: 20px;
  font-size: 13px; color: var(--text-muted);
}

/* Password strength hints */
.pw-hints {
  font-size: 12px; color: var(--text-muted);
  margin-top: 6px; line-height: 1.7;
}
.pw-hints li { list-style: none; padding-left: 16px; position: relative; }
.pw-hints li::before {
  content: "·"; position: absolute; left: 4px;
  color: var(--text-muted);
}
.pw-hints li.ok { color: var(--success); }
.pw-hints li.ok::before { content: "✓"; color: var(--success); }
.pw-hints li.bad::before { content: "✗"; color: var(--error); }

/* Utility classes for non-inline-style HTML */
.mt-24 { margin-top: 24px !important; }
.text-center { text-align: center !important; }
.text-success { color: var(--success) !important; }
.btn-block-large { display: block; text-align: center; padding: 12px; border-radius: 6px; background: var(--primary); color: #fff; text-decoration: none; font-weight: 600; }
.btn-inline-large { display: inline-block; padding: 10px 20px; border-radius: 6px; background: var(--primary); color: #fff; text-decoration: none; }
