/* Boot screen shown until the Angular app takes over — cloud-gate console design. */
body {
  margin: 0;
  background-color: #f8fafc;
  color: #0f172a;
}

.app-loading {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family:
    'Fira Sans',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  margin-top: 18vh;
}

.app-loading__logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: #0369a1;
  color: #fff;
}

.app-loading__logo::before {
  content: '';
  width: 30px;
  height: 30px;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M17.5 19a4.5 4.5 0 1 0-1.4-8.8 6 6 0 1 0-11 3.3'/%3e%3cpath d='M9 15h6'/%3e%3cpath d='M7 19h8'/%3e%3c/svg%3e")
    no-repeat center center;
  background-size: contain;
}

.app-loading__product {
  margin: 0.9rem 0 1.5rem;
  font-family: 'Fira Code', ui-monospace, Consolas, monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.app-loading__product::after {
  content: '-gate';
  color: #0369a1;
}

.app-loading__bar {
  position: relative;
  width: 220px;
  height: 4px;
  border-radius: 999px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.app-loading__bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  border-radius: 999px;
  background-color: #0369a1;
  animation: app-loading-bar 1.2s ease-in-out infinite;
}

@keyframes app-loading-bar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

.app-loading p {
  display: block;
  font-size: 1.05em;
  margin-inline-start: 0;
  margin-inline-end: 0;
  font-weight: normal;
}

#jhipster-error {
  max-width: 640px;
  padding: 1.25rem 1.5rem;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #dc2626;
  border-radius: 12px;
  text-align: left;
}

#jhipster-error h1 {
  font-size: 1.25rem;
  margin-top: 0;
  color: #0f172a;
}

#jhipster-error code {
  font-family: 'Fira Code', ui-monospace, Consolas, monospace;
  color: #0f172a;
  background-color: #f1f5f9;
  border-radius: 4px;
  padding: 0 0.25rem;
}
