/* ── PPR · дизайн-система Сервис Плюс (как KP Studio) ── */

:root {
  --bg-base:       #141518;
  --bg-surface:    rgba(255, 255, 255, 0.035);
  --bg-elevated:   rgba(255, 255, 255, 0.06);
  --bg-overlay:    rgba(255, 255, 255, 0.09);

  --border:        rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.055);

  --accent:        #4a8df0;
  --accent-dim:    #3567c4;
  --accent-glow:   rgba(74, 141, 240, 0.13);
  --accent-text:   #7caef5;

  --green:         #3dbf7a;
  --red:           #e05252;
  --amber:         #c9a13b;

  --text-primary:  #e8eaef;
  --text-secondary:#9aa0ac;
  --text-muted:    #646977;

  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     18px;

  --shadow-card:   0 1px 2px rgba(0,0,0,0.3), 0 10px 36px rgba(0,0,0,0.28);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
}

/* атмосфера: градиент + плёночное зерно на фиксированных слоях */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 1000px 700px at 85% -10%, rgba(74,141,240,0.07), transparent 55%),
    radial-gradient(ellipse 900px 600px at -10% 100%, rgba(255,255,255,0.025), transparent 55%),
    linear-gradient(165deg, #1a1b1f 0%, #141518 50%, #101114 100%);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.045'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(74,141,240,0.35); color: #fff; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Каркас ── */
.app-wrap { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  height: 60px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}
.brand img {
  height: 30px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(74,141,240,0.35)) drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.brand-sub { font-size: 10px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.topnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 450;
  border: 1px solid transparent;
  transition: all 0.18s var(--ease-out);
}
.topnav a:hover { background: var(--bg-elevated); color: var(--text-primary); }
.topnav a.active {
  background: linear-gradient(90deg, var(--accent-glow), rgba(74,141,240,0.04));
  color: var(--accent-text);
  border-color: rgba(74, 141, 240, 0.2);
}
.topnav .logout { margin-left: 12px; color: var(--text-muted); }
.topnav .logout:hover { color: var(--red); background: rgba(224,82,82,0.08); }

.page {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 28px 48px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  animation: fade-up 0.4s var(--ease-out) both;
}
.page-title {
  position: relative;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-left: 14px;
}
.page-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dim));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(74,141,240,0.4);
}
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 4px; padding-left: 14px; max-width: 720px; }

