:root {
  color-scheme: light;
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  background: #dee2e6;
}

html,
body,
#out {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.avalonia-splash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #212529;
  background: #f1f3f5;
}

.splash-topbar {
  position: absolute;
  inset: 0 0 auto;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-sizing: border-box;
  padding: 0 16px;
  color: #fff;
  background: #191d21;
  font-size: 13px;
}

.splash-topbar span {
  margin-left: auto;
  padding: 4px 8px;
  color: #e9ecef;
  background: #495057;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
}

.mini-mark {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fff;
  box-sizing: border-box;
  padding: 3px;
  background: #191d21;
  border-radius: 4px;
}

.mini-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: #fff;
}

.login-preview {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  width: min(940px, calc(100% - 64px));
  min-height: 540px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 8px;
}

.preview-brand,
.preview-form {
  box-sizing: border-box;
  padding: 48px;
}

.preview-brand {
  color: #fff;
  background: #191d21;
}

.brand-mark {
  display: grid;
  width: 102px;
  height: 102px;
  place-items: center;
  color: #fff;
  box-sizing: border-box;
  padding: 12px;
  background: #191d21;
  border-radius: 22px;
}

.brand-symbol {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: #fff;
}

.preview-brand h1 {
  margin: 24px 0 6px;
  font-size: 28px;
  font-weight: 650;
}

.preview-brand p {
  margin: 0;
  color: #adb5bd;
  font-size: 15px;
}

.preview-brand small {
  display: block;
  margin-top: 48px;
  color: #dee2e6;
  line-height: 1.8;
}

.preview-form h2 {
  margin: 0 0 6px;
  font-size: 25px;
  font-weight: 650;
}

.preview-form p {
  margin: 0 0 32px;
  color: #6c757d;
  font-size: 13px;
}

.preview-form label {
  display: block;
  margin: 0 0 7px;
  color: #343a40;
  font-size: 12px;
  font-weight: 650;
}

.field-placeholder {
  box-sizing: border-box;
  min-height: 43px;
  margin-bottom: 18px;
  padding: 11px 12px;
  color: #6c757d;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 13px;
}

.preview-button {
  min-height: 44px;
  margin-top: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #2f75b5;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 650;
}

.loading-bar {
  width: 100%;
  height: 3px;
  margin-top: 14px;
  overflow: hidden;
  background: #ced4da;
  border-radius: 2px;
}

.loading-bar span {
  display: block;
  width: 36%;
  height: 100%;
  background: #191d21;
  animation: loading 1.2s ease-in-out infinite;
}

@keyframes loading {
  from { transform: translateX(-110%); }
  to { transform: translateX(310%); }
}

@media (max-width: 760px) {
  .login-preview {
    grid-template-columns: 1fr;
    width: min(480px, calc(100% - 32px));
    min-height: auto;
  }

  .preview-brand {
    display: none;
  }

  .preview-form {
    padding: 36px;
  }
}

.avalonia-splash.splash-close {
  display: none;
}
