:root {
  /* ===== CORES PRINCIPAIS (Brand) =====
     Fonte única de verdade: static/css/cosecurity.css.
     Estas variáveis viram aliases para não colidir com os tokens do
     Cosecurity Design System (mesmo nome, valores diferentes). */
  --primary-color: var(--primary);
  /* Azul escuro institucional */
  --secondary-color: #0071a8;
  /* Azul intermediário — sem token equivalente em cosecurity.css */
  --accent-color: var(--accent);
  /* Azul claro / cyan institucional */
  --alert-color: var(--pink-500);
  /* Rosa/vermelho institucional — é a cor de marca "Pink" (âncora #EC1651),
     não o --danger semântico de cosecurity.css (que usa um vermelho de hue
     diferente, reservado para estados de erro). */
  --warning-color: var(--gold-500);
  /* Amarelo institucional — usa a primitiva ancorada em #FFCA05, não o
     token semântico --warning (que é --gold-700, mais escuro, escolhido
     em cosecurity.css só para contraste de texto). */
  --soft-red: #f05b5b;
  /* Vermelho suave — sem token equivalente em cosecurity.css */

  /* ===== ESCALA DE CINZA (Baseada em #6D6E71) =====
     cosecurity.css ancora --neutral-500 em #6D6E71 (ver comentário lá),
     não --neutral-700 — por isso o mapeamento abaixo é deslocado em
     relação ao índice numérico, para não escurecer os tons existentes. */
  --gray-700: var(--neutral-500);
  /* Cinza institucional */
  --gray-600: var(--neutral-400);
  --gray-500: var(--neutral-300);
  --gray-400: var(--neutral-200);
  --gray-300: var(--neutral-100);
  --gray-200: var(--neutral-50);
  --gray-100: var(--neutral-50);

  /* ===== FUNDO E TEXTO ===== */
  --background-color: var(--background);
  --text-color: var(--foreground);
  /* Azul escuro para textos fortes */
  --text-light: var(--foreground-muted);
  /* Cinza institucional para textos suaves */
  --white: var(--neutral-0);

  /* ===== GRADIENTES (Institucionais) ===== */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--pink-500), var(--soft-red));
  --gradient-cyber: linear-gradient(135deg, var(--primary), var(--accent));

  /* ===== EFEITOS =====
     --shadow-sm/md/lg removidos daqui: antes redeclaravam valores próprios
     e colidiam com os mesmos nomes em cosecurity.css (que já é carregado
     antes deste arquivo em base.html). Os tokens oficiais de cosecurity.css
     seguem valendo automaticamente por não serem mais sobrescritos aqui. */

  --transition: all 0.25s ease-in-out;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  background-size: cover;
  /* Preenche o espaço disponível, ajustando a imagem */
  background-repeat: no-repeat;
  /* Evita que a imagem se repita */
  background-position: center;
}

.content-wrapper {
  padding: var(--space-4);
}

.login-body {
  background-image: url("../background.jpg");
  background-size: cover;
  min-height: 100vh;
  padding: 2rem;
}

.login-container,
.register-container {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 90%;
  margin: 2rem auto;
}

.logo-container {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  max-width: 150px;
  height: auto;
}

/* Layout — navbar horizontal, conteúdo ocupa tela inteira */
.content-wrapper {
  transition: var(--transition);
  width: 100%;
  /*padding: 1rem;*/
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1rem;
}

.menu-toggle:hover {
  background-color: var(--secondary-color);
}

.menu-toggle i {
  font-size: 24px;
  color: var(--white);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1rem;
}

.user-profile:hover {
  background-color: var(--secondary-color);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.user-name {
  font-size: 14px;
  color: var(--white);
  flex-grow: 1;
}

.user-dropdown {
  position: absolute;
  top: 80px;
  left: 1rem;
  right: 1rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--gray-100);
}

.dropdown-item i {
  font-size: 16px;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--gray-300);
  margin: 4px 0;
}

