/* DRiX Login. Readable first: nothing under 13px, labels 14px and 600 weight,
   every text colour at least 4.5:1 on the surface it sits on, no opacity fades. */
:root { --bg:#0a0e13; --card:#121820; --line:#3a4858; --ink:#f1f5f9; --soft:#c9d4e0; --brand:#5eb0ff; --bad:#ffb4b4; --good:#8ff0b0; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,sans-serif; }
.wrap { max-width: 900px; margin: 0 auto; padding: 40px 18px 90px; }
.wrap.narrow { max-width: 460px; }
h1 { font-size: 1.7rem; margin: 0 0 4px; }
h2 { font-size: 1.2rem; margin: 0 0 14px; }
.sub { color: var(--soft); font-size: 15px; margin: 0 0 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 16px; }
label { display:block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
label em { font-style: normal; font-weight: 400; color: var(--soft); }
input[type=text], input[type=email], input[type=password], input[type=url] { width:100%; background:#0a0e13; color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:11px 12px; font:inherit; margin-bottom:16px; }
input:focus { outline:2px solid var(--brand); border-color:var(--brand); }
button { background:var(--brand); color:#06101a; border:0; border-radius:8px; padding:12px 20px; font:inherit; font-weight:700; cursor:pointer; }
button:disabled { background:#4a5a6c; color:#e5ecf3; cursor:not-allowed; }
button.link { background:none; color:var(--brand); padding:0; font-weight:600; font-size:15px; text-decoration:underline; }
button.small { padding:7px 12px; font-size:14px; }
a { color: var(--brand); font-weight: 600; }
.first { background:#16212d; border:1px solid var(--line); border-radius:8px; padding:10px 12px; margin:0 0 16px; font-size:15px; color:var(--ink); }
.links { display:flex; gap:18px; flex-wrap:wrap; margin:16px 0 0; font-size:15px; }
.meta { color: var(--soft); font-size: 14px; margin: 0 0 14px; }
.msg { padding:12px 14px; border-radius:10px; margin-bottom:16px; font-size:15px; background:#16212d; border:1px solid var(--line); }
.msg.err { background:#3a1a1a; border-color:#c05050; color:var(--bad); }
.msg.ok { background:#12281b; border-color:#2f6a46; color:var(--good); }
.tiles { display:grid; gap:10px; }
.tile { display:flex; justify-content:space-between; align-items:center; gap:12px; border:1px solid var(--line); border-radius:10px; padding:14px 16px; text-decoration:none; color:var(--ink); }
a.tile:hover { border-color:var(--brand); }
.tile b { font-size:16px; }
.tile span { font-size:14px; font-weight:600; }
.tile .on { color:var(--good); }
.tile.off span { color:var(--soft); }
table { width:100%; border-collapse:collapse; font-size:15px; }
th { text-align:left; font-size:13px; font-weight:700; color:var(--soft); padding:8px 10px; border-bottom:1px solid var(--line); }
td { padding:10px; border-bottom:1px solid var(--line); vertical-align:middle; }
td label { display:inline-flex; align-items:center; gap:6px; margin:0 14px 0 0; font-weight:600; }
td input[type=checkbox] { width:18px; height:18px; }
.row { display:grid; grid-template-columns: 1fr 1.4fr 2fr auto; gap:10px; align-items:end; }
.row input { margin-bottom:0; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; } }
code { background:#0a0e13; border:1px solid var(--line); border-radius:6px; padding:2px 6px; font-size:14px; word-break:break-all; }
[hidden] { display:none !important; }
