:root {
  --gateway-navy: #08243d;
  --gateway-blue: #075d91;
  --gateway-cyan: #16a8b7;
  --gateway-green: #15966b;
  --gateway-coral: #d95d4f;
}

.gateway-login {
  grid-template-columns: minmax(400px, 560px) minmax(390px, 460px);
  padding: 42px;
  background-color: #edf5f6;
  background-image:
    linear-gradient(rgba(8, 36, 61, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 36, 61, .055) 1px, transparent 1px);
  background-size: 46px 46px;
}

.gateway-login .login-panel {
  height: calc(100vh - 84px);
  min-height: 0;
  padding: 44px;
  border-radius: 8px 0 0 8px;
  background: var(--gateway-navy);
}

.gateway-brand img,
.login-card-brand img {
  display: block;
  width: 248px;
  max-width: 100%;
  mix-blend-mode: screen;
}

.gateway-brand p {
  margin: 26px 0 8px;
  color: #70d4dc;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gateway-brand h1 {
  margin: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1.12;
}

.gateway-route-list {
  display: grid;
  gap: 10px;
  margin: 34px 0;
}

.gateway-route-list > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
}

.route-number {
  grid-row: 1 / span 2;
  color: #70d4dc;
  font-size: 12px;
  font-weight: 900;
}

.gateway-route-list strong {
  color: #fff;
  font-size: 14px;
}

.gateway-route-list small {
  color: #9db1c1;
  font-size: 12px;
}

.gateway-signal {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.gateway-signal > span {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #32d09b;
  box-shadow: 0 0 0 6px rgba(50, 208, 155, .14);
}

.gateway-signal strong,
.gateway-signal small {
  display: block;
}

.gateway-signal strong {
  color: #fff;
  font-size: 13px;
}

.gateway-signal small {
  margin-top: 2px;
  color: #9db1c1;
  font-size: 11px;
}

.gateway-login .login-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: calc(100vh - 84px);
  min-height: 0;
  padding: 28px 44px;
  overflow-y: auto;
}

.login-card-brand img {
  width: 140px;
  margin-bottom: 8px;
  mix-blend-mode: multiply;
}

.login-card-brand > span {
  color: var(--gateway-green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-card-brand h2 {
  margin: 8px 0 6px;
  font-size: 28px;
  line-height: 1.15;
}

.login-card-brand p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  height: 48px;
  margin: 12px 0 4px;
  padding: 4px;
  border: 1px solid #d7e1e8;
  border-radius: 8px;
  background: #edf1f4;
}

.role-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: #526170;
  font-size: 14px;
}

.role-switch button:hover {
  transform: none;
  box-shadow: none;
}

.role-switch button.active {
  background: var(--gateway-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(7, 93, 145, .2);
}

.auth-form[hidden] {
  display: none;
}

.gateway-login .advanced,
.gateway-footer {
  display: none;
}

.auth-form label {
  margin-top: 11px;
}

.auth-form input {
  min-height: 50px;
}

.password-field {
  position: relative;
  display: block;
  margin-top: 7px;
}

.password-field input {
  padding-right: 62px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: var(--gateway-blue);
  font-size: 11px;
}

.auth-form > .primary {
  min-height: 50px;
  margin-top: 15px;
  background: var(--gateway-blue);
}

.auth-form > .primary:hover:not(:disabled) {
  background: #064e79;
}

.auth-error {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--gateway-coral);
  border-radius: 4px;
  background: #fff0ee;
  color: #9e3429;
  font-size: 12px;
  font-weight: 800;
}

.agent-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin-top: 7px;
}

.agent-status > span {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.gateway-footer {
  margin: 14px 0 0;
  color: #98a2b3;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 820px) {
  html,
  body {
    overflow: auto;
  }

  .gateway-login {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .gateway-login .login-panel {
    display: none;
  }

  .gateway-login .login-card {
    width: 100%;
    height: auto;
    min-height: calc(100vh - 32px);
    padding: 30px 24px;
    border-radius: 8px;
  }
}