.sidebar-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  padding: 0 10px;
}

.nav-group {
  margin-bottom: 30px;
}

.nav-group-title {
  color: #a0aec0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 15px;
  margin-bottom: 10px;
}

.sidebar .logo-container {
  margin-bottom: 3rem;
}

.sidebar a {
  color: var(--white);
  padding: 0.8rem 1rem;
  text-decoration: none;
  display: block;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: var(--transition);
  font-weight: 500;
  opacity: 0.8;
}

.sidebar a:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  opacity: 1;
}

.sidebar a.active {
  background-color: var(--secondary-color);
  color: var(--white);
  opacity: 1;
}

.content {
  transition: var(--transition);
}

/* content-wrapper base já definido acima */

.container {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 55px;
}

.search-container {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  max-width: 550px;
  margin: 0 auto 2rem;
  transition: var(--transition);
}

.search-container:hover {
  box-shadow: var(--shadow-md);
}

.search-form .mb-3 {
  margin-bottom: 0.75rem !important;
}

.search-form .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.search-form .form-control {
  padding: 0.4rem 0.75rem;
  font-size: 0.95rem;
}

.search-form .btn {
  margin-top: 0.5rem;
  padding: 0.4rem 1.5rem;
  width: auto;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition);
  font-weight: 500;
  letter-spacing: 0.25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: #1557b0;
  border-color: #1557b0;
  box-shadow: var(--shadow-sm);
}

.btn-primary:active {
  background-color: #174ea6;
  border-color: #174ea6;
  box-shadow: none;
}

.form-control {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  background-color: var(--white);
  color: var(--text-color);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
  outline: none;
}

.form-control::placeholder {
  color: var(--gray-500);
}

.alert {
  border-radius: 8px;
  margin-bottom: 1rem;
  border: none;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert i {
  font-size: 1.25rem;
}

.alert-success {
  background-color: #e6f4ea;
  color: #1e7b34;
}

.alert-danger {
  background-color: #fce8e6;
  color: #c5221f;
}

.alert-warning {
  background-color: #fef7e0;
  color: #b06000;
}

.alert-info {
  background-color: #e8f0fe;
  color: #1967d2;
}

.img-preview {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 1rem;
}

.table {
  width: 100%;
  margin-bottom: 1.5rem;
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table th {
  background-color: var(--gray-100);
  color: var(--text-color);
  font-weight: 500;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-300);
}

.table td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-300);
  color: var(--text-color);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background-color: var(--gray-100);
}

.thumbnail-cell {
  width: 80px;
  text-align: center;
}

.plate-thumbnail {
  width: 70px;
  height: 50px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}

.plate-thumbnail:hover {
  transform: scale(1.1);
}

.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background-color: var(--white);
  color: var(--text-color);
  border-bottom: 1px solid var(--gray-300);
  border-radius: 12px 12px 0 0;
  padding: 1rem 1.5rem;
}

.modal-header .close {
  color: var(--text-color);
  opacity: 0.7;
  transition: var(--transition);
}

.modal-header .close:hover {
  opacity: 1;
}

.modal-title {
  font-weight: 500;
  font-size: 1.25rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body img {
  max-height: 70vh;
  object-fit: contain;
}

.pagination {
  margin: 1.5rem 0;
  gap: 0.25rem;
}

.pagination .page-link {
  color: var(--text-color);
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: var(--transition);
}

.pagination .page-link:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 500;
}

.pagination .page-item.disabled .page-link {
  color: var(--gray-400);
  background-color: transparent;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  margin: 0 0.2rem;
}

.bi {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1rem;
  }

  .login-container,
  .register-container {
    margin: 1rem auto;
    padding: 1.5rem;
  }

  .search-form .btn {
    width: 100% !important;
    display: block;
  }
}

/* Regras de navbar legadas removidas para evitar conflito com static/css/navbar.css */

/* Estilos do dropdown (apenas dentro do sidebar legado) */
.sidebar .dropdown-menu {
  position: relative;
  margin-bottom: 1rem;
}

