:root {
  --nexlog-navy: #10243a;
  --nexlog-petrol: #176b80;
  --nexlog-teal: #087f70;
  --nexlog-cloud: #f4f7fa;
}

.nexlog-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nexlog-brand img {
  display: block;
  flex: none;
}

.nexlog-brand-text {
  display: grid;
  gap: 4px;
}

.nexlog-brand-name {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.nexlog-brand-name b {
  font-weight: 850;
  letter-spacing: .045em;
}

.nexlog-brand-signature {
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.25;
}

.nexlog-brand--center {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.nexlog-brand--small {
  gap: 8px;
}

.nexlog-brand--small .nexlog-brand-name {
  font-size: .9375rem;
}

.nexlog-brand .nexlog-logo {
  width: min(clamp(138px, 45vw, 188px), 100%);
  height: auto;
  aspect-ratio: 540 / 440;
  object-fit: contain;
}

.nexlog-logo-symbol {
  background: #fff;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.nexlog-auth-surface {
  background: var(--nexlog-cloud);
  color: var(--nexlog-navy);
}

.nexlog-auth-surface input:focus-visible,
.nexlog-auth-surface select:focus-visible,
.nexlog-auth-surface button:focus-visible {
  outline: 2px solid var(--nexlog-petrol) !important;
  outline-offset: 2px;
}

.nexlog-driver-login-layout,
.nexlog-driver-login-fields {
  display: flex;
  flex-direction: column;
}

.nexlog-driver-login-layout {
  flex: 1;
  justify-content: safe center;
}

.nexlog-driver-login--full .nexlog-driver-login-fields {
  width: min(100%, 360px);
  margin-inline: auto;
}

.nexlog-wms-login {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.nexlog-driver-login-layout > .nexlog-brand,
.nexlog-wms-login > .nexlog-brand {
  margin-bottom: 24px;
}

.nexlog-wms-login-footer {
  margin-top: 18px;
  text-align: center;
}

@media (min-width: 560px) and (max-height: 500px) {
  .nexlog-driver-login--full .nexlog-driver-login-layout,
  .nexlog-wms-login {
    display: grid;
    grid-template-columns: minmax(144px, 200px) minmax(0, 340px);
    align-items: center;
    align-content: safe center;
    justify-content: center;
    column-gap: 28px;
  }

  .nexlog-driver-login--full .nexlog-brand,
  .nexlog-wms-login > .nexlog-brand {
    margin-bottom: 0;
  }

  .nexlog-wms-login-footer {
    grid-column: 1 / -1;
  }
}
