/* matrix.css — тема Матрицы для роутер-портала */
:root, [data-theme=light], [data-theme=dark] {
  --background: transparent !important;
  --foreground: #00ff41 !important;
  --primary: #00ff41 !important;
  --primary-foreground: #001505 !important;
  --muted-foreground: #00a832 !important;
  --input: #0a5c22 !important;
  --border: #0a5c22 !important;
  --accent: #06301a !important;
  --accent-foreground: #00ff41 !important;
  --ring: #00ff41 !important;
  --custom-loading-bar: #00ff41 !important;
  --custom-icon: #00ff41 !important;
}
html, body { background: #000 !important; }
#zmx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#root { position: relative; z-index: 1; }

/* шрифт диалогов — как на cyberleek.org */
* { font-family: "Courier New", "Lucida Console", Monaco, monospace !important; }

/* текст и каретка в полях */
input { color: #00ff41 !important; caret-color: #00ff41 !important; }

/* убрать иконку пользователя и заголовок/приветствие на обеих стадиях */
[id$="-factor-stage"] div:has(> #UserSvg) { display: none !important; }
[id$="-factor-stage"] div:has(> h5) { display: none !important; }

/* убрать «Powered by Authelia» */
a[href="https://www.authelia.com"] { display: none !important; }

/* полупрозрачная подложка под текстом (обе стадии) */
[id$="-factor-stage"] > div > div {
  background: rgba(0, 10, 3, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 14px;
  padding: 4px 12px 16px;
}

/* карточка метода — плотнее и с зелёной рамкой */
#second-factor-stage div:has(> #one-time-password-method) {
  background: rgba(0, 20, 6, 0.55);
  border-color: #0a5c22 !important;
}

/* окошки ввода одноразового пароля — зелёная обводка */
#otp-input input {
  border: 1px solid #00ff41 !important;
  background: rgba(0, 25, 8, 0.85) !important;
  color: #00ff41 !important;
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.35);
}

/* спиннер загрузки — в зелёный */
#second-factor-stage svg circle[stroke="#000"] { stroke: #00ff41; }
#second-factor-stage svg circle[fill="#000"] { fill: #001505; }