.dropdown-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.dropdown-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}

.dropdown-header i {
  transition: transform 0.3s ease;
}

.dropdown-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.dropdown-items.show {
  max-height: 200px;
}

.dropdown-header:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-items .nav-link {
  padding-left: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dropdown-items.show .nav-link {
  opacity: 1;
}

/* Animação do ícone */
.dropdown-header .bi-chevron-down {
  transition: transform 0.3s ease;
}

.dropdown-header .show + .bi-chevron-down {
  transform: rotate(180deg);
}

.badge-lpr {
  background-color: var(--accent-color);
  color: #000;
}

.badge-theeye {
  background-color: var(--secondary-color);
  color: #fff;
}

/* ===== Login split-screen layout (ciclo de login + MFA) ===== */
/* Forçar 100vh estrito no documento sem rolagem externa nas telas de autenticação */
html:has(.login-shell),
body:has(.login-shell),
body.login-auth-body {
  height: 100% !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Sempre no tema escuro do design system Cosecurity, independente do tema global */
.login-shell {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  display: flex;
  box-sizing: border-box;

  --background: var(--navy-950);
  --foreground: var(--neutral-100);
  --surface: var(--navy-900);
  --card: var(--navy-900);
  --card-foreground: var(--neutral-100);

  --foreground-strong: var(--neutral-0);
  --foreground-muted: var(--neutral-400);
  --foreground-subtle: var(--neutral-500);

  --muted: var(--navy-800);
  --muted-foreground: var(--neutral-400);

  --primary: var(--cyan-500);
  --primary-foreground: var(--navy-950);
  --primary-hover: var(--cyan-400);
  --primary-active: var(--cyan-600);

  --secondary: var(--navy-800);
  --secondary-foreground: var(--neutral-100);
  --secondary-hover: var(--navy-700);
  --secondary-active: var(--navy-600);

  --accent: var(--cyan-400);
  --accent-foreground: var(--navy-950);
  --accent-hover: var(--cyan-300);
  --accent-active: var(--cyan-500);

  --border: oklch(1 0 0 / 0.12);
  --border-strong: oklch(1 0 0 / 0.22);
  --input: oklch(1 0 0 / 0.18);
  --ring: var(--cyan-400);

  --success-surface: oklch(0.60 0.145 150 / 0.18);
  --warning-surface: oklch(0.85 0.171 86.3 / 0.16);
  --danger-surface: oklch(0.60 0.205 25 / 0.20);
  --info-surface: oklch(0.711 0.159 231 / 0.16);

  background-color: var(--background);
  background-image:
    linear-gradient(115deg,
      oklch(0.160 0.045 255 / 0.10) 0%,
      oklch(0.160 0.045 255 / 0.25) 45%,
      oklch(0.160 0.045 255 / 0.45) 68%,
      oklch(0.120 0.045 255 / 0.70) 100%),
    url('/static/background_login.png');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  color: var(--foreground);
}

/* Canvas de conexões interativas — cobre a tela inteira, por cima de tudo,
   mas não intercepta cliques (pointer-events:none), pra não travar o form. */
.login-connections-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* Filtro escuro ainda menor por cima do fundo E da animação (agora bem suave: 0.12) */
.login-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  background: oklch(0.05 0.02 255 / 0.12);
  pointer-events: none;
}

.login-image {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(1rem, 4vh, 3rem) clamp(1.5rem, 4vw, 3rem);
  box-sizing: border-box;
}

.login-hero {
  max-width: 560px;
  width: min(100%, 560px);
  position: relative;
  /* Acima do filtro escuro (::after, z-index:6) */
  z-index: 7;
}

.login-hero-title {
  font: var(--fw-bold) clamp(2rem, 2.8vw, 3.25rem)/1.12 var(--font-logo);
  color: var(--foreground-strong);
  margin: 0;
}

.login-hero-title.login-hero-brand {
  font-size: 4.85rem;
  line-height: 0.98;
}

.login-hero-subtitle {
  font: var(--fw-medium) clamp(1rem, 1.1vw, 1.2rem)/var(--leading-relaxed) var(--font-body);
  color: var(--foreground-strong);
  margin-top: clamp(0.5rem, 1.5vh, 1rem);
  max-width: 34rem;
}

.login-hero-highlight {
  color: var(--accent);
  font-weight: var(--fw-bold);
}

/* Brilho neon no título */
.login-hero-title .login-hero-highlight {
  font: var(--fw-bold) clamp(2rem, 2.8vw, 3.25rem)/1.08 var(--font-logo);
  color: var(--cyan-400);
  text-shadow: 0 0 8px oklch(0.78 0.135 231 / 0.65), 0 0 24px oklch(0.711 0.159 231 / 0.45);
}

.login-hero-tagline {
  margin: clamp(0.5rem, 1.5vh, 1.25rem) 0 0;
  font: var(--fw-bold) clamp(0.82rem, 0.9vw, 0.95rem)/1.4 var(--font-display);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--foreground-strong);
  min-height: 1.4em;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s var(--ease-standard), transform 0.45s var(--ease-standard);
  text-shadow: 0 0 8px oklch(100% 0.00011 271.152 / 0.65), 0 0 24px oklch(100% 0.159 231 / 0.45);
}

