/* Consortium Vault v0.42.2 – Login Mobile KPI Compact Fix */

@media (max-width: 820px) {
  body:has(#demo-login-form) header,
  body:has(#demo-login-form) .hero {
    padding: 18px !important;
  }

  body:has(#demo-login-form) h1 {
    font-size: 34px !important;
    line-height: 1.05 !important;
    margin-bottom: 14px !important;
  }

  body:has(#demo-login-form) header p,
  body:has(#demo-login-form) .hero p {
    font-size: 15px !important;
    line-height: 1.45 !important;
    margin-bottom: 16px !important;
  }

  /* Die großen Status/Version/Login/Daten Boxen kleiner machen */
  body:has(#demo-login-form) .meta-grid,
  body:has(#demo-login-form) .stats-grid,
  body:has(#demo-login-form) .status-grid,
  body:has(#demo-login-form) .hero-grid,
  body:has(#demo-login-form) .info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }

  body:has(#demo-login-form) .meta-card,
  body:has(#demo-login-form) .stat-card,
  body:has(#demo-login-form) .status-card,
  body:has(#demo-login-form) .info-card,
  body:has(#demo-login-form) .hero-card {
    padding: 12px 13px !important;
    border-radius: 14px !important;
    min-height: 82px !important;
    margin: 0 !important;
  }

  body:has(#demo-login-form) .meta-card span,
  body:has(#demo-login-form) .stat-card span,
  body:has(#demo-login-form) .status-card span,
  body:has(#demo-login-form) .info-card span,
  body:has(#demo-login-form) .hero-card span {
    font-size: 9px !important;
    letter-spacing: 0.12em !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
  }

  body:has(#demo-login-form) .meta-card strong,
  body:has(#demo-login-form) .stat-card strong,
  body:has(#demo-login-form) .status-card strong,
  body:has(#demo-login-form) .info-card strong,
  body:has(#demo-login-form) .hero-card strong {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  /* Fallback: falls die Boxen andere Klassen haben */
  body:has(#demo-login-form) header div:has(> span):has(> strong),
  body:has(#demo-login-form) .hero div:has(> span):has(> strong) {
    padding: 12px 13px !important;
    border-radius: 14px !important;
    min-height: 78px !important;
    margin-bottom: 0 !important;
  }

  body:has(#demo-login-form) header div:has(> span):has(> strong) span,
  body:has(#demo-login-form) .hero div:has(> span):has(> strong) span {
    font-size: 9px !important;
    letter-spacing: 0.12em !important;
    line-height: 1.2 !important;
  }

  body:has(#demo-login-form) header div:has(> span):has(> strong) strong,
  body:has(#demo-login-form) .hero div:has(> span):has(> strong) strong {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 520px) {
  body:has(#demo-login-form) h1 {
    font-size: 31px !important;
  }

  body:has(#demo-login-form) header p,
  body:has(#demo-login-form) .hero p {
    font-size: 14px !important;
    line-height: 1.42 !important;
  }

  body:has(#demo-login-form) .meta-grid,
  body:has(#demo-login-form) .stats-grid,
  body:has(#demo-login-form) .status-grid,
  body:has(#demo-login-form) .hero-grid,
  body:has(#demo-login-form) .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  body:has(#demo-login-form) header div:has(> span):has(> strong),
  body:has(#demo-login-form) .hero div:has(> span):has(> strong),
  body:has(#demo-login-form) .meta-card,
  body:has(#demo-login-form) .stat-card,
  body:has(#demo-login-form) .status-card,
  body:has(#demo-login-form) .info-card,
  body:has(#demo-login-form) .hero-card {
    min-height: 72px !important;
    padding: 10px 11px !important;
  }

  body:has(#demo-login-form) header div:has(> span):has(> strong) strong,
  body:has(#demo-login-form) .hero div:has(> span):has(> strong) strong,
  body:has(#demo-login-form) .meta-card strong,
  body:has(#demo-login-form) .stat-card strong,
  body:has(#demo-login-form) .status-card strong,
  body:has(#demo-login-form) .info-card strong,
  body:has(#demo-login-form) .hero-card strong {
    font-size: 14px !important;
  }
}