/* ── Карточка (стекло) ── */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  animation: fade-up 0.45s var(--ease-out) both;
}
.card + .card { margin-top: 20px; }
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  pointer-events: none;
}
.card-header {
  padding: 16px 20px 13px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.card-body { padding: 16px 20px; }
.card-body.flush { padding: 0; }

/* ── Таблица ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  transition: background 0.15s, color 0.15s;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.data-table .col-primary { color: var(--text-primary); font-weight: 500; }
.data-table a { color: inherit; text-decoration: none; }

tr.row-disabled td { opacity: 0.45; }

/* ── Кнопки ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.18s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, #5d9af2 0%, #3f7fe0 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 8px rgba(74,141,240,0.3);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #6ca5f5 0%, #4c8ae6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 0 24px var(--accent-glow), 0 4px 12px rgba(74,141,240,0.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-overlay);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.18);
}
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-elevated); color: var(--text-primary); }
.btn-danger { background: rgba(224,82,82,0.12); color: #e87070; border: 1px solid rgba(224,82,82,0.25); }
.btn-danger:hover:not(:disabled) { background: rgba(224,82,82,0.2); border-color: rgba(224,82,82,0.4); }
.btn-sm { padding: 5px 10px; font-size: 12px; }

.row-actions { display: flex; gap: 8px; align-items: center; }

/* действия в строке офиса: фиксированные колонки, чтобы кнопки
   не плыли от разной длины надписей («Выключить»/«Включить») */
.office-actions {
  display: grid;
  grid-template-columns: 140px 44px 86px;
  gap: 8px;
  align-items: center;
  justify-items: start;
}
.office-actions .btn { width: 100%; }
.office-actions .switch { justify-self: center; }

/* ── Формы ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
input, textarea, select {
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  padding: 9px 12px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.12);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  width: 100%;
  font-family: inherit;
}
input:hover, textarea:hover { border-color: rgba(255,255,255,0.16); }
input:focus, textarea:focus {
  border-color: var(--accent-dim);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 0 3px var(--accent-glow), inset 0 1px 2px rgba(0,0,0,0.12);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:disabled, textarea:disabled { opacity: 0.45; cursor: not-allowed; }
textarea { resize: vertical; min-height: 70px; }
input[type="date"] { color-scheme: dark; }
input[type="number"] { max-width: 110px; }

.form-grid { display: grid; gap: 16px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ── Бейджи / статусы ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-on  { background: rgba(61,191,122,0.12); color: #4ecb8a; border-color: rgba(61,191,122,0.25); }
.badge-off { background: rgba(224,82,82,0.12);  color: #e87070; border-color: rgba(224,82,82,0.25); }
.badge-info { background: rgba(74,141,240,0.12); color: var(--accent-text); border-color: rgba(74,141,240,0.25); }

.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-on  { background: var(--green); box-shadow: 0 0 6px rgba(61,191,122,0.6); }
.dot-off { background: var(--red);   box-shadow: 0 0 6px rgba(224,82,82,0.6); }

/* ── Алерты ── */
.alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  animation: fade-up 0.3s var(--ease-out) both;
}
.alert-error { background: rgba(224,82,82,0.1); border: 1px solid rgba(224,82,82,0.25); color: #e87070; }
.alert-ok    { background: rgba(61,191,122,0.1); border: 1px solid rgba(61,191,122,0.25); color: #4ecb8a; }
.alert-info  { background: rgba(74,141,240,0.1); border: 1px solid rgba(74,141,240,0.25); color: var(--accent-text); }

.muted { color: var(--text-muted); font-size: 12px; }

/* ── Stat cards (как в KP Studio) ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stats-row > * { animation: fade-up 0.45s var(--ease-out) both; }
.stats-row > *:nth-child(1) { animation-delay: 0.05s; }
.stats-row > *:nth-child(2) { animation-delay: 0.10s; }
.stats-row > *:nth-child(3) { animation-delay: 0.15s; }
.stats-row > *:nth-child(4) { animation-delay: 0.20s; }

.stat-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10px; right: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  pointer-events: none;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,141,240,0.07), transparent 70%);
  pointer-events: none;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 4px 6px rgba(0,0,0,0.25), 0 14px 40px rgba(0,0,0,0.32);
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat-value { font-size: 24px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.03em; line-height: 1; }
.stat-value.accent { color: var(--accent-text); text-shadow: 0 0 24px rgba(74,141,240,0.35); }
.stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── Тумблер (включение задачи/офиса) ── */
.switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.22s var(--ease-out), background 0.22s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.switch:hover { border-color: rgba(255,255,255,0.2); }
.switch.on {
  background: linear-gradient(180deg, #5d9af2 0%, #3f7fe0 100%);
  border-color: rgba(74,141,240,0.5);
  box-shadow: 0 0 12px rgba(74,141,240,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.switch.on::after {
  transform: translateX(18px);
  background: #ffffff;
}
.switch:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── htmx: процесс запроса ── */
.htmx-request { opacity: 0.55; pointer-events: none; transition: opacity 0.15s; }
button.htmx-request { position: relative; }

/* hover-подъём карточек с таблицами */
.card.hoverable:hover {
  border-color: rgba(74,141,240,0.3);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 14px 44px rgba(0,0,0,0.35), 0 0 24px rgba(74,141,240,0.05);
}

/* каскадное появление строк */
.data-table tbody tr { animation: fade-up 0.4s var(--ease-out) both; }
.data-table tbody tr:nth-child(1)  { animation-delay: 0.02s; }
.data-table tbody tr:nth-child(2)  { animation-delay: 0.04s; }
.data-table tbody tr:nth-child(3)  { animation-delay: 0.06s; }
.data-table tbody tr:nth-child(4)  { animation-delay: 0.08s; }
.data-table tbody tr:nth-child(5)  { animation-delay: 0.10s; }
.data-table tbody tr:nth-child(6)  { animation-delay: 0.12s; }
.data-table tbody tr:nth-child(7)  { animation-delay: 0.14s; }
.data-table tbody tr:nth-child(8)  { animation-delay: 0.16s; }
.data-table tbody tr:nth-child(n+9){ animation-delay: 0.18s; }

/* htmx: подсветка обновлённой строки */
tr.htmx-settling td { background: rgba(74,141,240,0.10) !important; }
tr { transition: background 0.6s var(--ease-out); }

/* ── Логин ── */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: url('/static/bg.jpg') center / cover no-repeat fixed var(--bg-base);
}
/* вместо градиента — затемнение поверх фото города (как в KP Studio) */
.login-body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: rgba(8, 12, 18, 0.60);
}
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes border-spin {
  to { --border-angle: 360deg; }
}
@keyframes logo-breathe {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(74,141,240,0.35)) drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
  50%      { filter: drop-shadow(0 0 30px rgba(74,141,240,0.65)) drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
}

.login-card {
  position: relative;
  z-index: 2;
  width: 380px;
  background: rgba(13, 17, 24, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(74,141,240,0.18);
  border-radius: 16px;
  padding: 44px 40px 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: fade-up 0.45s var(--ease-out) both;
}
/* живая световая кромка: луч медленно обегает карточку */
.login-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0%,
    rgba(74,141,240,0.7) 8%,
    rgba(124,174,245,0.9) 12%,
    rgba(74,141,240,0.7) 16%,
    transparent 26%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: border-spin 7s linear infinite;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .login-card::before { animation: none; opacity: 0.4; }
}
.login-logo { text-align: center; margin-bottom: 36px; }
.login-logo img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin-bottom: 12px;
  animation: logo-breathe 4.5s ease-in-out infinite;
}
.login-logo-name {
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: #e8edf2;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.login-logo-sub {
  display: inline-block;
  font-size: 11px;
  color: var(--accent-text);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-top: 1px solid rgba(74,141,240,0.25);
  border-bottom: 1px solid rgba(74,141,240,0.25);
  padding: 3px 12px;
}
.login-field { margin-bottom: 16px; animation: fade-up 0.5s var(--ease-out) both; }
.login-field:nth-of-type(1) { animation-delay: 0.12s; }
.login-field:nth-of-type(2) { animation-delay: 0.2s; }
.login-card form .login-btn { animation: fade-up 0.5s var(--ease-out) 0.28s both; }
.login-logo { animation: fade-up 0.5s var(--ease-out) 0.04s both; }
.login-field label {
  display: block;
  font-size: 10.5px;
  color: #8493a8;
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.login-field input {
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.login-field input:focus {
  background: rgba(74,141,240,0.06);
  border-color: rgba(74,141,240,0.55);
  box-shadow: none;
}
@keyframes btn-gradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes btn-sheen {
  0%   { left: -70%; }
  22%  { left: 140%; }
  100% { left: 140%; }
}
.login-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 13px;
  background: linear-gradient(115deg, #3567c4, #5d9af2, #7caef5, #3567c4);
  background-size: 260% 100%;
  animation: btn-gradient 6s ease-in-out infinite;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.25s;
  margin-top: 8px;
  font-family: 'Unbounded', 'Inter', sans-serif;
  box-shadow: 0 4px 18px rgba(74,141,240,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
/* блик сам пробегает по кнопке раз в несколько секунд */
.login-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  animation: btn-sheen 4.5s ease-in-out 1.2s infinite;
}
.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(74,141,240,0.55), inset 0 1px 0 rgba(255,255,255,0.3);
}
.login-btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .login-btn, .login-btn::after { animation: none; }
}
.login-error {
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(220,50,50,0.12);
  border: 1px solid rgba(220,50,50,0.35);
  border-radius: 8px;
  font-size: 13px;
  color: #f87171;
  letter-spacing: 0.2px;
}