.login-hero-tagline.is-fading {
  opacity: 0;
  transform: translateY(6px);
}

.login-panel {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: clamp(0.75rem, 2.5vh, 2rem) clamp(0.5rem, 1.5vw, 1.5rem);
  overflow: hidden;
  box-sizing: border-box;
}

.login-panel-inner {
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  position: relative;
  z-index: 10;
  background: oklch(0.210 0.060 255 / 0.50);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl, 16px);
  box-shadow: var(--shadow-xl, 0 24px 56px rgba(0, 0, 0, 0.35));
  padding: clamp(0.85rem, 2.2vh, 1.75rem) clamp(1rem, 2.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.login-panel-inner .login-logo {
  display: block;
  margin: 0 auto clamp(0.4rem, 1.2vh, 0.85rem) auto;
  max-width: clamp(110px, 14vh, 160px);
  height: auto;
}

.login-panel-inner .cos-title {
  font-size: clamp(1.1rem, 2.2vh, 1.35rem);
  margin-bottom: clamp(0.2rem, 0.8vh, 0.4rem);
}

.login-panel-inner .login-desc {
  color: var(--foreground, var(--gray));
  margin-bottom: clamp(0.4rem, 1.2vh, 1rem);
  text-align: center;
  font-size: clamp(0.75rem, 1.4vh, 0.875rem);
  line-height: 1.35;
}

.login-panel-inner .cos-field {
  margin-bottom: clamp(0.35rem, 1.2vh, 0.85rem) !important;
}

.login-panel-inner .cos-label {
  font-size: clamp(0.75rem, 1.3vh, 0.8125rem);
  margin-bottom: clamp(0.15rem, 0.5vh, 0.3rem);
}

.login-panel-inner .cos-input {
  padding: clamp(0.35rem, 1vh, 0.55rem) clamp(0.6rem, 1.2vw, 0.85rem);
  font-size: clamp(0.8125rem, 1.4vh, 0.875rem);
  height: auto;
}

.login-panel-inner .cos-btn {
  padding: clamp(0.45rem, 1.1vh, 0.65rem) 1rem;
  font-size: clamp(0.8125rem, 1.4vh, 0.875rem);
}

.login-panel-inner .cos-banner {
  padding: clamp(0.35rem, 0.9vh, 0.55rem) clamp(0.5rem, 1vw, 0.75rem);
  font-size: clamp(0.75rem, 1.3vh, 0.8125rem);
  margin-bottom: clamp(0.35rem, 1vh, 0.75rem) !important;
}

.login-panel-inner .cos-hint {
  font-size: clamp(0.7rem, 1.2vh, 0.8125rem);
  margin-top: clamp(0.35rem, 1vh, 0.65rem) !important;
}

.login-panel-inner .mt-3,
.login-panel-inner .mb-3 {
  margin-top: clamp(0.35rem, 1.1vh, 0.75rem) !important;
  margin-bottom: clamp(0.35rem, 1.1vh, 0.75rem) !important;
}

.login-panel-inner form.m-0 {
  margin: 0 !important;
}

@media (min-width: 1024px) {
  .login-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2.5rem, 6vw, 5.5rem);
    padding-inline: clamp(2rem, 5vw, 5rem);
  }

  .login-image,
  .login-panel {
    width: auto;
    flex: 0 0 auto;
  }

  .login-image {
    flex: 0 1 540px;
    justify-content: flex-start;
    height: auto;
    padding: 0;
  }

  .login-hero {
    max-width: 540px;
    width: 100%;
  }

  .login-hero-title,
  .login-hero-title .login-hero-highlight {
    font-size: clamp(2rem, 2.5vw, 2.8rem);
  }

  .login-hero-subtitle {
    font-size: clamp(1rem, 1vw, 1.1rem);
  }

  .login-panel {
    flex: 0 0 380px;
    justify-content: center;
    height: auto;
    padding: 0;
  }

  .login-panel-inner {
    width: 100%;
    max-width: 380px;
  }
}

