/* Luxde · base visual compartida por el portal y la app */
:root {
  --bg: #05060F; --bg2: #080A18; --card: #0B0E20; --card2: #0F1229; --line: #1E2348; --line2: #252B55; --line3: #34408F;
  --tx: #E6E8F5; --tx2: #C9CDE6; --mut: #B4B9D6; --dim: #8A90B0; --white: #fff;
  --acc1: #4D6BFF; --acc2: #7B4DFF; --link: #A9B8FF; --sel: #121A3A;
  --cyan: #22D3EE; --cyan2: #67E8F9; --cyanbg: #0E2A30;
  --ok: #6EE7A0; --okbg: #10291C; --warn: #FFC960; --warnbg: #2A2410; --amber: #FFB020;
  --bad: #FF8A8A; --badbg: #2E1218; --pur: #C4B5FD; --purbg: #1E1440;
  --r: 16px; --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: "Space Grotesk", Inter, system-ui, sans-serif; --mono: ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--tx); font-family: var(--font); font-size: 15px; }
a { color: var(--link); text-decoration: none; } a:hover { color: #D6DEFF; }
h1, h2, h3 { font-family: var(--head); color: var(--white); margin: 0; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); } .mut { color: var(--mut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { min-height: 42px; padding: 0 18px; border-radius: 21px; border: 1px solid var(--line3); background: transparent;
  color: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; white-space: nowrap; }
.btn:hover { background: #121734; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-p { border: 0; background: linear-gradient(90deg, var(--acc1), var(--acc2)); }
.btn-p:hover { filter: brightness(1.1); background: linear-gradient(90deg, var(--acc1), var(--acc2)); }
.btn-ok { border: 0; background: var(--okbg); color: var(--ok); }
.btn-warn { border-color: #4A3A12; color: var(--warn); }
.btn-bad { border-color: #5A2230; color: var(--bad); }
.btn-s { min-height: 36px; padding: 0 14px; font-size: 13px; }

.in { min-height: 44px; width: 100%; padding: 0 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2);
  color: var(--white); font-size: 14px; }
textarea.in { padding: 12px 14px; min-height: 110px; resize: vertical; }
.in:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--tx2); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 10px; font-size: 12px; font-weight: 600;
  white-space: nowrap; }
.t-ok { background: var(--okbg); color: var(--ok); } .t-warn { background: var(--warnbg); color: var(--warn); }
.t-cyan { background: var(--cyanbg); color: var(--cyan2); } .t-gray { background: #1A1E3A; color: var(--tx2); }
.t-pur { background: var(--purbg); color: var(--pur); } .t-bad { background: var(--badbg); color: var(--bad); }

.bar { height: 8px; border-radius: 4px; background: #161A38; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--cyan); border-radius: 4px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; max-width: min(92vw, 520px);
  padding: 14px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.toast.ok { background: var(--okbg); color: var(--ok); border: 1px solid #1E5A3A; }
.toast.bad { background: var(--badbg); color: var(--bad); border: 1px solid #5A2230; }

.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo .mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--acc1), var(--acc2));
  display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; position: relative; }
.logo .mark::after { content: ""; position: absolute; right: 5px; bottom: 6px; width: 5px; height: 5px; border-radius: 3px; background: var(--amber); }
.logo b { font-family: var(--head); font-size: 17px; display: block; line-height: 1.1; }
.logo small { font-size: 11px; letter-spacing: .12em; color: var(--cyan); font-weight: 600; }

.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(700px 420px at 80% -10%, rgba(34,211,238,.18), transparent 70%), var(--bg); }
.login form { width: min(400px, 100%); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.err { color: var(--bad); font-size: 14px; min-height: 20px; }
