/* Dev Portal — Dark Blue Glass, same tokens as GLUI static/css/index.css */
:root {
  --bg-gradient: radial-gradient(circle at top center, #1e293b 0%, #0f172a 100%);
  --glass-surface: rgba(30, 41, 59, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-highlight: rgba(255, 255, 255, 0.05);

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.4);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.2);
  --success: #10b981;
  --warning: #f59e0b;

  --radius: 16px;
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html { background: #0f172a; }
* { margin: 0; padding: 0; box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background: var(--bg-gradient); color: var(--text-main); min-height: 100vh;
       -webkit-font-smoothing: antialiased; }
a { color: #93c5fd; }

/* ---------- centered single-card pages (login, portal) ---------- */
.center-page { display: flex; flex-direction: column; align-items: center; justify-content: center;
               min-height: 100vh; padding: 24px 16px; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-weight: 800;
         font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
              background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; font-size: 0.95rem;
              box-shadow: 0 6px 18px var(--primary-glow); }
.card { width: 100%; max-width: 440px; background: var(--glass-surface);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--glass-border); border-radius: var(--radius);
        box-shadow: var(--shadow-glass); padding: 28px; }
.card h1 { font-size: 1.35rem; font-weight: 750; margin-bottom: 6px; letter-spacing: -0.01em; }
.card .sub { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; margin-bottom: 22px; }
.foot { margin-top: 18px; color: var(--text-faint); font-size: 0.8rem; text-align: center; }
.foot a { color: var(--text-muted); text-decoration: none; }
.foot a:hover { color: var(--text-main); }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.78rem; font-weight: 650; color: var(--text-muted);
               margin-bottom: 6px; }
.input { width: 100%; padding: 11px 13px; border-radius: 10px; font-size: 0.95rem;
         background: rgba(15, 23, 42, 0.6); border: 1px solid var(--glass-border); color: var(--text-main);
         transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.input.mono { font-family: var(--mono); font-size: 0.88rem; }
.hint { font-size: 0.76rem; color: var(--text-faint); margin-top: 5px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       padding: 10px 16px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
       font-size: 0.9rem; font-weight: 650; text-decoration: none; white-space: nowrap;
       transition: background-color 0.15s var(--ease-out), border-color 0.15s var(--ease-out),
                   transform 0.12s var(--ease-out), opacity 0.15s; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px var(--primary-glow); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-ghost { background: var(--glass-highlight); border-color: var(--glass-border); color: var(--text-main); }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.09); }
.btn-danger { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }
.btn-danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.2); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 18px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 6px 10px; font-size: 0.78rem; border-radius: 8px; }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35);
           border-top-color: #fff; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- messages ---------- */
.msg { display: none; margin-top: 14px; padding: 11px 13px; border-radius: 10px; font-size: 0.86rem;
       line-height: 1.45; }
.msg.show { display: block; animation: rise 0.22s var(--ease-out); }
.msg.error { background: var(--danger-glow); border: 1px solid rgba(239, 68, 68, 0.35); color: #fecaca; }
.msg.warn { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.35); color: #fde68a; }
.msg.info { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.35); color: #bfdbfe; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
        font-size: 0.72rem; font-weight: 700; border: 1px solid var(--glass-border); }
.chip.ok { color: #6ee7b7; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.3); }
.chip.off { color: #fca5a5; background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); }
.chip.muted { color: var(--text-muted); background: var(--glass-highlight); }
.chip.warn { color: #fcd34d; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); opacity: 0;
         pointer-events: none; padding: 10px 16px; border-radius: 10px; font-size: 0.86rem; z-index: 100;
         background: #1e293b; border: 1px solid var(--glass-border); box-shadow: var(--shadow-glass);
         transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(239, 68, 68, 0.5); color: #fecaca; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .btn:active:not(:disabled) { transform: none; }
}