@media (min-width: 1024px) and (max-width: 1365px) {
  .login-shell {
    gap: clamp(1.75rem, 3.5vw, 3rem);
    padding-inline: clamp(1.25rem, 3vw, 2.5rem);
  }

  .login-image {
    flex-basis: 460px;
  }

  .login-hero {
    max-width: 470px;
  }

  .login-hero-title,
  .login-hero-title .login-hero-highlight {
    font-size: clamp(1.8rem, 2.35vw, 2.35rem);
  }

  .login-panel-inner {
    max-width: 360px;
    width: 100%;
  }
}

@media (max-width: 1023px) {
  .login-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .login-image {
    display: none;
  }

  .login-panel {
    flex: 1 1 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 2vh, 1.25rem) 1rem;
    overflow-y: auto;
  }

  .login-panel-inner {
    margin: auto;
    max-width: 380px;
    width: 100%;
  }
}

@media (max-height: 680px) {
  .login-panel-inner {
    padding: 1rem 1.35rem;
  }
  .login-panel-inner .login-logo {
    max-width: 130px;
    margin-bottom: 0.5rem;
  }
  .login-panel-inner .cos-title {
    font-size: 1.35rem;
  }
  .login-panel-inner .login-desc {
    font-size: 0.875rem;
    margin-bottom: 0.6rem;
  }
  .login-panel-inner .cos-label {
    font-size: 0.8125rem;
  }
  .login-panel-inner .cos-input {
    font-size: 0.875rem;
    padding: 0.45rem 0.75rem;
  }
  .login-panel-inner .cos-btn {
    font-size: 0.875rem;
    padding: 0.55rem 1rem;
  }
  .login-hero-title {
    font-size: 4.85rem;
  }
  .login-hero-subtitle {
    font-size: 0.95rem;
    margin-top: 0.5rem;
  }
  .login-hero-tagline {
    font-size: 0.8125rem;
  }
}

@media (max-height: 560px) {
  .login-shell {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .login-connections-canvas {
    transform: translateY(-5px);
  }
  .login-image {
    display: none;
  }
  .login-panel {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
  }
  .login-panel-inner {
    margin: auto;
    max-width: 360px;
    padding: 0.75rem 1.1rem;
  }
  .login-panel-inner .login-logo {
    max-width: 100px;
    margin-bottom: 0.35rem;
  }
  .login-panel-inner .login-desc {
    font-size: 0.8125rem;
    margin-bottom: 0.4rem;
  }
  .login-hero {
    display: none;
  }
}
