.tm-brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  text-decoration: none;
  color: var(--wm-color-text);
}

.tm-mark {
  position: relative;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(123, 173, 241, 0.32);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 22px rgba(19, 109, 244, 0.24);
  overflow: hidden;
  white-space: nowrap;
  transition:
    width 0.52s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.38s ease,
    border-color 0.32s ease,
    background 0.32s ease;
}

.tm-mark:hover,
.tm-brand:focus-visible .tm-mark {
  width: 130px;
  border-color: rgba(123, 173, 241, 0.62);
  background: rgba(19, 109, 244, 0.1);
  box-shadow:
    0 0 32px rgba(19, 109, 244, 0.46),
    0 0 8px rgba(123, 173, 241, 0.22);
}

.tm-mark__icon {
  position: absolute;
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition:
    opacity 0.18s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tm-mark:hover .tm-mark__icon,
.tm-brand:focus-visible .tm-mark__icon {
  opacity: 0;
  transform: scale(0.55) rotate(-8deg);
}

.tm-mark__name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.84);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--wm-color-text);
  transition:
    opacity 0.3s ease 0.14s,
    transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}

.tm-mark:hover .tm-mark__name,
.tm-brand:focus-visible .tm-mark__name {
  opacity: 1;
  transform: scale(1);
}

.morri-auth-nav__actions {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 16px;
}

.morri-auth-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--wm-color-text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--wm-duration-fast, 160ms) var(--wm-ease-out, ease);
}

.morri-auth-nav__link:hover {
  color: var(--wm-color-text);
}

.morri-auth-nav__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 16px;
  border: 1px solid var(--wm-color-border);
  border-radius: var(--wm-radius-pill);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--wm-color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--wm-duration-fast, 160ms) var(--wm-ease-out, ease);
}

.morri-auth-nav__pill:hover {
  background: rgba(19, 109, 244, 0.16);
  border-color: rgba(19, 109, 244, 0.5);
  box-shadow: var(--wm-shadow-glow-accent, 0 0 24px rgba(19, 109, 244, 0.28));
}

@media (prefers-reduced-motion: reduce) {
  .tm-mark,
  .tm-mark__icon,
  .tm-mark__name {
    transition: none;
  }

  .tm-mark:hover,
  .tm-brand:focus-visible .tm-mark {
    width: 30px;
  }

  .tm-mark:hover .tm-mark__icon,
  .tm-brand:focus-visible .tm-mark__icon {
    opacity: 1;
    transform: none;
  }

  .tm-mark:hover .tm-mark__name,
  .tm-brand:focus-visible .tm-mark__name {
    opacity: 0;
  }
}
