/* Стартовая страница облачных АРМ. Тема и форма входа — как у АРМ настройки
   шасси (factory/chassis-setup-v2/chassis_arm/web/app.css: :root, .center,
   .login, кнопки и поля); копия, а не ссылка: страница отдаётся nginx без АРМ. */
:root {
  --ink: #243a3d; --ink-2: #4e6669; --ink-3: #5f7578;
  --bg: #eef2f1; --paper: #ffffff; --line: #cbd7d5; --line-2: #e2e9e7;
  --accent: #1f4c53; --accent-bg: #dfeaec; --accent-hover: #164046;
  --bad: #b42318;
  --hit: 40px; --radius: 8px; --fs: 15px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: var(--fs)/1.4 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--ink); background: var(--bg); }
button, input { font: inherit; }
button { min-height: var(--hit); padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--ink-3); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button.primary:hover:not(:disabled) { background: var(--accent-hover); }
button.big { min-height: 52px; font-size: 17px; padding: 0 28px; }
button:disabled { cursor: default; }
button[type=submit]:disabled { cursor: progress; opacity: .7; }
input[type=text], input[type=password] { min-height: var(--hit); padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); width: 100%; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.center { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.login { width: 420px; max-width: 100%; display: grid; gap: 12px; }
.login h1, .portal h1 { margin: 0 0 8px; font-size: 22px; }
.field-error { color: var(--bad); font-size: 13px; margin: -6px 0 0; }

.portal { width: 760px; max-width: 100%; display: grid; gap: 16px; }
.portal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.portal-head h1 { margin: 0; }
.who { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tile { display: grid; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--accent); background: var(--accent-bg); }
.tile-kind { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.tile-title { font-size: 20px; font-weight: 600; }

/* Переключатель языка — как .i18n-switch АРМ шасси (app.css), в углу страницы. */
.langbar { position: fixed; top: 12px; right: 16px; }
.i18n-switch { display: inline-flex; gap: 2px; }
.i18n-switch button { min-height: 36px; padding: 0 8px; font-size: 13px; }
.i18n-switch button[aria-pressed="true"] { font-weight: 600; background: var(--accent-bg); border-color: var(--accent); }
