@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500&display=swap');

:root {
  /* Canvas & surfaces */
  --bg:        #f6f7fb;
  --surface:   #ffffff;
  --border:    #e4e7ec;
  --border-soft: #edeef3;

  /* Text */
  --text:      #101828;
  --text-dim:  #667085;
  --text-faint:#98a2b3;

  /* Brand accent — indigo */
  --accent:      #4f46e5;
  --accent-hover:#4338ca;
  --accent-soft: #eef2ff;
  --accent-ring: rgba(79, 70, 229, 0.15);

  /* Status */
  --ok:      #067647;
  --ok-bg:   #ecfdf3;
  --ok-bd:   #abefc6;
  --err:     #b42318;
  --err-bg:  #fef3f2;
  --err-bd:  #fda29b;

  --radius:  12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(16,24,40,0.04), 0 12px 32px -8px rgba(16,24,40,0.10);

  --font:       'Inter', -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font);
  --font-mono:  'JetBrains Mono', Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1100px 500px at 15% -10%, #eef1ff 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 10%, #f3f6ff 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- Card ---------------- */

.card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}

/* ---------------- Brand mark ---------------- */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #4338ca 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 10px -2px rgba(79,70,229,0.45);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ---------------- Headings ---------------- */

.card h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text);
}

.card .subtitle {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 26px;
}

/* ---------------- Form fields ---------------- */

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #d0d5dd;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.field input::placeholder { color: var(--text-faint); }

.field input:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

/* ---------------- Button ---------------- */

.btn {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16,24,40,0.05), 0 0 0 0 var(--accent-ring);
  transition: background .15s, box-shadow .15s, transform .05s;
}
.btn:hover   { background: var(--accent-hover); }
.btn:active  { transform: translateY(1px); }
.btn:focus-visible { box-shadow: 0 0 0 4px var(--accent-ring); }

/* ---------------- Links ---------------- */

.links {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
}
.links a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.links a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ---------------- Alerts ---------------- */

.alert {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-err { background: var(--err-bg); border-color: var(--err-bd); color: var(--err); }
.alert-ok  { background: var(--ok-bg);  border-color: var(--ok-bd);  color: var(--ok); }
.alert a   { color: inherit; text-decoration: underline; font-weight: 600; }

.g-recaptcha { margin-bottom: 20px; }

.center-text { text-align: center; }
.center-text .brand { justify-content: center; }

.mono { font-family: var(--font-mono); }

/* ---------------- Dashboard key-value rows (index.php) ---------------- */

.kv {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px;
}
.kv:last-child { border-bottom: none; }
.kv span:first-child { color: var(--text-dim); }
.kv span:last-child   { font-family: var(--font-mono); font-size: 13px; color: var(--text); }
a {
    text-decoration: none;
}