/* ═══════════════════════════════════════════════════════
   ISP — Login page styles
   Uses the same design tokens as isp.css (:root vars)
═══════════════════════════════════════════════════════ */

/* ── Body override ───────────────────────────────────────── */
.isp-login-body {
  overflow: auto;
  background: var(--bg);
}

/* ── Two-column shell ─────────────────────────────────────── */
.isp-login-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Left brand panel ────────────────────────────────────── */
.isp-login-brand {
  display: none; /* hidden on mobile */
  flex: 0 0 420px;
  background: var(--sb-bg);
  position: relative;
  overflow: hidden;
  padding: 56px 48px;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 900px) {
  .isp-login-brand { display: flex; }
}

.isp-login-brand-inner {
  position: relative;
  z-index: 2;
}

.isp-login-brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--s), #a8f0f4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 175, 185, 0.4);
  margin-bottom: 24px;
}

.isp-login-brand-mark span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--sb-bg);
  letter-spacing: -0.5px;
}

.isp-login-brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
}

.isp-login-brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.isp-login-brand-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.isp-login-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.isp-login-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--s);
}

.isp-login-stat-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

/* Decorative circles */
.isp-login-deco1,
.isp-login-deco2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.isp-login-deco1 {
  width: 340px;
  height: 340px;
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 175, 185, 0.14) 0%, transparent 65%);
}

.isp-login-deco2 {
  width: 200px;
  height: 200px;
  top: -50px;
  left: -50px;
  background: radial-gradient(circle, rgba(0, 129, 167, 0.12) 0%, transparent 65%);
}

/* ── Right panel ─────────────────────────────────────────── */
.isp-login-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--bg);
}

/* ── Card ─────────────────────────────────────────────────── */
.isp-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r16);
  padding: 40px 36px;
  box-shadow: var(--sh3);
}

/* ── Card header ──────────────────────────────────────────── */
.isp-login-card-hd {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.isp-login-card-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--s), #a8f0f4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 175, 185, 0.32);
}

.isp-login-card-mark span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--sb-bg);
  letter-spacing: -0.5px;
}

.isp-login-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--t1);
  line-height: 1.15;
}

.isp-login-card-sub {
  font-size: 12px;
  color: var(--t3);
  margin-top: 2px;
}

/* ── Fields ───────────────────────────────────────────────── */
.isp-login-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
}

.isp-login-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
  letter-spacing: 0.01em;
}

.isp-login-input.k-textbox,
.isp-login-input .k-input {
  width: 100%;
}

.isp-login-native-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid #d0d5dd;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: #1a202c;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.isp-login-native-input:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(0,129,167,.12);
}
.isp-login-native-input::placeholder {
  color: #a0aec0;
}

.isp-login-val {
  font-size: 11px;
  color: var(--d);
  margin-top: 2px;
}

/* ── Remember me ──────────────────────────────────────────── */
.isp-login-row-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.isp-login-chk-lbl {
  font-size: 12.5px;
  color: var(--t2);
  cursor: pointer;
  user-select: none;
}

/* ── Error banner ─────────────────────────────────────────── */
.isp-login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(240, 113, 103, 0.08);
  border: 1px solid rgba(240, 113, 103, 0.22);
  border-radius: var(--r4);
  color: var(--d);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 16px;
}

.isp-login-error svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Submit button ────────────────────────────────────────── */
.isp-login-btn.k-button {
  width: 100%;
  height: 40px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--r4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── Card footer ──────────────────────────────────────────── */
.isp-login-card-ft {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--t3);
  text-align: center;
  line-height: 1.5;
}

/* ── Sidebar logout button ────────────────────────────────── */
.isp-sb-logout-btn.k-button {
  width: 100%;
  margin-top: 10px;
  justify-content: flex-start;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r3);
}

.isp-sb-logout-btn.k-button:hover {
  background: rgba(240, 113, 103, 0.14);
  border-color: rgba(240, 113, 103, 0.28);
  color: #f39088;
}

/* ── Native submit button (replaces TelerikButton — Blazor components
      intercept clicks via SignalR and never fire a real browser POST) ── */
.isp-login-btn-native {
  width: 100%;
  height: 40px;
  margin-top: 4px;
  padding: 0 20px;
  background: var(--p);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--r4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(0,129,167,0.25);
}

.isp-login-btn-native:hover {
  background: var(--p-dark);
  box-shadow: 0 4px 14px rgba(0,129,167,0.35);
}

.isp-login-btn-native:active {
  background: var(--p-dark);
  box-shadow: none;
  transform: translateY(1px);
}
