/* Petiak NetFlow sign-in page — same design tokens as the Zabbix sign-in page */
@font-face {
  font-family: 'IRANSans';
  src: url('fonts/IRANSansWeb.woff2') format('woff2'),
       url('fonts/IRANSansWeb.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
:root {
  --pk-red: #ED1C24;
  --pk-red-hover: #C41219;
  --pk-red-pressed: #A00E14;
  --pk-red-tint: #FDEBEC;
  --pk-ink: #333333;
  --pk-body: #54595F;
  --pk-muted: #767575;
  --pk-grey-4: #939393;
  --pk-line: #DDDDDD;
  --pk-tint: #FBFBFB;
  --pk-r-sm: 4px;
  --pk-r-md: 8px;
  --pk-r-lg: 12px;
  --pk-sh-2: 0 4px 16px rgba(0,0,0,.08);
}
html, body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  background: var(--pk-tint);
}
body {
  display: block;
  font-family: 'IRANSans', 'Vazirmatn', Tahoma, sans-serif;
  color: var(--pk-ink);
  direction: rtl;
}

.pk-page { width: 100%; min-height: 100vh; display: flex; flex-direction: column; direction: rtl; }
.pk-red-band { height: 6px; background: var(--pk-red); flex: none; }
.pk-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.pk-stack { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }

.pk-card {
  background: #fff;
  border-radius: var(--pk-r-lg);
  box-shadow: var(--pk-sh-2);
  padding: 40px 36px;
}
.pk-card-head { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 28px; }
.pk-card-head .pk-logo { width: 180px; height: auto; display: block; }
.pk-card-head .pk-title { margin: 0; font-size: 20px; font-weight: 600; color: var(--pk-ink); text-align: center; line-height: 1.6; }
.pk-card-head .pk-sub { margin: 0; font-size: 14px; font-weight: 400; color: var(--pk-muted); text-align: center; line-height: 1.7; }

.pk-card form { display: flex; flex-direction: column; align-items: stretch; gap: 18px; margin: 0; padding: 0; }
.pk-card form > .pk-field { display: block; width: 100%; }

.pk-field label {
  display: block; margin: 0 0 8px;
  font-size: 15px; font-weight: 500; color: var(--pk-body);
}
.pk-card form input[type="text"],
.pk-card form input[type="password"] {
  width: 100%; max-width: none; height: 44px; padding: 0 16px; margin: 0;
  background: #fff; color: var(--pk-ink);
  border: 1px solid var(--pk-line); border-radius: var(--pk-r-sm);
  font-family: inherit; font-size: 15px; outline: none;
  direction: ltr; text-align: left;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}
.pk-card form input[type="text"]:focus,
.pk-card form input[type="password"]:focus {
  border-color: var(--pk-red);
  box-shadow: 0 0 0 3px var(--pk-red-tint);
}

.pk-error {
  background: var(--pk-red-tint); border-radius: var(--pk-r-sm);
  padding: 10px 14px; font-size: 13px; color: var(--pk-red-pressed);
  line-height: 1.7;
}

.pk-remember {
  display: flex; align-items: center; justify-content: flex-start; gap: 8px;
  font-size: 14px; color: var(--pk-body); cursor: pointer;
}
.pk-card form .pk-remember input[type="checkbox"] {
  accent-color: var(--pk-red);
  width: 16px; height: 16px; min-width: 16px; margin: 0; padding: 0;
  position: static !important; opacity: 1; clip: auto; border: 0; flex: none;
  top: auto; right: auto; left: auto; bottom: auto;
  appearance: auto; -webkit-appearance: auto;
}
.pk-card form .pk-remember label {
  display: inline-flex; align-items: center; margin: 0; padding: 0;
  font-size: 14px; font-weight: 400; color: var(--pk-body); cursor: pointer;
}
.pk-card form .pk-remember label > span { display: none; }

.pk-card form button[type="submit"] {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 44px; padding: 0 20px; margin: 0;
  background: var(--pk-red); color: #fff;
  border: 1px solid transparent; border-radius: var(--pk-r-md);
  font-family: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer; box-shadow: none;
  transition: background-color .2s;
}
.pk-card form button[type="submit"]:hover { background: var(--pk-red-hover); }
.pk-card form button[type="submit"]:active { background: var(--pk-red-pressed); }
.pk-card form button[type="submit"]:disabled { opacity: .45; cursor: default; }

.pk-alt { text-align: center; font-size: 14px; color: var(--pk-muted); }
.pk-alt a { color: var(--pk-red); text-decoration: none; }
.pk-alt a:hover { color: var(--pk-red-hover); text-decoration: underline; }

.pk-foot { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.pk-foot-support { font-size: 13px; color: var(--pk-muted); }
.pk-foot-support a { color: var(--pk-red); text-decoration: none; }
.pk-foot-support a:hover { color: var(--pk-red-hover); text-decoration: underline; }
.pk-foot-licence { font-size: 12px; color: var(--pk-grey-4); line-height: 1.8; }


*, *::before, *::after { box-sizing: border-box; }
.pk-badge { display:inline-flex; align-items:center; gap:6px; margin-top:4px; padding:4px 12px; border-radius:999px;
  background: var(--pk-red-tint); color: var(--pk-red-pressed); font-size: 12px; font-weight: 600; }
.pk-badge .dot { width:7px; height:7px; border-radius:50%; background: var(--pk-red); }
